From 55d7aeab18d2b6dd97db187e7519393a4e4d2047 Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Wed, 6 Oct 2010 21:05:27 +0000 Subject: [PATCH] Fix bug in serialization of attributes. git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1779 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index ccb8882e..ce87ae18 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1,4 +1,4 @@ -/* +/* * svgcanvas.js * * Licensed under the Apache License, Version 2 @@ -7899,7 +7899,7 @@ var svgToString = this.svgToString = function(elem, indent) { if(attr.nodeName.indexOf('xmlns:') === 0) continue; // only serialize attributes we don't use internally - if (attrVal != "" && attr_names.indexOf(attr.localName) >= 0) + if (attrVal != "" && attr_names.indexOf(attr.localName) == -1) { if(!attr.namespaceURI || nsMap[attr.namespaceURI]) {