Skip to content

Commit 4022182

Browse files
Fix errors in doctypes
A `>` after `DOCTYPE` is a missing-doctype-name parse error but it is not also a missing-whitespace-before-doctype-name parse error. Doctypes with a public identifier is a (currently unnamed) parse error.
1 parent 4c2b23a commit 4022182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tree-construction/tests6.dat

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
#data
4949
<!doctype>
5050
#errors
51-
(1,9): need-space-after-doctype
5251
(1,10): expected-doctype-name-but-got-right-bracket
5352
(1,10): unknown-doctype
5453
#new-errors
@@ -604,6 +603,7 @@ html
604603
#data
605604
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html></html>
606605
#errors
606+
(1,50): doctype-has-public-identifier
607607
#document
608608
| <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "">
609609
| <html>

0 commit comments

Comments
 (0)