Fix bug in serialization of attributes.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1779 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
e715594ae0
commit
55d7aeab18
|
@ -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]) {
|
||||
|
|
Loading…
Reference in New Issue