From 543c6661a9671095e2b98716edabcd53fea4b905 Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Wed, 28 Apr 2010 16:53:36 +0000 Subject: [PATCH] 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 --- editor/svgcanvas.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index bcfd95d4..eca8c9a2 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -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)