Skip to content

Commit 0b3ff9a

Browse files
<!-----> is not an error
Starting from the data state, we have 1. `<` switches to the tag open state 2. `!` switches to the markup declaration open state 3. `--` switches to the comment start state 4. `-` (the third one) switches to the comment start dash state 5. `-` (the fourth one) switches to the comment end state 6. `-` (the fifth one) appends `-` to the comment and does not change state 7. `>` emits the comment token and switches to the data state.
1 parent 4a80053 commit 0b3ff9a

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

tree-construction/comments01.dat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ FOO<!-->BAZ
166166
FOO<!----->BAZ
167167
#errors
168168
(1,3): expected-doctype-but-got-chars
169-
(1,10): unexpected-dash-after-double-dash-in-comment
170169
#document
171170
| <html>
172171
| <head>

tree-construction/tests1.dat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ Line1<br>Line2<br>Line3<br>Line4
425425
#data
426426
<!-----><font><div>hello<table>excite!<b>me!<th><i>please!</tr><!--X-->
427427
#errors
428-
(1,7): unexpected-dash-after-double-dash-in-comment
429428
(1,14): expected-doctype-but-got-start-tag
430429
(1,41): unexpected-start-tag-implies-table-voodoo
431430
(1,48): foster-parenting-character-in-table

0 commit comments

Comments
 (0)