-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
Serialization special casing of style, script, etc. needs to be namespace-dependent #333
Comments
parse5/packages/parse5/lib/serializer/index.js Lines 70 to 89 in 9c683e1
$.SOMECONSTANT really should be accompanied with a namespace check.
|
This just bit me today: in a |
Actually, looking closer, |
Yeah, this is what's causing my issue: parse5/packages/parse5-html-rewriting-stream/lib/index.js Lines 79 to 81 in 9c683e1
It doesn't even try to check the namespace or parent element there... I'll file a separate issue. |
This escaping:
parse5/packages/parse5/lib/serializer/index.js
Lines 136 to 149 in 9c683e1
However, while HTML is referring specifically to those nodes in the HTML namespace, parse5 does not check the namespace before serializing.
This leads to the following wrong result in jsdom: https://runkit.com/domenicdenicola/6044168f463fb4001a725307 compared to browsers: http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=8981
The text was updated successfully, but these errors were encountered: