8000 Adjust the error ids for space or line break in comment end bang state · html5lib/html5lib-tests@0f4dee5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f4dee5

Browse files
committed
Adjust the error ids for space or line break in comment end bang state
1 parent 4fffa16 commit 0f4dee5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tokenizer/test3.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -958,28 +958,28 @@
958958
"input":"<!----! >",
959959
"output":[["Comment", "--! >"]],
960960
"errors":[
961-
{ "code": "incorrectly-closed-comment", "line": 1, "col": 8 }
961+
{ "code": "eof-in-comment", "line": 1, "col": 9 }
962962
]},
963963

964964
{"description":"<!----!LF>",
965965
"input":"<!----!\n>",
966966
"output":[["Comment", "--!\n>"]],
967967
"errors":[
968-
{ "code": "incorrectly-closed-comment", "line": 1, "col": 8 }
968+
{ "code": "eof-in-comment", "line": 1, "col": 9 }
969969
]},
970970

971971
{"description":"<!----!CR>",
972972
"input":"<!----!\r>",
973973
"output":[["Comment", "--!\n>"]],
974974
"errors":[
975-
{ "code": "incorrectly-closed-comment", "line": 1, "col": 8 }
975 8000 +
{ "code": "eof-in-comment", "line": 1, "col": 9 }
976976
]},
977977

978978
{"description":"<!----!CRLF>",
979979
"input":"<!----!\r\n>",
980980
"output":[["Comment", "--!\n>"]],
981981
"errors":[
982-
{ "code": "incorrectly-closed-comment", "line": 1, "col": 8 }
982+
{ "code": "eof-in-comment", "line": 1, "col": 9 }
983983
]},
984984

985985
{"description":"<!----!a",

tree-construction/comments01.dat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ FOO<!-- BAR --! >BAZ
3030
#errors
3131
(1,3): expected-doctype-but-got-chars
3232
#new-errors
33-
(1:20) incorrectly-closed-comment
33+
(1:20) eof-in-comment
3434
#document
3535
| <html>
3636
| <head>
@@ -44,7 +44,7 @@ FOO<!-- BAR --!
4444
#errors
4545
(1,3): expected-doctype-but-got-chars
4646
#new-errors
47-
(1:20) incorrectly-closed-comment
47+
(1:20) eof-in-comment
4848
#document
4949
| <html>
5050
| <head>

0 commit comments

Comments
 (0)
0