Skip to content

Commit 1bb9758

Browse files
committed
Trap errors with document.namespace (it crashes IE10 in standards mode).
1 parent 646a977 commit 1bb9758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpacked/extensions/MathML/content-mathml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ MathJax.Extension["MathML/content-mathml"] = (function(HUB) {
5656
var isMSIE = HUB.Browser.isMSIE;
5757

5858
if (isMSIE) {
59-
document.namespaces.add("m","http://www.w3.org/1998/Math/MathML");
59+
try {document.namespaces.add("m","http://www.w3.org/1998/Math/MathML")} catch (err) {}
6060
}
6161

6262
var CONFIG = HUB.CombineConfig("MathML.content-mathml",{

0 commit comments

Comments
 (0)