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

Add dummy attribute when parser reaches attribute value when attr==null #765

Closed
wants to merge 1 commit into from

Conversation

xorye
Copy link

@xorye xorye commented Jun 4, 2020

Fixes #679, but I'm afraid this type of bug can be very complex. This PR does not cover all cases, as I wanted to minimize the changes in DOMParser.

In the case presented in #679, the reason why the content after the quote disappears is because the parser believes that that content is part of an attribute value. But, because there is no attribute name and delimiter, the scanner reads the quote and onwards, until it finds a matching quote.

Known problems in this PR:
Quote after the question mark in the prolog:

Signed-off-by: David Kwon dakwon@redhat.com

@xorye xorye closed this Jun 5, 2020
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.

Lone quote inside tag leads to catastrophic formatting
2 participants