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:
parent
e75c0cc81c
commit
5a5ff87286
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue