Skip to content

Commit

Permalink
<!-----> is not an error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stevecheckoway committed Oct 1, 2018
1 parent a1dcff0 commit e20b7b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion tree-construction/comments01.dat
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ FOO<!-->BAZ
FOO<!----->BAZ
#errors
(1,3): expected-doctype-but-got-chars
(1,10): unexpected-dash-after-double-dash-in-comment
#document
| <html>
| <head>
Expand Down
1 change: 0 additions & 1 deletion tree-construction/tests1.dat
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ Line1<br>Line2<br>Line3<br>Line4
#data
<!-----><font><div>hello<table>excite!<b>me!<th><i>please!</tr><!--X-->
#errors
(1,7): unexpected-dash-after-double-dash-in-comment
(1,14): expected-doctype-but-got-start-tag
(1,41): unexpected-start-tag-implies-table-voodoo
(1,48): foster-parenting-character-in-table
Expand Down

0 comments on commit e20b7b3

Please sign in to comment.