Make foreignObject editing work in Safari

"Apply Changes" no longer generates an error in Safari.
This commit is contained in:
Jacques Distler 2010-02-13 14:44:56 -06:00
parent 620bb2a1f7
commit c608cedab9

View file

@ -5683,7 +5683,7 @@ function BatchCommand(text) {
// run it through our sanitizer to remove anything we do not support
sanitizeSvg(newDoc.documentElement);
elt.parentNode.replaceChild(newDoc.documentElement.firstChild, elt);
elt.parentNode.replaceChild(svgdoc.importNode(newDoc.documentElement.firstChild, true), elt);
call("changed", [elt]);
} catch(e) {
console.log(e);