Skip to content

Commit

Permalink
Fix errors in doctypes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stevecheckoway committed Oct 3, 2018
1 parent 4e9fcef commit 6f7ba44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree-construction/tests6.dat
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#data
<!doctype>
#errors
(1,9): need-space-after-doctype
(1,10): expected-doctype-name-but-got-right-bracket
(1,10): unknown-doctype
#new-errors
Expand Down Expand Up @@ -604,6 +603,7 @@ html
#data
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html></html>
#errors
(1,50): doctype-has-public-identifier
#document
| <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "">
| <html>
Expand Down

0 comments on commit 6f7ba44

Please sign in to comment.