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
Parsing an attribute without a value can cause code confusion #486
Comments
Thank you for reporting, filing the bug and even the PR. |
Closes #486 --------- Co-authored-by: chengcp <ccp06939@itsmycar.cn> Co-authored-by: Christian Bewernitz <coder@karfau.de>
Fixes are available in 0.7.10 and 0.8.7 releases |
FYI: Just added the Even when using compared to xmldom, which doesn't wrap html with a |
Describe the bug
Something went wrong when I parsed the following code。
The above code is parsed into something like this:
To Reproduce
https://stackblitz.com/edit/js-xmldom-template-cyojup?file=index.js
Expected behavior
Runtime & Version:
xmldom version: 0.8.6
runtime version: 0.8.6
other related software and version:
Additional context
I tried to solve the problem myself, until I changed the code in
@xmldom/xmldom/lib/sax.js
in such a way that it could parse properly。Finally, I put up the pull request, I don't know whether my solution is right or not, so you can check it when you are free.
Thanks.
The text was updated successfully, but these errors were encountered: