Commit 7832dc0c authored by Titouan Soulard's avatar Titouan Soulard

erp5_svg_editor: force removal of extra attributes

Otherwise, a weird behaviour is observed with compound attributes (eg.
`xmlns:inkscape`), where the second part of the attribute is replaced by
`undefined`, giving a wrong SVG file when there are multiple attributes
(duplicate attribute).
parent f94f18ce
...@@ -183,9 +183,7 @@ svgedit.sanitize.sanitizeSvg = function(node) { ...@@ -183,9 +183,7 @@ svgedit.sanitize.sanitizeSvg = function(node) {
se_attrs.push([attrName, attr.nodeValue]); se_attrs.push([attrName, attr.nodeValue]);
} }
// TODO looks dangerous node.removeAttributeNS(attrNsURI, attrLocalName);
//node.removeAttributeNS(attrNsURI, attrLocalName);
} }
// Add spaces before negative signs where necessary // Add spaces before negative signs where necessary
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment