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
master
Jacques Distler 2010-04-28 16:53:36 +00:00
parent 7d4978740e
commit 543c6661a9
1 changed files with 4 additions and 1 deletions

View File

@ -1631,7 +1631,10 @@ function BatchCommand(text) {
// Namespaces have already been dealt with, so skip
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
if (attrVal != "" &&
$.inArray(attr.localName, ['width','height','xmlns','x','y','viewBox','id','overflow']) == -1)