Fix Bug in itex Extension

Firefox was too lenient, in allowing
you to append nodes from another document to
the svg canvas. Use adoptNode(), to do things
right. (Google Chrome is more strict about this.)
This commit is contained in:
Jacques Distler 2010-03-05 16:19:12 -06:00
parent e75c0cc81c
commit 5a5ff87286

View file

@ -75,7 +75,7 @@ $(function() {
$.post(ajaxEndpoint, {'tex': tex, 'display': 'inline'}, function(data){
var children = data.documentElement.childNodes;
while (children.length > 0) {
mrow.appendChild(children[0]);
mrow.appendChild(svgdoc.adoptNode(children[0], true));
}
S.sanitizeSvg(math);
S.call("changed", [elt]);