Fix bug in serialization of attributes.

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1779 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jacques Distler 2010-10-06 21:05:27 +00:00
parent e715594ae0
commit 55d7aeab18
1 changed files with 2 additions and 2 deletions

View File

@ -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]) {