Skip to content
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

Make sure we get the <math> element from mml3 conversion. (mathjax/MathJax#2879) #822

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Jun 2, 2022

It turns out that the XSLTProcessor produces different results in Firefox and Chrome, and the code that obtained the <math> element didn't work in both, leading to an error message about div elements. This PR uses a more robust approach to finding the <math> element. We know here will be one (and only one) because this runs after the initial parsing of the math string, which checks for a single <math> element.

Resolves issue mathjax/MathJax#2879.

@dpvc dpvc requested a review from zorkow June 2, 2022 19:35
@dpvc dpvc added this to the 3.2.2 milestone Jun 2, 2022
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@dpvc dpvc merged commit 340694e into develop Jun 8, 2022
@dpvc dpvc deleted the issue2879 branch June 8, 2022 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants