IE <= 8 parses MathML incorrectly. MathJax implements an alternative code path to get around this problem. This code was executed for all versions of IE, but IE9 parses MathML correctly, so this fix implements feature detection of MathML parsing.
This commit is contained in:
parent
fac13ed351
commit
df61c069a0
|
@ -142,10 +142,10 @@ MathJax.Hub.Browser.Select({
|
|||
MSIE: function (browser) {
|
||||
MathJax.Hub.Insert(MathJax.Extension.mml2jax,{
|
||||
msieScriptBug: true,
|
||||
msieMathTagBug: true
|
||||
})
|
||||
msieMathTagBug: (MathJax.HTML.Element("span", {innerHTML:"<math><mi>x</mi></math>"}).childNodes.length !== 1) // IE < 9 corrupts MathML
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.mml2jax]);
|
||||
MathJax.Ajax.loadComplete("[MathJax]/extensions/mml2jax.js");
|
||||
|
|
Loading…
Reference in New Issue
Block a user