plainSource: snsure IE8 compatibility
This commit is contained in:
parent
040ddd652c
commit
fbd7d6e9b0
|
@ -136,22 +136,22 @@
|
||||||
// Typeset the math
|
// Typeset the math
|
||||||
//
|
//
|
||||||
this.initPlainSource(math, span);
|
this.initPlainSource(math, span);
|
||||||
|
var source = jax.originalText;
|
||||||
if (jax.inputJax === "MathML") {
|
if (jax.inputJax === "MathML") {
|
||||||
if ((jax.root.data[0].data.length > 0) && (jax.root.data[0].data[0].type === "semantics")) {
|
if ((jax.root.data[0].data.length > 0) && (jax.root.data[0].data[0].type === "semantics")) {
|
||||||
var annotations = jax.root.data[0].data[0].data.map(function(node) {
|
var annotations = jax.root.data[0].data[0].data;
|
||||||
return node.attr.encoding;
|
for (var a = 0; a < annotations.length; a++){
|
||||||
});
|
if (annotations[a].attr.encoding === "application/x-tex"){
|
||||||
var texIndex = annotations.indexOf("application/x-tex");
|
source = jax.root.data[0].data[0].data[a].data[0].data[0];
|
||||||
var asciiIndex = annotations.indexOf("text/x-asciimath");
|
break;
|
||||||
if (texIndex > -1) {
|
}
|
||||||
source = jax.root.data[0].data[0].data[texIndex].data[0].data[0];
|
if (annotations[a].attr.encoding === "text/x-asciimath") {
|
||||||
} else if (asciiIndex > -1) {
|
source = jax.root.data[0].data[0].data[a].data[0].data[0];
|
||||||
source = jax.root.data[0].data[0].data[asciiIndex].data[0].data[0];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
span.innerHTML = jax.originalText;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
span.innerHTML = source;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Put it in place, and remove the processing marker
|
// Put it in place, and remove the processing marker
|
||||||
|
|
Loading…
Reference in New Issue
Block a user