{"tests": [ {"description":"< in attribute name", "input":"", "output":[["StartTag", "x", {}]]}, {"description":"Uppercase end tag name", "input":"", "output":[["EndTag", "x"]]}, {"description":"Uppercase attribute name", "input":"", "output":[["StartTag", "x", { "x":"" }]]}, {"description":"Tag/attribute name case edge values", "input":"", "output":[["StartTag", "x@az[`az{", { "@az[`az{":"" }]]}, {"description":"Duplicate different-case attributes", "input":"", "output":["ParseError", "ParseError", ["StartTag", "x", { "x":"1" }]]}, {"description":"Uppercase close tag attributes", "input":"", "output":["ParseError", ["EndTag", "x"]]}, {"description":"Duplicate close tag attributes", "input":"", "output":["ParseError", "ParseError", ["EndTag", "x"]]}, {"description":"Permitted slash", "input":"
", "output":[["StartTag", "br", {}]]}, {"description":"Non-permitted slash", "input":"", "output":["ParseError", ["StartTag", "xr", {}]]}, {"description":"Permitted slash but in close tag", "input":"
", "output":["ParseError", ["EndTag", "br"]]}, {"description":"Doctype public case-sensitivity (1)", "input":"", "output":[["DOCTYPE", "HtMl", "AbC", "XyZ", true]]}, {"description":"Doctype public case-sensitivity (2)", "input":"", "output":[["DOCTYPE", "hTmL", "aBc", "xYz", true]]}, {"description":"Doctype system case-sensitivity (1)", "input":"", "output":[["DOCTYPE", "HtMl", null, "XyZ", true]]}, {"description":"Doctype system case-sensitivity (2)", "input":"", "output":[["DOCTYPE", "hTmL", null, "xYz", true]]}, {"description":"U+0000 in lookahead region after non-matching character", "input":"\u0000", "output":["ParseError", ["Comment", "doc"], "ParseError", ["Character", "\uFFFD"]], "ignoreErrorOrder":true}, {"description":"U+0000 in lookahead region", "input":"", "output":["ParseError", ["DOCTYPE", "html", null, null, false]]}, {"description":"Doctype publi", "input":"", "output":["ParseError", ["DOCTYPE", "html", null, null, false]]}, {"description":"Doctype sys", "input":"