-
Notifications
You must be signed in to change notification settings - Fork 183
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
IE9 #1
Comments
While we're at it, in checkMathML, we might want to update the detection in checkMathML(). Here is a super-nasty version that also includes basic font detection to make sure FireFox has adequate fonts to display radicals and other stretchy symbols:
|
Note that Firefox can use fonts other than STIXGeneral and cmex10 for stretchy characters, so you might be limiting your users unnecessarily. Also, you might want to use an ID for your hidden element that includes something unique to AsciiMath, so that it doesn't conflict with other potential ID's in the page. For example "AM_hidden" or "AsciiMath_hidden". Just "hidden" is too generic, and the page might already include an element with that ID. |
Will make the ID change. Do you have a suggestion for the font issue? The main goal was to avoid issues where the square roots weren't extending over expressions properly due to font issues. In my case, where I fall back to mimetex images, some false negatives on the MathML check isn't a huge deal. Clearly the better solution is to use MathJax, but if anyone is going to use AsciiMath standalone, I'd like it work correctly. |
You might be able to check whether a stretchy element has actually stretched. For example, you might be able to use
has the |
OK, it looks like Firefox doesn't stretch to fit the
See if that works. |
I'll give it a try. In the meantime, since stix and the tex fonts have been the official recommended fonts for MathML by Firefox, I don't feel too bad limiting the check to those two. -------- Original message -------- OK, it looks like Firefox doesn't stretch to fit the element as it should. So you can compare the scrollHeights of AM_test_paren1 and AM_test_paren2 to see if the first is larger than the second in ( ()See if that works. — |
Get updated
The IE detection line
should probably be updated, since IE9 does have the createElementNS function, and MathPlayer still works in IE9 (it does not, yet, work in IE10+, and at this point I'm doubtful it will happen)
While feature detection is usually better, in this case it might be safer to just use
The text was updated successfully, but these errors were encountered: