U+0000 is now a parse error in bogus comment and bogus DOCTYPE states
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reading WHATWG HTML pull request 2939 and reproduce the example in the HTML5 parser checker with <!%00>. Trace where U+0000 is handled in preprocessing, tokenization, and tree building. Done means the parser follows the specified handling for bogus comment and bogus DOCTYPE states, including the expected parse-error behavior.
Written by the indexing model from the issue text.
Description
Consider implementing https://github.com/whatwg/html/pull/2939
Experimenting with https://checker.html5.org/parsetree/?parser=html5&content=<!%00>&submit=Print+Tree it seems currently the U+0000 check is in the preprocessing step, and not in the tokenizer. In the spec it was removed from the preprocessing since it needs different handling in the tokenizer/tree builder for different contexts, IIRC. But with the latest spec change it ought to be equivalent in terms of how many errors are produced for a given input, the difference could be relative order of errors.
Anyway I thought I'd file this as a heads-up at least.
- Dominant language
- Java
- Stars
- 65
- Forks
- 29
- Avg merge
- 11d 21h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from validator/htmlparser
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
validator/htmlparser#98 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
validator/htmlparser#96 · 1 comment · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
validator/htmlparser#95 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
validator/htmlparser#87 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
validator/htmlparser#79 ·
All issues in validator/htmlparser
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
checkstyle/test-configs#263 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·