Skip to content

Commit e20b7b3

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 a1dcff0 commit e20b7b3

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

tree-construction/comments01.dat

-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ FOO<!-->BAZ
174174
FOO<!----->BAZ
175175
#errors
176176
(1,3): expected-doctype-but-got-chars
177-
(1,10): unexpected-dash-after-double-dash-in-comment
178177
#document
179178
| <html>
180179
| <head>

tree-construction/tests1.dat

-1
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)