Task of Sysiphus: filter bogus attributes, generated by Gecko (again).
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1551 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -1631,7 +1631,10 @@ function BatchCommand(text) {
|
|||||||
|
|
||||||
// Namespaces have already been dealt with, so skip
|
// Namespaces have already been dealt with, so skip
|
||||||
if(attr.nodeName.indexOf('xmlns:') === 0) continue;
|
if(attr.nodeName.indexOf('xmlns:') === 0) continue;
|
||||||
|
|
||||||
|
//remove bogus attributes added by Gecko
|
||||||
|
if (attr.localName == '-moz-math-font-style') continue;
|
||||||
|
|
||||||
// only serialize attributes we don't use internally
|
// only serialize attributes we don't use internally
|
||||||
if (attrVal != "" &&
|
if (attrVal != "" &&
|
||||||
$.inArray(attr.localName, ['width','height','xmlns','x','y','viewBox','id','overflow']) == -1)
|
$.inArray(attr.localName, ['width','height','xmlns','x','y','viewBox','id','overflow']) == -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user