-
-
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
[Math Processing Error] with mathvariant #363
Comments
The error is: "variant is undefined" |
HTMLgetVariant (and SVGgetVariant) does not seem to do anything to handle the arabic scripts or invalid mathvariants. I guess the error happens when the function arrives at return HTMLCSS.FONTDATA.VARIANT[variant] where the entry is undefined. Would it make sense to verify at the beginning of the function whether the mathvariant attribute value is valid and to fallback values.mathvariant to "normal" otherwise? |
Crashtests/issue363.html => In testsuite |
I just pushed a fix for this in my issue363 branch. I also added more tests to the test suite. |
I've merged your |
The mathvariant attribute values for arabic scripts as well as unknow values can cause a [Math Processing Error].
The MathJax testsuite contains tests here:
MathMLToDisplay/Characters/Variants/
They are taken from the MathML test suite, but don't test the attributes mentioned above. Here is a testcase:
The text was updated successfully, but these errors were encountered: