Skip to content

Commit 2ca2fff

Browse files
committed
Pre-emptively fix the tests assuming that the comment end space state goes away.
1 parent 01de932 commit 2ca2fff

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tree-construction/comments01.dat

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ FOO<!-- BAR --!>BAZ
2323
#data
2424
FOO<!-- BAR -- >BAZ
2525
#errors
26+
3: Non-space characters found without seeing a doctype first. Expected “<!DOCTYPE html>”.
27+
15: Consecutive hyphens did not terminate a comment. “--” is not permitted inside a comment, but e.g. “- -” is.
28+
21: End of file inside comment.
2629
#document
2730
| <html>
2831
| <head>
2932
| <body>
3033
| "FOO"
31-
| <!-- BAR -- -->
32-
| "BAZ"
34+
| <!-- BAR -- >BAZ -->
3335

3436
#data
3537
FOO<!-- BAR -- <QUX> -- MUX -->BAZ
@@ -56,13 +58,17 @@ FOO<!-- BAR -- <QUX> -- MUX --!>BAZ
5658
#data
5759
FOO<!-- BAR -- <QUX> -- MUX -- >BAZ
5860
#errors
61+
3: Non-space characters found without seeing a doctype first. Expected “<!DOCTYPE html>”.
62+
15: Consecutive hyphens did not terminate a comment. “--” is not permitted inside a comment, but e.g. “- -” is.
63+
24: Consecutive hyphens did not terminate a comment. “--” is not permitted inside a comment, but e.g. “- -” is.
64+
31: Consecutive hyphens did not terminate a comment. “--” is not permitted inside a comment, but e.g. “- -” is.
65+
35: End of file inside comment.
5966
#document
6067
| <html>
6168
| <head>
6269
| <body>
6370
| "FOO"
64-
| <!-- BAR -- <QUX> -- MUX -- -->
65-
| "BAZ"
71+
| <!-- BAR -- <QUX> -- MUX -- >BAZ -->
6672

6773
#data
6874
FOO<!---->BAZ

0 commit comments

Comments
 (0)