Skip to content

Ensure namespace-aware “clear the stack” handling #42

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

Closed

Conversation

sideshowbarker
Copy link
Member

This change ensures that for all cases with spec requirements in the form “clear the stack back to a foo context” — which involves checking for elements with particular names — we only look for elements in the HTML namespace, rather than additionally looking for elements which aren’t in the HTML namespace but that also have those particular names.

Otherwise, without this change, we aren’t in conformance with the spec requirements, and we fail several cases in the html5lib-tests suite.

Fixes #33


Without this change, we’re failing the following html5lib-tests fragment-parsing cases:

…and also failing the corresponding tests in https://github.com/html5lib/html5lib-tests/blob/master/tree-construction/svg.dat

This change ensures that for all cases with spec requirements in the
form “clear the stack back to a foo context” — which involves checking
for elements with particular names — we only look for elements in the
HTML namespace, rather than additionally looking for elements which
aren’t in the HTML namespace but that also have those particular names.

Otherwise, without this change, we aren’t in conformance with the spec
requirements, and we fail several cases in the html5lib-tests suite.

Fixes #33
@sideshowbarker sideshowbarker changed the base branch from validator-nu to encoding August 21, 2020 17:22
@sideshowbarker sideshowbarker changed the base branch from encoding to master August 21, 2020 17:23
Copy link
Member

@hsivonen hsivonen left a comment

Choose a reason for hiding this comment

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

Good catch! Thanks!

@hsivonen
Copy link
Member

I pushed this via the command line as 6c124b3 and now I don't know how to make the GitHub PR metadata say merged instead of closed.

Thanks and sorry about the bad metadata state.

@hsivonen hsivonen closed this Aug 18, 2021
@nschonni nschonni deleted the sideshowbarker/clear-the-stack-namespace-aware branch August 20, 2021 14:05
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.

Investigate failing math-element tree-construction tests
2 participants