-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
Parser issues around MathML in HTML tag transforms #611
Comments
Thanks for raising the issue. It is my understanding that Maybe the XML minifier should leave invalid attribute values as-is, which would fix this issue. |
I've pushed out a change in the XML minifier. |
I think there's still an issue around whitespace after a closing math tag. For example, the HTML
is minified to
losing the whitespace afterwards. Adding |
You're right, should be fixed now. |
Summary
Minifying
<math>
elements inside an HTML document can result in unexpected attribute and whitespace transforms. It seems like it's trying to parse them as XML applying incorrect whitespace and attribute quoting expectations.Version
# minify --version minify v2.12.9-12-g76935f3
Example
Expected:
Actual:
The text was updated successfully, but these errors were encountered: