{ "tests": [ { "fragmentContext": null, "description": "", "input": "", "output": [ [ "StartTag", "div", "input": "
", "output": [ [ "StartTag", "div", { "foo", "input": "
", "output": [ [ "StartTag", "div", { "foo": "`bar`" } ] ] }, { "fragmentContext": null, "description": "
", "input": "
", "output": [ [ "StartTag", "div", { "\\\"foo": "" } ] ] }, { "fragmentContext": null, "description": "", "input": "", "output": [ [ "StartTag", "a", { "href": "\\nbar" } ], [ "EndTag", "a" ] ] }, { "fragmentContext": null, "description": "", "input": "", "output": [ [ "DOCTYPE", "html", null, null, true ] ] }, { "fragmentContext": null, "description": "⟨⟩", "input": "⟨⟩", "output": [ [ "Character", "⟨⟩" ] ] }, { "fragmentContext": null, "description": "'", "input": "'", "output": [ [ "Character", "'" ] ] }, { "fragmentContext": null, "description": "ⅈ", "input": "ⅈ", "output": [ [ "Character", "ⅈ" ] ] }, { "fragmentContext": null, "description": "𝕂", "input": "𝕂", "output": [ [ "Character", "𝕂" ] ] }, { "fragmentContext": null, "description": "∉", "input": "∉", "output": [ [ "Character", "∉" ] ] }, { "fragmentContext": null, "description": "", "input": "", "output": [ [ "Comment", "?import namespace=\"foo\" implementation=\"#bar\"" ] ] }, { "fragmentContext": null, "description": "", "input": "", "output": [ [ "Comment", "foo--bar" ] ] }, { "fragmentContext": null, "description": "", "input": "", "output": [ [ "Comment", "[CDATA[x]]" ] ] }, { "fragmentContext": null, "description": "-->", "input": "-->", "output": [ [ "StartTag", "textarea", {} ], [ "Character", "" ], [ "EndTag", "textarea" ] ] }, { "fragmentContext": null, "description": "-->", "input": "-->", "output": [ [ "StartTag", "textarea", {} ], [ "Character", "" ] ] }, { "fragmentContext": null, "description": "-->", "input": "-->", "output": [ [ "StartTag", "style", {} ], [ "Character", "" ], [ "EndTag", "style" ] ] }, { "fragmentContext": null, "description": "-->", "input": "-->", "output": [ [ "StartTag", "style", {} ], [ "Character", "" ] ] }, { "fragmentContext": null, "description": "
  • A
  • B
", "input": "
  • A
  • B
", "output": [ [ "StartTag", "ul", {} ], [ "StartTag", "li", {} ], [ "Character", "A " ], [ "EndTag", "li" ], [ "Character", " " ], [ "StartTag", "li", {} ], [ "Character", "B" ], [ "EndTag", "li" ], [ "EndTag", "ul" ] ] }, { "fragmentContext": null, "description": "
", "input": "
", "output": [ [ "StartTag", "table", {} ], [ "StartTag", "form", {} ], [ "StartTag", "input", { "type": "hidden" } ], [ "StartTag", "input", {} ], [ "EndTag", "form" ], [ "StartTag", "div", {} ], [ "EndTag", "div" ], [ "EndTag", "table" ] ] }, { "fragmentContext": null, "description": "AB

CD", "input": "AB

CD", "output": [ [ "StartTag", "i", {} ], [ "Character", "A" ], [ "StartTag", "b", {} ], [ "Character", "B" ], [ "StartTag", "p", {} ], [ "EndTag", "i" ], [ "Character", "C" ], [ "EndTag", "b" ], [ "Character", "D" ] ] }, { "fragmentContext": null, "description": "

", "input": "
", "output": [ [ "StartTag", "div", {} ], [ "EndTag", "div" ] ] }, { "fragmentContext": null, "description": "", "input": "", "output": [ [ "StartTag", "svg", {} ], [ "EndTag", "svg" ] ] }, { "fragmentContext": null, "description": "", "input": "", "output": [ [ "StartTag", "math", {} ], [ "EndTag", "math" ] ] } ] }