{"tests": [ {"description":"[empty]", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"", "output":[]}, {"description":"[empty]", "initialStates":["CDATA section state"], "input":"", "output":[], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 1 } ]}, {"description":"\\u0009", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"\u0009", "output":[["Character", "\u0009"]]}, {"description":"\\u0009", "initialStates":["CDATA section state"], "input":"\u0009", "output":[["Character", "\u0009"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":"\\u000A", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"\u000A", "output":[["Character", "\u000A"]]}, {"description":"\\u000A", "initialStates":["CDATA section state"], "input":"\u000A", "output":[["Character", "\u000A"]], "errors":[ { "code": "eof-in-cdata", "line": 2, "col": 1 } ]}, {"description":"\\u000B", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"\u000B", "output":[["Character", "\u000B"]], "errors":[ { "code": "control-character-in-input-stream", "line": 1, "col": 1 } ]}, {"description":"\\u000B", "initialStates":["CDATA section state"], "input":"\u000B", "output":[["Character", "\u000B"]], "errors":[ { "code": "control-character-in-input-stream", "line": 1, "col": 1 }, { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":"\\u000C", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"\u000C", "output":[["Character", "\u000C"]]}, {"description":"\\u000C", "initialStates":["CDATA section state"], "input":"\u000C", "output":[["Character", "\u000C"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":" ", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":" ", "output":[["Character", " "]]}, {"description":" ", "initialStates":["CDATA section state"], "input":" ", "output":[["Character", " "]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":"!", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"!", "output":[["Character", "!"]]}, {"description":"!", "initialStates":["CDATA section state"], "input":"!", "output":[["Character", "!"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":"\"", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"\"", "output":[["Character", "\""]]}, {"description":"\"", "initialStates":["CDATA section state"], "input":"\"", "output":[["Character", "\""]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":"%", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"%", "output":[["Character", "%"]]}, {"description":"%", "initialStates":["CDATA section state"], "input":"%", "output":[["Character", "%"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":"&", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"&", "output":[["Character", "&"]]}, {"description":"&", "initialStates":["CDATA section state"], "input":"&", "output":[["Character", "&"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":"'", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"'", "output":[["Character", "'"]]}, {"description":"'", "initialStates":["CDATA section state"], "input":"'", "output":[["Character", "'"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":",", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":",", "output":[["Character", ","]]}, {"description":",", "initialStates":["CDATA section state"], "input":",", "output":[["Character", ","]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":"-", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"-", "output":[["Character", "-"]]}, {"description":"-", "initialStates":["CDATA section state"], "input":"-", "output":[["Character", "-"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":".", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":".", "output":[["Character", "."]]}, {"description":".", "initialStates":["CDATA section state"], "input":".", "output":[["Character", "."]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":"/", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"/", "output":[["Character", "/"]]}, {"description":"/", "initialStates":["CDATA section state"], "input":"/", "output":[["Character", "/"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":"0", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"0", "output":[["Character", "0"]]}, {"description":"0", "initialStates":["CDATA section state"], "input":"0", "output":[["Character", "0"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":"1", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"1", "output":[["Character", "1"]]}, {"description":"1", "initialStates":["CDATA section state"], "input":"1", "output":[["Character", "1"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":"9", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":"9", "output":[["Character", "9"]]}, {"description":"9", "initialStates":["CDATA section state"], "input":"9", "output":[["Character", "9"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":";", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";", "output":[["Character", ";"]]}, {"description":";", "initialStates":["CDATA section state"], "input":";", "output":[["Character", ";"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 2 } ]}, {"description":";=", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";=", "output":[["Character", ";="]]}, {"description":";=", "initialStates":["CDATA section state"], "input":";=", "output":[["Character", ";="]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";>", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";>", "output":[["Character", ";>"]]}, {"description":";>", "initialStates":["CDATA section state"], "input":";>", "output":[["Character", ";>"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";?", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";?", "output":[["Character", ";?"]]}, {"description":";?", "initialStates":["CDATA section state"], "input":";?", "output":[["Character", ";?"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";@", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";@", "output":[["Character", ";@"]]}, {"description":";@", "initialStates":["CDATA section state"], "input":";@", "output":[["Character", ";@"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";A", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";A", "output":[["Character", ";A"]]}, {"description":";A", "initialStates":["CDATA section state"], "input":";A", "output":[["Character", ";A"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";B", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";B", "output":[["Character", ";B"]]}, {"description":";B", "initialStates":["CDATA section state"], "input":";B", "output":[["Character", ";B"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";Y", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";Y", "output":[["Character", ";Y"]]}, {"description":";Y", "initialStates":["CDATA section state"], "input":";Y", "output":[["Character", ";Y"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";Z", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";Z", "output":[["Character", ";Z"]]}, {"description":";Z", "initialStates":["CDATA section state"], "input":";Z", "output":[["Character", ";Z"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";`", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";`", "output":[["Character", ";`"]]}, {"description":";`", "initialStates":["CDATA section state"], "input":";`", "output":[["Character", ";`"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";a", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";a", "output":[["Character", ";a"]]}, {"description":";a", "initialStates":["CDATA section state"], "input":";a", "output":[["Character", ";a"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";b", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";b", "output":[["Character", ";b"]]}, {"description":";b", "initialStates":["CDATA section state"], "input":";b", "output":[["Character", ";b"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";y", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";y", "output":[["Character", ";y"]]}, {"description":";y", "initialStates":["CDATA section state"], "input":";y", "output":[["Character", ";y"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";z", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";z", "output":[["Character", ";z"]]}, {"description":";z", "initialStates":["CDATA section state"], "input":";z", "output":[["Character", ";z"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";{", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";{", "output":[["Character", ";{"]]}, {"description":";{", "initialStates":["CDATA section state"], "input":";{", "output":[["Character", ";{"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 3 } ]}, {"description":";\\uDBC0\\uDC00", "initialStates":["Data state", "PLAINTEXT state", "RCDATA state", "RAWTEXT state", "Script data state"], "input":";\uDBC0\uDC00", "output":[["Character", ";\uDBC0\uDC00"]]}, {"description":";\\uDBC0\\uDC00", "initialStates":["CDATA section state"], "input":";\uDBC0\uDC00", "output":[["Character", ";\uDBC0\uDC00"]], "errors":[ { "code": "eof-in-cdata", "line": 1, "col": 4 } ]}, {"description":"<", "input":"<", "output":[["Character", "<"]], "errors":[ { "code": "eof-before-tag-name", "line": 1, "col": 2 } ]}, {"description":"<\\u0000", "input":"<\u0000", "output":[["Character", "<\u0000"]], "errors":[ { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 2 }, { "code": "unexpected-null-character", "line": 1, "col": 2 } ]}, {"description":"<\\u0009", "input":"<\u0009", "output":[["Character", "<\u0009"]], "errors":[ { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 2 } ]}, {"description":"<\\u000A", "input":"<\u000A", "output":[["Character", "<\u000A"]], "errors":[ { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 2 } ]}, {"description":"<\\u000B", "input":"<\u000B", "output":[["Character", "<\u000B"]], "errors":[ { "code": "control-character-in-input-stream", "line": 1, "col": 2 }, { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 2 } ]}, {"description":"<\\u000C", "input":"<\u000C", "output":[["Character", "<\u000C"]], "errors":[ { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 2 } ]}, {"description":"< ", "input":"< ", "output":[["Character", "< "]], "errors":[ { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 2 } ]}, {"description":"", "input":"", "input":"", "output":[["Comment", "-- "]]}, {"description":"", "input":"", "output":[["Comment", "-- "]]}, {"description":"", "input":"", "output":[["Comment", "-- a"]]}, {"description":"", "input":"", "output":[["Comment", ""]], "errors":[ { "code": "incorrectly-closed-comment", "line": 1, "col": 8 } ]}, {"description":"", "input":"", "output":[["Comment", "--!a"]]}, {"description":"", "input":"", "output":[["Comment", "--!"]]}, {"description":"", "input":"", "output":[["Comment", ""]]}, {"description":"