-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MathML pre-processing fails in IE9 #6
Comments
If the error is about parentNode being null, I have a fix in my fork of MathJax. (I don't have IE9, as I don't have Windows 7, so can't check what the message is myself.) If that's not it, I'll have to look further. |
That's not it. The problem goes away if I turn off msieMathTagBug for IE9, but that reveals another problem similar to the TeX pre-processing one of spurious content. Turning off msieScriptBug fixes that. So currently I'm using the modified code:
at the bottom of mml2jax.js. However, that breaks MathML when IE9 is forced into IE8 or IE7 standards mode. |
When IE9 is forced to emulate IE8 or IE7 the userAgent still indicates MSIE 9.0. TODO: |
I haven't tried this, but as I recall, the script bug is that IE < 9 requires you to use script.text to change the value of a script (where others do this by adding a text node). You can probably use a detection for that like
since IE < 9 throws an error trying to add a text node to a script. As for the math tag bug, that could be detected by
which tests whether the nesting of the math node is not properly handled. (There is another IE bug that will cause it to drop the leading and in this case, but you will still get the text node for x and two nodes for and from this, so it will not be one child node). I would still do these within a browser test for IE, as I would not want to accidentally set these for other browsers. In particular, Opera had some funny business about script innerHTML as I recall, but I don't remember exactly what, or what versions. Davide |
The
Is that for dealing with MathPlayer enabled pages? |
There are two other items going on in the ScriptBug area: IE prepends extra tags for import and xml:namespace for MathPlayer, as you suggest. There is also an issue with it adding extra that I no longer completely recall. These may not be needed with IE9; would have to check. It would probably be OK to put the replacements into the common code and just have the script bug handle the replacement of the script text, as in
That would at least isolate the error processing to the error flag better. Perhaps there should be another one for stripping off the import/namespace stuff? Davide |
I have committed the change, so am closing this issue. (There is still some useful information here, however, with code samples that we didn't include in the update.) |
Use master branch for main development
Using IE9 platform preview 5:
The incorrect processing may be due to IE9 capability to parse MathML correctly.
The text was updated successfully, but these errors were encountered: