Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion tokenizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ tokens are:
["EndTag", name]
["Comment", data]
["Character", data]
"ParseError"

`public_id` and `system_id` are either strings or `null`. `correctness`
is either `true` or `false`; `true` corresponds to the force-quirks flag
Expand Down
4 changes: 2 additions & 2 deletions tokenizer/contentModelFlags.test
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"initialStates":["RCDATA state", "RAWTEXT state"],
"lastStartTag":"xmp",
"input":"foo</xmp ",
"output":[["Character", "foo"], "ParseError"],
"output":[["Character", "foo"]],
"errors":[
{ "code": "eof-in-tag", "line": 1, "col": 10 }
]},
Expand All @@ -37,7 +37,7 @@
"initialStates":["RCDATA state", "RAWTEXT state"],
"lastStartTag":"xmp",
"input":"foo</xmp/",
"output":[["Character", "foo"], "ParseError"],
"output":[["Character", "foo"]],
"errors":[
{ "code": "eof-in-tag", "line": 1, "col": 10 }
]},
Expand Down
14 changes: 7 additions & 7 deletions tokenizer/domjs.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
{
"description":"CR in bogus comment state",
"input":"<?\u000d",
"output":["ParseError", ["Comment", "?\u000a"]],
"output":[["Comment", "?\u000a"]],
"errors":[
{ "code": "start-of-processing-instruction-or-xml-declaration", "line": 1, "col": 2 }
]
},
{
"description":"CRLF in bogus comment state",
"input":"<?\u000d\u000a",
"output":["ParseError", ["Comment", "?\u000a"]],
"output":[["Comment", "?\u000a"]],
"errors":[
{ "code": "start-of-processing-instruction-or-xml-declaration", "line": 1, "col": 2 }
]
},
{
"description":"CRLFLF in bogus comment state",
"input":"<?\u000d\u000a\u000a",
"output":["ParseError", ["Comment", "?\u000a\u000a"]],
"output":[["Comment", "?\u000a\u000a"]],
"errors":[
{ "code": "start-of-processing-instruction-or-xml-declaration", "line": 1, "col": 2 }
]
Expand All @@ -29,7 +29,7 @@
"doubleEscaped":true,
"initialStates":["RCDATA state", "RAWTEXT state", "PLAINTEXT state", "Script data state"],
"input":"\\u0000",
"output":["ParseError", ["Character", "\\uFFFD"]],
"output":[["Character", "\\uFFFD"]],
"errors":[
{ "code": "unexpected-null-character", "line": 1, "col": 1 }
]
Expand Down Expand Up @@ -128,7 +128,7 @@
"description":"Bad charref in in RCDATA",
"initialStates":["RCDATA state"],
"input":"&NotEqualTild;",
"output":["ParseError", ["Character", "&NotEqualTild;"]],
"output":[["Character", "&NotEqualTild;"]],
"errors": [
{"code" : "unknown-named-character-reference", "line": 1, "col": 1}
]
Expand Down Expand Up @@ -177,15 +177,15 @@
"description":"--!NUL in comment ",
"doubleEscaped":true,
"input":"<!----!\\u0000-->",
"output":["ParseError", "ParseError", ["Comment", "--!\\uFFFD"]],
"output":[["Comment", "--!\\uFFFD"]],
"errors":[
{ "code": "unexpected-null-character", "line": 1, "col": 8 }
]
},
{
"description":"space EOF after doctype ",
"input":"<!DOCTYPE html ",
"output":["ParseError", ["DOCTYPE", "html", null, null , false]],
"output":[["DOCTYPE", "html", null, null , false]],
"errors":[
{ "code": "eof-in-doctype", "line": 1, "col": 16 }
]
Expand Down
Loading