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

tree construction test assumes inefficient reprocessing #172

Open
not-my-profile opened this issue Sep 26, 2023 · 0 comments
Open

tree construction test assumes inefficient reprocessing #172

not-my-profile opened this issue Sep 26, 2023 · 0 comments

Comments

@not-my-profile
Copy link

The test in question is the following of tests19.dat:

#data
<!doctype html><math></html>
#errors
(1,28): unexpected-end-tag
(1,28): expected-one-end-tag-but-got-another
(1,28): unexpected-end-tag
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <math math>

The "in body" insertion mode contains the following instruction:

An end tag whose tag name is "html"
[...]
Reprocess the token.

If this token reprocessing is implemented efficiently by reprocessing according to the current insertion mode (as opposed to unnecessarily stepping through the rules for parsing tokens in foreign content again), then the second error is never reported, which causes this test to fail due to there only being 2 instead of 3 errors.

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

No branches or pull requests

1 participant