commit
6f4cdbd68c
|
@ -978,6 +978,8 @@ MathJax.HTML = {
|
||||||
for (var i = 0; i < contents.length; i++) {
|
for (var i = 0; i < contents.length; i++) {
|
||||||
if (contents[i] instanceof Array) {
|
if (contents[i] instanceof Array) {
|
||||||
obj.appendChild(this.Element(contents[i][0],contents[i][1],contents[i][2]));
|
obj.appendChild(this.Element(contents[i][0],contents[i][1],contents[i][2]));
|
||||||
|
} else if (type === "script") { // IE throws an error if script is added as a text node
|
||||||
|
this.setScript(obj, contents[i]);
|
||||||
} else {
|
} else {
|
||||||
obj.appendChild(document.createTextNode(contents[i]));
|
obj.appendChild(document.createTextNode(contents[i]));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user