diff --git a/tokenizer/README.md b/tokenizer/README.md index 4218c26b..ee43fc63 100644 --- a/tokenizer/README.md +++ b/tokenizer/README.md @@ -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 diff --git a/tokenizer/contentModelFlags.test b/tokenizer/contentModelFlags.test index 36be6ade..5197b68e 100644 --- a/tokenizer/contentModelFlags.test +++ b/tokenizer/contentModelFlags.test @@ -22,7 +22,7 @@ "initialStates":["RCDATA state", "RAWTEXT state"], "lastStartTag":"xmp", "input":"foo", - "output":["ParseError", "ParseError", ["Comment", "--!\\uFFFD"]], + "output":[["Comment", "--!\\uFFFD"]], "errors":[ { "code": "unexpected-null-character", "line": 1, "col": 8 } ] @@ -185,7 +185,7 @@ { "description":"space EOF after doctype ", "input":"baz", -"output":[["Character", "foo"], ["EndTag", "xmp"], "ParseError", ["Comment", ""], ["Character", "baz"], ["EndTag", "xmp"]], +"output":[["Character", "foo"], ["EndTag", "xmp"], ["Comment", ""], ["Character", "baz"], ["EndTag", "xmp"]], "errors":[ { "code": "abrupt-closing-of-comment", "line": 1, "col": 19 } ]}, diff --git a/tokenizer/namedEntities.test b/tokenizer/namedEntities.test index 7c64c567..c8f6ef84 100644 --- a/tokenizer/namedEntities.test +++ b/tokenizer/namedEntities.test @@ -4,7 +4,6 @@ "input": "Æ", "description": "Named entity: AElig without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00c6" @@ -28,7 +27,6 @@ "input": "&", "description": "Named entity: AMP without a semi-colon", "output": [ - "ParseError", [ "Character", "&" @@ -52,7 +50,6 @@ "input": "Á", "description": "Named entity: Aacute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00c1" @@ -99,7 +96,6 @@ "input": "Â", "description": "Named entity: Acirc without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00c2" @@ -169,7 +165,6 @@ "input": "À", "description": "Named entity: Agrave without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00c0" @@ -331,7 +326,6 @@ "input": "Å", "description": "Named entity: Aring without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00c5" @@ -401,7 +395,6 @@ "input": "Ã", "description": "Named entity: Atilde without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00c3" @@ -425,7 +418,6 @@ "input": "Ä", "description": "Named entity: Auml without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00c4" @@ -748,7 +740,6 @@ "input": "©", "description": "Named entity: COPY without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00a9" @@ -887,7 +878,6 @@ "input": "Ç", "description": "Named entity: Ccedil without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00c7" @@ -2774,7 +2764,6 @@ "input": "Ð", "description": "Named entity: ETH without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00d0" @@ -2798,7 +2787,6 @@ "input": "É", "description": "Named entity: Eacute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00c9" @@ -2845,7 +2833,6 @@ "input": "Ê", "description": "Named entity: Ecirc without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ca" @@ -2938,7 +2925,6 @@ "input": "È", "description": "Named entity: Egrave without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00c8" @@ -3261,7 +3247,6 @@ "input": "Ë", "description": "Named entity: Euml without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00cb" @@ -3538,7 +3523,6 @@ "input": ">", "description": "Named entity: GT without a semi-colon", "output": [ - "ParseError", [ "Character", ">" @@ -4344,7 +4328,6 @@ "input": "Í", "description": "Named entity: Iacute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00cd" @@ -4368,7 +4351,6 @@ "input": "Î", "description": "Named entity: Icirc without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ce" @@ -4461,7 +4443,6 @@ "input": "Ì", "description": "Named entity: Igrave without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00cc" @@ -4830,7 +4811,6 @@ "input": "Ï", "description": "Named entity: Iuml without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00cf" @@ -5222,7 +5202,6 @@ "input": "<", "description": "Named entity: LT without a semi-colon", "output": [ - "ParseError", [ "Character", "<" @@ -8351,7 +8330,6 @@ "input": "Ñ", "description": "Named entity: Ntilde without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00d1" @@ -8421,7 +8399,6 @@ "input": "Ó", "description": "Named entity: Oacute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00d3" @@ -8445,7 +8422,6 @@ "input": "Ô", "description": "Named entity: Ocirc without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00d4" @@ -8538,7 +8514,6 @@ "input": "Ò", "description": "Named entity: Ograve without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00d2" @@ -8746,7 +8721,6 @@ "input": "Ø", "description": "Named entity: Oslash without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00d8" @@ -8770,7 +8744,6 @@ "input": "Õ", "description": "Named entity: Otilde without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00d5" @@ -8817,7 +8790,6 @@ "input": "Ö", "description": "Named entity: Ouml without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00d6" @@ -9370,7 +9342,6 @@ "input": """, "description": "Named entity: QUOT without a semi-colon", "output": [ - "ParseError", [ "Character", "\"" @@ -9486,7 +9457,6 @@ "input": "®", "description": "Named entity: REG without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ae" @@ -11396,7 +11366,6 @@ "input": "Þ", "description": "Named entity: THORN without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00de" @@ -11903,7 +11872,6 @@ "input": "Ú", "description": "Named entity: Uacute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00da" @@ -12019,7 +11987,6 @@ "input": "Û", "description": "Named entity: Ucirc without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00db" @@ -12112,7 +12079,6 @@ "input": "Ù", "description": "Named entity: Ugrave without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00d9" @@ -12711,7 +12677,6 @@ "input": "Ü", "description": "Named entity: Uuml without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00dc" @@ -13402,7 +13367,6 @@ "input": "Ý", "description": "Named entity: Yacute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00dd" @@ -13794,7 +13758,6 @@ "input": "á", "description": "Named entity: aacute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00e1" @@ -13910,7 +13873,6 @@ "input": "â", "description": "Named entity: acirc without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00e2" @@ -13934,7 +13896,6 @@ "input": "´", "description": "Named entity: acute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00b4" @@ -13981,7 +13942,6 @@ "input": "æ", "description": "Named entity: aelig without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00e6" @@ -14051,7 +14011,6 @@ "input": "à", "description": "Named entity: agrave without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00e0" @@ -14190,7 +14149,6 @@ "input": "&", "description": "Named entity: amp without a semi-colon", "output": [ - "ParseError", [ "Character", "&" @@ -14973,7 +14931,6 @@ "input": "å", "description": "Named entity: aring without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00e5" @@ -15089,7 +15046,6 @@ "input": "ã", "description": "Named entity: atilde without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00e3" @@ -15113,7 +15069,6 @@ "input": "ä", "description": "Named entity: auml without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00e4" @@ -17506,7 +17461,6 @@ "input": "¦", "description": "Named entity: brvbar without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00a6" @@ -18105,7 +18059,6 @@ "input": "ç", "description": "Named entity: ccedil without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00e7" @@ -18221,7 +18174,6 @@ "input": "¸", "description": "Named entity: cedil without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00b8" @@ -18268,7 +18220,6 @@ "input": "¢", "description": "Named entity: cent without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00a2" @@ -19130,7 +19081,6 @@ "input": "©", "description": "Named entity: copy without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00a9" @@ -19785,7 +19735,6 @@ "input": "¤", "description": "Named entity: curren without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00a4" @@ -20315,7 +20264,6 @@ "input": "°", "description": "Named entity: deg without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00b0" @@ -20661,7 +20609,6 @@ "input": "÷", "description": "Named entity: divide without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00f7" @@ -21477,7 +21424,6 @@ "input": "é", "description": "Named entity: eacute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00e9" @@ -21570,7 +21516,6 @@ "input": "ê", "description": "Named entity: ecirc without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ea" @@ -21755,7 +21700,6 @@ "input": "è", "description": "Named entity: egrave without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00e8" @@ -22699,7 +22643,6 @@ "input": "ð", "description": "Named entity: eth without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00f0" @@ -22723,7 +22666,6 @@ "input": "ë", "description": "Named entity: euml without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00eb" @@ -23276,7 +23218,6 @@ "input": "½", "description": "Named entity: frac12 without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00bd" @@ -23323,7 +23264,6 @@ "input": "¼", "description": "Named entity: frac14 without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00bc" @@ -23462,7 +23402,6 @@ "input": "¾", "description": "Named entity: frac34 without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00be" @@ -24705,7 +24644,6 @@ "input": ">", "description": "Named entity: gt without a semi-colon", "output": [ - "ParseError", [ "Character", ">" @@ -25539,7 +25477,6 @@ "input": "í", "description": "Named entity: iacute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ed" @@ -25586,7 +25523,6 @@ "input": "î", "description": "Named entity: icirc without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ee" @@ -25656,7 +25592,6 @@ "input": "¡", "description": "Named entity: iexcl without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00a1" @@ -25726,7 +25661,6 @@ "input": "ì", "description": "Named entity: igrave without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ec" @@ -26417,7 +26351,6 @@ "input": "¿", "description": "Named entity: iquest without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00bf" @@ -26671,7 +26604,6 @@ "input": "ï", "description": "Named entity: iuml without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ef" @@ -27454,7 +27386,6 @@ "input": "«", "description": "Named entity: laquo without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ab" @@ -30238,7 +30169,6 @@ "input": "<", "description": "Named entity: lt without a semi-colon", "output": [ - "ParseError", [ "Character", "<" @@ -30487,7 +30417,6 @@ "input": "¯", "description": "Named entity: macr without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00af" @@ -30856,7 +30785,6 @@ "input": "µ", "description": "Named entity: micro without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00b5" @@ -30949,7 +30877,6 @@ "input": "·", "description": "Named entity: middot without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00b7" @@ -31824,7 +31751,6 @@ "input": " ", "description": "Named entity: nbsp without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00a0" @@ -33159,7 +33085,6 @@ "input": "¬", "description": "Named entity: not without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ac" @@ -34318,7 +34243,6 @@ "input": "ñ", "description": "Named entity: ntilde without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00f1" @@ -35009,7 +34933,6 @@ "input": "ó", "description": "Named entity: oacute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00f3" @@ -35079,7 +35002,6 @@ "input": "ô", "description": "Named entity: ocirc without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00f4" @@ -35333,7 +35255,6 @@ "input": "ò", "description": "Named entity: ograve without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00f2" @@ -35886,7 +35807,6 @@ "input": "ª", "description": "Named entity: ordf without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00aa" @@ -35910,7 +35830,6 @@ "input": "º", "description": "Named entity: ordm without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ba" @@ -36049,7 +35968,6 @@ "input": "ø", "description": "Named entity: oslash without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00f8" @@ -36096,7 +36014,6 @@ "input": "õ", "description": "Named entity: otilde without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00f5" @@ -36166,7 +36083,6 @@ "input": "ö", "description": "Named entity: ouml without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00f6" @@ -36236,7 +36152,6 @@ "input": "¶", "description": "Named entity: para without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00b6" @@ -36891,7 +36806,6 @@ "input": "±", "description": "Named entity: plusmn without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00b1" @@ -37030,7 +36944,6 @@ "input": "£", "description": "Named entity: pound without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00a3" @@ -37928,7 +37841,6 @@ "input": """, "description": "Named entity: quot without a semi-colon", "output": [ - "ParseError", [ "Character", "\"" @@ -38251,7 +38163,6 @@ "input": "»", "description": "Named entity: raquo without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00bb" @@ -39126,7 +39037,6 @@ "input": "®", "description": "Named entity: reg without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ae" @@ -40829,7 +40739,6 @@ "input": "§", "description": "Named entity: sect without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00a7" @@ -41129,7 +41038,6 @@ "input": "­", "description": "Named entity: shy without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ad" @@ -43121,7 +43029,6 @@ "input": "¹", "description": "Named entity: sup1 without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00b9" @@ -43145,7 +43052,6 @@ "input": "²", "description": "Named entity: sup2 without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00b2" @@ -43169,7 +43075,6 @@ "input": "³", "description": "Named entity: sup3 without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00b3" @@ -43778,7 +43683,6 @@ "input": "ß", "description": "Named entity: szlig without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00df" @@ -44239,7 +44143,6 @@ "input": "þ", "description": "Named entity: thorn without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00fe" @@ -44286,7 +44189,6 @@ "input": "×", "description": "Named entity: times without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00d7" @@ -45099,7 +45001,6 @@ "input": "ú", "description": "Named entity: uacute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00fa" @@ -45192,7 +45093,6 @@ "input": "û", "description": "Named entity: ucirc without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00fb" @@ -45354,7 +45254,6 @@ "input": "ù", "description": "Named entity: ugrave without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00f9" @@ -45562,7 +45461,6 @@ "input": "¨", "description": "Named entity: uml without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00a8" @@ -46092,7 +45990,6 @@ "input": "ü", "description": "Named entity: uuml without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00fc" @@ -47910,7 +47807,6 @@ "input": "ý", "description": "Named entity: yacute without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00fd" @@ -48003,7 +47899,6 @@ "input": "¥", "description": "Named entity: yen without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00a5" @@ -48142,7 +48037,6 @@ "input": "ÿ", "description": "Named entity: yuml without a semi-colon", "output": [ - "ParseError", [ "Character", "\u00ff" diff --git a/tokenizer/numericEntities.test b/tokenizer/numericEntities.test index bcb550fe..a5e233c0 100644 --- a/tokenizer/numericEntities.test +++ b/tokenizer/numericEntities.test @@ -2,7 +2,7 @@ {"description": "Invalid unterminated numeric entity character overflow before EOF", "input": "�", -"output": ["ParseError", "ParseError", ["Character", "\uFFFD"]], +"output": [["Character", "\uFFFD"]], "errors":[ { "code": "missing-semicolon-after-character-reference", "line": 1, "col": 14 }, { "code": "non-unicode-character-reference", "line": 1, "col": 14 } @@ -10,7 +10,7 @@ {"description": "Invalid unterminated numeric entity character overflow before EOF", "input": "�", -"output": ["ParseError", "ParseError", ["Character", "\uFFFD"]], +"output": [["Character", "\uFFFD"]], "errors":[ { "code": "missing-semicolon-after-character-reference", "line": 1, "col": 13 }, { "code": "non-unicode-character-reference", "line": 1, "col": 13 } @@ -18,7 +18,7 @@ {"description": "Invalid unterminated numeric entity character overflow before EOF", "input": "�", -"output": ["ParseError", "ParseError", ["Character", "\uFFFD"]], +"output": [["Character", "\uFFFD"]], "errors":[ { "code": "missing-semicolon-after-character-reference", "line": 1, "col": 15 }, { "code": "non-unicode-character-reference", "line": 1, "col": 15 } @@ -26,7 +26,7 @@ {"description": "Invalid unterminated numeric entity character overflow", "input": "�x", -"output": ["ParseError", "ParseError", ["Character", "\uFFFDx"]], +"output": [["Character", "\uFFFDx"]], "errors":[ { "code": "missing-semicolon-after-character-reference", "line": 1, "col": 14 }, { "code": "non-unicode-character-reference", "line": 1, "col": 14 } @@ -34,7 +34,7 @@ {"description": "Invalid unterminated numeric entity character overflow", "input": "�x", -"output": ["ParseError", "ParseError", ["Character", "\uFFFDx"]], +"output": [["Character", "\uFFFDx"]], "errors":[ { "code": "missing-semicolon-after-character-reference", "line": 1, "col": 13 }, { "code": "non-unicode-character-reference", "line": 1, "col": 13 } @@ -42,7 +42,7 @@ {"description": "Invalid unterminated numeric entity character overflow", "input": "�x", -"output": ["ParseError", "ParseError", ["Character", "\uFFFDx"]], +"output": [["Character", "\uFFFDx"]], "errors":[ { "code": "missing-semicolon-after-character-reference", "line": 1, "col": 15 }, { "code": "non-unicode-character-reference", "line": 1, "col": 15 } @@ -50,42 +50,42 @@ {"description": "Invalid numeric entity character overflow", "input": "�", -"output": ["ParseError", ["Character", "\uFFFD"]], +"output": [["Character", "\uFFFD"]], "errors":[ { "code": "non-unicode-character-reference", "line": 1, "col": 15 } ]}, {"description": "Invalid numeric entity character overflow", "input": "�", -"output": ["ParseError", ["Character", "\uFFFD"]], +"output": [["Character", "\uFFFD"]], "errors":[ { "code": "non-unicode-character-reference", "line": 1, "col": 14 } ]}, {"description": "Invalid numeric entity character overflow", "input": "�", -"output": ["ParseError", ["Character", "\uFFFD"]], +"output": [["Character", "\uFFFD"]], "errors":[ { "code": "non-unicode-character-reference", "line": 1, "col": 16 } ]}, {"description": "Invalid numeric entity character U+0000", "input": "�", -"output": ["ParseError", ["Character", "\uFFFD"]], +"output": [["Character", "\uFFFD"]], "errors":[ { "code": "null-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0001", "input": "", -"output": ["ParseError", ["Character", "\u0001"]], +"output": [["Character", "\u0001"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0002", "input": "", -"output": ["ParseError", ["Character", "\u0002"]], +"output": [["Character", "\u0002"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, @@ -93,7 +93,7 @@ {"description": "Invalid numeric entity character U+0003", "input": "", -"output": ["ParseError", ["Character", "\u0003"]], +"output": [["Character", "\u0003"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, @@ -101,7 +101,7 @@ {"description": "Invalid numeric entity character U+0004", "input": "", -"output": ["ParseError", ["Character", "\u0004"]], +"output": [["Character", "\u0004"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, @@ -109,7 +109,7 @@ {"description": "Invalid numeric entity character U+0005", "input": "", -"output": ["ParseError", ["Character", "\u0005"]], +"output": [["Character", "\u0005"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, @@ -117,637 +117,637 @@ {"description": "Invalid numeric entity character U+0006", "input": "", -"output": ["ParseError", ["Character", "\u0006"]], +"output": [["Character", "\u0006"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0007", "input": "", -"output": ["ParseError", ["Character", "\u0007"]], +"output": [["Character", "\u0007"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0008", "input": "", -"output": ["ParseError", ["Character", "\u0008"]], +"output": [["Character", "\u0008"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+000B", "input": " ", -"output": ["ParseError", ["Character", "\u000b"]], +"output": [["Character", "\u000b"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+000E", "input": "", -"output": ["ParseError", ["Character", "\u000e"]], +"output": [["Character", "\u000e"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+000F", "input": "", -"output": ["ParseError", ["Character", "\u000f"]], +"output": [["Character", "\u000f"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0010", "input": "", -"output": ["ParseError", ["Character", "\u0010"]], +"output": [["Character", "\u0010"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0011", "input": "", -"output": ["ParseError", ["Character", "\u0011"]], +"output": [["Character", "\u0011"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0012", "input": "", -"output": ["ParseError", ["Character", "\u0012"]], +"output": [["Character", "\u0012"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0013", "input": "", -"output": ["ParseError", ["Character", "\u0013"]], +"output": [["Character", "\u0013"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0014", "input": "", -"output": ["ParseError", ["Character", "\u0014"]], +"output": [["Character", "\u0014"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0015", "input": "", -"output": ["ParseError", ["Character", "\u0015"]], +"output": [["Character", "\u0015"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0016", "input": "", -"output": ["ParseError", ["Character", "\u0016"]], +"output": [["Character", "\u0016"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0017", "input": "", -"output": ["ParseError", ["Character", "\u0017"]], +"output": [["Character", "\u0017"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0018", "input": "", -"output": ["ParseError", ["Character", "\u0018"]], +"output": [["Character", "\u0018"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+0019", "input": "", -"output": ["ParseError", ["Character", "\u0019"]], +"output": [["Character", "\u0019"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+001A", "input": "", -"output": ["ParseError", ["Character", "\u001a"]], +"output": [["Character", "\u001a"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+001B", "input": "", -"output": ["ParseError", ["Character", "\u001b"]], +"output": [["Character", "\u001b"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+001C", "input": "", -"output": ["ParseError", ["Character", "\u001c"]], +"output": [["Character", "\u001c"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+001D", "input": "", -"output": ["ParseError", ["Character", "\u001d"]], +"output": [["Character", "\u001d"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+001E", "input": "", -"output": ["ParseError", ["Character", "\u001e"]], +"output": [["Character", "\u001e"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+001F", "input": "", -"output": ["ParseError", ["Character", "\u001f"]], +"output": [["Character", "\u001f"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+007F", "input": "", -"output": ["ParseError", ["Character", "\u007f"]], +"output": [["Character", "\u007f"]], "errors":[ { "code": "control-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+D800", "input": "�", -"output": ["ParseError", ["Character", "\uFFFD"]], +"output": [["Character", "\uFFFD"]], "errors":[ { "code": "non-unicode-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+DFFF", "input": "�", -"output": ["ParseError", ["Character", "\uFFFD"]], +"output": [["Character", "\uFFFD"]], "errors":[ { "code": "non-unicode-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDD0", "input": "﷐", -"output": ["ParseError", ["Character", "\ufdd0"]], +"output": [["Character", "\ufdd0"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDD1", "input": "﷑", -"output": ["ParseError", ["Character", "\ufdd1"]], +"output": [["Character", "\ufdd1"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDD2", "input": "﷒", -"output": ["ParseError", ["Character", "\ufdd2"]], +"output": [["Character", "\ufdd2"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDD3", "input": "﷓", -"output": ["ParseError", ["Character", "\ufdd3"]], +"output": [["Character", "\ufdd3"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDD4", "input": "﷔", -"output": ["ParseError", ["Character", "\ufdd4"]], +"output": [["Character", "\ufdd4"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDD5", "input": "﷕", -"output": ["ParseError", ["Character", "\ufdd5"]], +"output": [["Character", "\ufdd5"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDD6", "input": "﷖", -"output": ["ParseError", ["Character", "\ufdd6"]], +"output": [["Character", "\ufdd6"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDD7", "input": "﷗", -"output": ["ParseError", ["Character", "\ufdd7"]], +"output": [["Character", "\ufdd7"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDD8", "input": "﷘", -"output": ["ParseError", ["Character", "\ufdd8"]], +"output": [["Character", "\ufdd8"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDD9", "input": "﷙", -"output": ["ParseError", ["Character", "\ufdd9"]], +"output": [["Character", "\ufdd9"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDDA", "input": "﷚", -"output": ["ParseError", ["Character", "\ufdda"]], +"output": [["Character", "\ufdda"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDDB", "input": "﷛", -"output": ["ParseError", ["Character", "\ufddb"]], +"output": [["Character", "\ufddb"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDDC", "input": "﷜", -"output": ["ParseError", ["Character", "\ufddc"]], +"output": [["Character", "\ufddc"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDDD", "input": "﷝", -"output": ["ParseError", ["Character", "\ufddd"]], +"output": [["Character", "\ufddd"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDDE", "input": "﷞", -"output": ["ParseError", ["Character", "\ufdde"]], +"output": [["Character", "\ufdde"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDDF", "input": "﷟", -"output": ["ParseError", ["Character", "\ufddf"]], +"output": [["Character", "\ufddf"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDE0", "input": "﷠", -"output": ["ParseError", ["Character", "\ufde0"]], +"output": [["Character", "\ufde0"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDE1", "input": "﷡", -"output": ["ParseError", ["Character", "\ufde1"]], +"output": [["Character", "\ufde1"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDE2", "input": "﷢", -"output": ["ParseError", ["Character", "\ufde2"]], +"output": [["Character", "\ufde2"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDE3", "input": "﷣", -"output": ["ParseError", ["Character", "\ufde3"]], +"output": [["Character", "\ufde3"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDE4", "input": "﷤", -"output": ["ParseError", ["Character", "\ufde4"]], +"output": [["Character", "\ufde4"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDE5", "input": "﷥", -"output": ["ParseError", ["Character", "\ufde5"]], +"output": [["Character", "\ufde5"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDE6", "input": "﷦", -"output": ["ParseError", ["Character", "\ufde6"]], +"output": [["Character", "\ufde6"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDE7", "input": "﷧", -"output": ["ParseError", ["Character", "\ufde7"]], +"output": [["Character", "\ufde7"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDE8", "input": "﷨", -"output": ["ParseError", ["Character", "\ufde8"]], +"output": [["Character", "\ufde8"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDE9", "input": "﷩", -"output": ["ParseError", ["Character", "\ufde9"]], +"output": [["Character", "\ufde9"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDEA", "input": "﷪", -"output": ["ParseError", ["Character", "\ufdea"]], +"output": [["Character", "\ufdea"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDEB", "input": "﷫", -"output": ["ParseError", ["Character", "\ufdeb"]], +"output": [["Character", "\ufdeb"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDEC", "input": "﷬", -"output": ["ParseError", ["Character", "\ufdec"]], +"output": [["Character", "\ufdec"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDED", "input": "﷭", -"output": ["ParseError", ["Character", "\ufded"]], +"output": [["Character", "\ufded"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDEE", "input": "﷮", -"output": ["ParseError", ["Character", "\ufdee"]], +"output": [["Character", "\ufdee"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FDEF", "input": "﷯", -"output": ["ParseError", ["Character", "\ufdef"]], +"output": [["Character", "\ufdef"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FFFE", "input": "￾", -"output": ["ParseError", ["Character", "\ufffe"]], +"output": [["Character", "\ufffe"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+FFFF", "input": "￿", -"output": ["ParseError", ["Character", "\uffff"]], +"output": [["Character", "\uffff"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 9 } ]}, {"description": "Invalid numeric entity character U+1FFFE", "input": "🿾", -"output": ["ParseError", ["Character", "\uD83F\uDFFE"]], +"output": [["Character", "\uD83F\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+1FFFF", "input": "🿿", -"output": ["ParseError", ["Character", "\uD83F\uDFFF"]], +"output": [["Character", "\uD83F\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+2FFFE", "input": "𯿾", -"output": ["ParseError", ["Character", "\uD87F\uDFFE"]], +"output": [["Character", "\uD87F\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+2FFFF", "input": "𯿿", -"output": ["ParseError", ["Character", "\uD87F\uDFFF"]], +"output": [["Character", "\uD87F\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+3FFFE", "input": "𿿾", -"output": ["ParseError", ["Character", "\uD8BF\uDFFE"]], +"output": [["Character", "\uD8BF\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+3FFFF", "input": "𿿿", -"output": ["ParseError", ["Character", "\uD8BF\uDFFF"]], +"output": [["Character", "\uD8BF\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+4FFFE", "input": "񏿾", -"output": ["ParseError", ["Character", "\uD8FF\uDFFE"]], +"output": [["Character", "\uD8FF\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+4FFFF", "input": "񏿿", -"output": ["ParseError", ["Character", "\uD8FF\uDFFF"]], +"output": [["Character", "\uD8FF\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+5FFFE", "input": "񟿾", -"output": ["ParseError", ["Character", "\uD93F\uDFFE"]], +"output": [["Character", "\uD93F\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+5FFFF", "input": "񟿿", -"output": ["ParseError", ["Character", "\uD93F\uDFFF"]], +"output": [["Character", "\uD93F\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+6FFFE", "input": "񯿾", -"output": ["ParseError", ["Character", "\uD97F\uDFFE"]], +"output": [["Character", "\uD97F\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+6FFFF", "input": "񯿿", -"output": ["ParseError", ["Character", "\uD97F\uDFFF"]], +"output": [["Character", "\uD97F\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+7FFFE", "input": "񿿾", -"output": ["ParseError", ["Character", "\uD9BF\uDFFE"]], +"output": [["Character", "\uD9BF\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+7FFFF", "input": "񿿿", -"output": ["ParseError", ["Character", "\uD9BF\uDFFF"]], +"output": [["Character", "\uD9BF\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+8FFFE", "input": "򏿾", -"output": ["ParseError", ["Character", "\uD9FF\uDFFE"]], +"output": [["Character", "\uD9FF\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+8FFFF", "input": "򏿿", -"output": ["ParseError", ["Character", "\uD9FF\uDFFF"]], +"output": [["Character", "\uD9FF\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+9FFFE", "input": "򟿾", -"output": ["ParseError", ["Character", "\uDA3F\uDFFE"]], +"output": [["Character", "\uDA3F\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+9FFFF", "input": "򟿿", -"output": ["ParseError", ["Character", "\uDA3F\uDFFF"]], +"output": [["Character", "\uDA3F\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+AFFFE", "input": "򯿾", -"output": ["ParseError", ["Character", "\uDA7F\uDFFE"]], +"output": [["Character", "\uDA7F\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+AFFFF", "input": "򯿿", -"output": ["ParseError", ["Character", "\uDA7F\uDFFF"]], +"output": [["Character", "\uDA7F\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+BFFFE", "input": "򿿾", -"output": ["ParseError", ["Character", "\uDABF\uDFFE"]], +"output": [["Character", "\uDABF\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+BFFFF", "input": "򿿿", -"output": ["ParseError", ["Character", "\uDABF\uDFFF"]], +"output": [["Character", "\uDABF\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+CFFFE", "input": "󏿾", -"output": ["ParseError", ["Character", "\uDAFF\uDFFE"]], +"output": [["Character", "\uDAFF\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+CFFFF", "input": "󏿿", -"output": ["ParseError", ["Character", "\uDAFF\uDFFF"]], +"output": [["Character", "\uDAFF\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+DFFFE", "input": "󟿾", -"output": ["ParseError", ["Character", "\uDB3F\uDFFE"]], +"output": [["Character", "\uDB3F\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+DFFFF", "input": "󟿿", -"output": ["ParseError", ["Character", "\uDB3F\uDFFF"]], +"output": [["Character", "\uDB3F\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+EFFFE", "input": "󯿾", -"output": ["ParseError", ["Character", "\uDB7F\uDFFE"]], +"output": [["Character", "\uDB7F\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+EFFFF", "input": "󯿿", -"output": ["ParseError", ["Character", "\uDB7F\uDFFF"]], +"output": [["Character", "\uDB7F\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+FFFFE", "input": "󿿾", -"output": ["ParseError", ["Character", "\uDBBF\uDFFE"]], +"output": [["Character", "\uDBBF\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+FFFFF", "input": "󿿿", -"output": ["ParseError", ["Character", "\uDBBF\uDFFF"]], +"output": [["Character", "\uDBBF\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 10 } ]}, {"description": "Invalid numeric entity character U+10FFFE", "input": "􏿾", -"output": ["ParseError", ["Character", "\uDBFF\uDFFE"]], +"output": [["Character", "\uDBFF\uDFFE"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 11 } ]}, {"description": "Invalid numeric entity character U+10FFFF", "input": "􏿿", -"output": ["ParseError", ["Character", "\uDBFF\uDFFF"]], +"output": [["Character", "\uDBFF\uDFFF"]], "errors":[ { "code": "undefined-character-reference", "line": 1, "col": 11 } ]}, diff --git a/tokenizer/pendingSpecChanges.test b/tokenizer/pendingSpecChanges.test index cbe10668..191434f1 100644 --- a/tokenizer/pendingSpecChanges.test +++ b/tokenizer/pendingSpecChanges.test @@ -2,7 +2,7 @@ {"description":"", @@ -93,29 +93,29 @@ {"description":"Comment, Central dash no space", "input":"", - "output":["ParseError", ["Comment", "-"]]}, + "output":[["Comment", "-"]]}, {"description":"Comment, two central dashes", "input":"", -"output":["ParseError", ["Comment", " --comment "]]}, +"output":[["Comment", " --comment "]]}, {"description":"Unfinished comment", "input":"", -"output":["ParseError", ["Comment", ""]], +"output":[["Comment", ""]], "errors":[ { "code": "abrupt-closing-of-comment", "line": 1, "col": 5 } ]}, @@ -123,7 +123,7 @@ {"description":"Short comment two", "input":"", -"output":["ParseError", ["Comment", ""]], +"output":[["Comment", ""]], "errors":[ { "code": "abrupt-closing-of-comment", "line": 1, "col": 6 } ]}, @@ -160,14 +160,14 @@ {"description":"Ampersand, number sign", "input":"&#", -"output":["ParseError", ["Character", "&#"]], +"output":[["Character", "&#"]], "errors":[ { "code": "absence-of-digits-in-numeric-character-reference", "line": 1, "col": 3 } ]}, {"description":"Unfinished numeric entity", "input":"&#x", -"output":["ParseError", ["Character", "&#x"]], +"output":[["Character", "&#x"]], "errors":[ { "code": "absence-of-digits-in-numeric-character-reference", "line": 1, "col": 4 } ]}, @@ -182,14 +182,14 @@ {"description":"Entity without trailing semicolon (1)", "input":"I'm ¬it", -"output":[["Character","I'm "], "ParseError", ["Character", "\u00ACit"]], +"output":[["Character","I'm "], ["Character", "\u00ACit"]], "errors": [ {"code" : "missing-semicolon-after-character-reference", "line": 1, "col": 9 } ]}, {"description":"Entity without trailing semicolon (2)", "input":"I'm ¬in", -"output":[["Character","I'm "], "ParseError", ["Character", "\u00ACin"]], +"output":[["Character","I'm "], ["Character", "\u00ACin"]], "errors": [ {"code" : "missing-semicolon-after-character-reference", "line": 1, "col": 9 } ]}, @@ -234,7 +234,7 @@ {"description":"Entity in attribute without semicolon", "input":"", -"output":["ParseError", ["StartTag", "h", {"a":"\u00A9"}]], +"output":[["StartTag", "h", {"a":"\u00A9"}]], "errors": [ {"code" : "missing-semicolon-after-character-reference", "line": 1, "col": 12 } ]}, @@ -256,7 +256,7 @@ {"description":"Open angled bracket in unquoted attribute value state", "input":"", - "output":["ParseError", ["StartTag", "a", {"a":"f<"}]], + "output":[["StartTag", "a", {"a":"f<"}]], "errors":[ { "code": "unexpected-character-in-unquoted-attribute-value", "line": 1, "col": 7 } ]} diff --git a/tokenizer/test2.test b/tokenizer/test2.test index a9db2b4e..3dba9e23 100644 --- a/tokenizer/test2.test +++ b/tokenizer/test2.test @@ -2,21 +2,21 @@ {"description":"DOCTYPE without name", "input":"", -"output":["ParseError", "ParseError", ["DOCTYPE", null, null, null, false]], +"output":[["DOCTYPE", null, null, null, false]], "errors":[ { "code": "missing-doctype-name", "line": 1, "col": 10 } ]}, {"description":"DOCTYPE without space before name", "input":"", -"output":["ParseError", ["DOCTYPE", "html", null, null, true]], +"output":[["DOCTYPE", "html", null, null, true]], "errors":[ { "code": "missing-whitespace-before-doctype-name", "line": 1, "col": 10 } ]}, {"description":"Incorrect DOCTYPE without a space before name", "input":"", -"output":["ParseError", ["DOCTYPE", "foo", null, null, true]], +"output":[["DOCTYPE", "foo", null, null, true]], "errors":[ { "code": "missing-whitespace-before-doctype-name", "line": 1, "col": 10 } ]}, @@ -27,21 +27,21 @@ {"description":"DOCTYPE with EOF after PUBLIC", "input":" in double-quoted publicId", "input":"x", -"output":["ParseError", ["DOCTYPE", "html", "", null, false], ["Character", "x"]], +"output":[["DOCTYPE", "html", "", null, false], ["Character", "x"]], "errors": [ { "code": "abrupt-closing-of-doctype", "col": 24, "line": 1 } ]}, {"description":"DOCTYPE with > in single-quoted publicId", "input":"x", -"output":["ParseError", ["DOCTYPE", "html", "", null, false], ["Character", "x"]], +"output":[["DOCTYPE", "html", "", null, false], ["Character", "x"]], "errors": [ { "code": "abrupt-closing-of-doctype", "col": 24, "line": 1 } ]}, {"description":"DOCTYPE with > in double-quoted systemId", "input":"x", -"output":["ParseError", ["DOCTYPE", "html", "foo", "", false], ["Character", "x"]], +"output":[["DOCTYPE", "html", "foo", "", false], ["Character", "x"]], "errors": [ { "code": "abrupt-closing-of-doctype", "col": 30, "line": 1 } ]}, {"description":"DOCTYPE with > in single-quoted systemId", "input":"x", -"output":["ParseError", ["DOCTYPE", "html", "foo", "", false], ["Character", "x"]], +"output":[["DOCTYPE", "html", "foo", "", false], ["Character", "x"]], "errors": [ { "code": "abrupt-closing-of-doctype", "col": 30, "line": 1 } ]}, {"description":"Incomplete doctype", "input":"", -"output":["ParseError", ["StartTag", "h", { "a":"b" }]], +"output":[["StartTag", "h", { "a":"b" }]], "errors":[ { "code": "abruption-of-tag-self-closure", "line": 1, "col": 4 } ]}, @@ -173,49 +173,49 @@ {"description":"Unescaped ", -"output":["ParseError", ["Comment", "1"]], +"output":[["Comment", "1"]], "errors":[ { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 3 } ]}, {"description":"Simili processing instruction", "input":"", -"output":["ParseError", ["Comment", "?namespace"]], +"output":[["Comment", "?namespace"]], "errors":[ { "code": "start-of-processing-instruction-or-xml-declaration", "line": 1, "col": 2 } ]}, {"description":"A bogus comment stops at >, even if preceeded by two dashes", "input":"", -"output":["ParseError", ["Comment", "?foo--"]], +"output":[["Comment", "?foo--"]], "errors":[ { "code": "start-of-processing-instruction-or-xml-declaration", "line": 1, "col": 2 } ]}, {"description":"Unescaped <", "input":"foo < bar", -"output":[["Character", "foo "], "ParseError", ["Character", "< bar"]], +"output":[["Character", "foo "], ["Character", "< bar"]], "errors":[ { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 6 } ]}, {"description":"Null Byte Replacement", "input":"\u0000", -"output":["ParseError", ["Character", "\u0000"]], +"output":[["Character", "\u0000"]], "errors":[ { "code": "unexpected-null-character", "line": 1, "col": 1 } ]}, {"description":"Comment with dash", "input":"c", -"output":[["Character", "a"], "ParseError", ["Comment", "b"], ["Character", "c"]], +"output":[["Character", "a"], ["Comment", "b"], ["Character", "c"]], "errors":[ { "code": "missing-end-tag-name", "line": 1, "col": 4 } ]}, {"description":"Empty end tag with following end tag", "input":"ac", -"output":[["Character", "a"], "ParseError", ["EndTag", "b"], ["Character", "c"]], +"output":[["Character", "a"], ["EndTag", "b"], ["Character", "c"]], "errors":[ { "code": "missing-end-tag-name", "line": 1, "col": 4 } ]} diff --git a/tokenizer/test3.test b/tokenizer/test3.test index 5bdff015..f537029c 100644 --- a/tokenizer/test3.test +++ b/tokenizer/test3.test @@ -14,7 +14,7 @@ {"description":"\\u000B", "input":"\u000B", -"output":["ParseError", ["Character", "\u000B"]], +"output":[["Character", "\u000B"]], "errors":[ { "code": "control-character-in-input-stream", "line": 1, "col": 1 } ]}, @@ -81,14 +81,14 @@ {"description":"<", "input":"<", -"output":["ParseError", ["Character", "<"]], +"output":[["Character", "<"]], "errors":[ { "code": "eof-before-tag-name", "line": 1, "col": 2 } ]}, {"description":"<\\u0000", "input":"<\u0000", -"output":["ParseError", ["Character", "<"], "ParseError", ["Character", "\u0000"]], +"output":[["Character", "<"], ["Character", "\u0000"]], "errors":[ { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 2 }, { "code": "unexpected-null-character", "line": 1, "col": 2 } @@ -96,21 +96,21 @@ {"description":"<\\u0009", "input":"<\u0009", -"output":["ParseError", ["Character", "<\u0009"]], +"output":[["Character", "<\u0009"]], "errors":[ { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 2 } ]}, {"description":"<\\u000A", "input":"<\u000A", -"output":["ParseError", ["Character", "<\u000A"]], +"output":[["Character", "<\u000A"]], "errors":[ { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 2 } ]}, {"description":"<\\u000B", "input":"<\u000B", -"output":["ParseError", "ParseError", ["Character", "<\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 } @@ -118,49 +118,49 @@ {"description":"<\\u000C", "input":"<\u000C", -"output":["ParseError", ["Character", "<\u000C"]], +"output":[["Character", "<\u000C"]], "errors":[ { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 2 } ]}, {"description":"< ", "input":"< ", -"output":["ParseError", ["Character", "< "]], +"output":[["Character", "< "]], "errors":[ { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 2 } ]}, {"description":"", "input":"", "input":"", -"output":["ParseError", ["Comment", "-- "]]}, +"output":[["Comment", "-- "]]}, {"description":"", "input":"", -"output":["ParseError", ["Comment", "-- "]]}, +"output":[["Comment", "-- "]]}, {"description":"", "input":"", -"output":["ParseError", ["Comment", "-- a"]]}, +"output":[["Comment", "-- a"]]}, {"description":"", "input":"", -"output":["ParseError", ["Comment", ""]], +"output":[["Comment", ""]], "errors":[ { "code": "incorrectly-closed-comment", "line": 1, "col": 8 } ]}, {"description":"", "input":"", -"output":["ParseError", ["Comment", "--!a"]]}, +"output":[["Comment", "--!a"]]}, {"description":"", "input":"", -"output":["ParseError", ["Comment", "--!"]]}, +"output":[["Comment", "--!"]]}, {"description":"", -"output":["ParseError",["Comment"," foo - - bar "]]}, +"output":[["Comment"," foo - - bar "]]}, {"description":"FF between attributes", "input":"",