Commit 0fde851
Ensure doctype name is set to null when missing
This change ensures that the tokenizer sets the doctype name to null
when the doctype name is missing in the input source.
Otherwise, without this change, the doctype name is set to the empty
string — which doesn’t conform to the requirements in the HTML spec, and
which causes us to fail 9 tests in the html5lib-tests suite.
Relates to #351 parent 6c124b3 commit 0fde851
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6119 | 6119 | | |
6120 | 6120 | | |
6121 | 6121 | | |
6122 | | - | |
| 6122 | + | |
6123 | 6123 | | |
6124 | 6124 | | |
6125 | 6125 | | |
| |||
6430 | 6430 | | |
6431 | 6431 | | |
6432 | 6432 | | |
6433 | | - | |
| 6433 | + | |
6434 | 6434 | | |
6435 | 6435 | | |
6436 | 6436 | | |
| |||
0 commit comments