{
    "tests": [
        {
            "fragmentContext": null,
            "description": "<div<div>",
            "input": "<div<div>",
            "output": [
                [
                    "StartTag",
                    "div<div",
                    {}
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<div foo<bar=''>",
            "input": "<div foo<bar=''>",
            "output": [
                [
                    "StartTag",
                    "div",
                    {
                        "foo<bar": ""
                    }
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<div foo=`bar`>",
            "input": "<div foo=`bar`>",
            "output": [
                [
                    "StartTag",
                    "div",
                    {
                        "foo": "`bar`"
                    }
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<div \\\"foo=''>",
            "input": "<div \\\"foo=''>",
            "output": [
                [
                    "StartTag",
                    "div",
                    {
                        "\\\"foo": ""
                    }
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<a href='\\nbar'></a>",
            "input": "<a href='\\nbar'></a>",
            "output": [
                [
                    "StartTag",
                    "a",
                    {
                        "href": "\\nbar"
                    }
                ],
                [
                    "EndTag",
                    "a"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<!DOCTYPE html>",
            "input": "<!DOCTYPE html>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "&lang;&rang;",
            "input": "&lang;&rang;",
            "output": [
                [
                    "Character",
                    "⟨⟩"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "&apos;",
            "input": "&apos;",
            "output": [
                [
                    "Character",
                    "'"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "&ImaginaryI;",
            "input": "&ImaginaryI;",
            "output": [
                [
                    "Character",
                    "ⅈ"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "&Kopf;",
            "input": "&Kopf;",
            "output": [
                [
                    "Character",
                    "𝕂"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "&notinva;",
            "input": "&notinva;",
            "output": [
                [
                    "Character",
                    "∉"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<?import namespace=\"foo\" implementation=\"#bar\">",
            "input": "<?import namespace=\"foo\" implementation=\"#bar\">",
            "output": [
                [
                    "Comment",
                    "?import namespace=\"foo\" implementation=\"#bar\""
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<!--foo--bar-->",
            "input": "<!--foo--bar-->",
            "output": [
                [
                    "Comment",
                    "foo--bar"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<![CDATA[x]]>",
            "input": "<![CDATA[x]]>",
            "output": [
                [
                    "Comment",
                    "[CDATA[x]]"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<textarea><!--</textarea>--></textarea>",
            "input": "<textarea><!--</textarea>--></textarea>",
            "output": [
                [
                    "StartTag",
                    "textarea",
                    {}
                ],
                [
                    "Character",
                    "<!--"
                ],
                [
                    "EndTag",
                    "textarea"
                ],
                [
                    "Character",
                    "-->"
                ],
                [
                    "EndTag",
                    "textarea"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<textarea><!--</textarea>-->",
            "input": "<textarea><!--</textarea>-->",
            "output": [
                [
                    "StartTag",
                    "textarea",
                    {}
                ],
                [
                    "Character",
                    "<!--"
                ],
                [
                    "EndTag",
                    "textarea"
                ],
                [
                    "Character",
                    "-->"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<style><!--</style>--></style>",
            "input": "<style><!--</style>--></style>",
            "output": [
                [
                    "StartTag",
                    "style",
                    {}
                ],
                [
                    "Character",
                    "<!--"
                ],
                [
                    "EndTag",
                    "style"
                ],
                [
                    "Character",
                    "-->"
                ],
                [
                    "EndTag",
                    "style"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<style><!--</style>-->",
            "input": "<style><!--</style>-->",
            "output": [
                [
                    "StartTag",
                    "style",
                    {}
                ],
                [
                    "Character",
                    "<!--"
                ],
                [
                    "EndTag",
                    "style"
                ],
                [
                    "Character",
                    "-->"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<ul><li>A </li> <li>B</li></ul>",
            "input": "<ul><li>A </li> <li>B</li></ul>",
            "output": [
                [
                    "StartTag",
                    "ul",
                    {}
                ],
                [
                    "StartTag",
                    "li",
                    {}
                ],
                [
                    "Character",
                    "A "
                ],
                [
                    "EndTag",
                    "li"
                ],
                [
                    "Character",
                    " "
                ],
                [
                    "StartTag",
                    "li",
                    {}
                ],
                [
                    "Character",
                    "B"
                ],
                [
                    "EndTag",
                    "li"
                ],
                [
                    "EndTag",
                    "ul"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<table><form><input type=hidden><input></form><div></div></table>",
            "input": "<table><form><input type=hidden><input></form><div></div></table>",
            "output": [
                [
                    "StartTag",
                    "table",
                    {}
                ],
                [
                    "StartTag",
                    "form",
                    {}
                ],
                [
                    "StartTag",
                    "input",
                    {
                        "type": "hidden"
                    }
                ],
                [
                    "StartTag",
                    "input",
                    {}
                ],
                [
                    "EndTag",
                    "form"
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "EndTag",
                    "div"
                ],
                [
                    "EndTag",
                    "table"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<i>A<b>B<p></i>C</b>D",
            "input": "<i>A<b>B<p></i>C</b>D",
            "output": [
                [
                    "StartTag",
                    "i",
                    {}
                ],
                [
                    "Character",
                    "A"
                ],
                [
                    "StartTag",
                    "b",
                    {}
                ],
                [
                    "Character",
                    "B"
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "EndTag",
                    "i"
                ],
                [
                    "Character",
                    "C"
                ],
                [
                    "EndTag",
                    "b"
                ],
                [
                    "Character",
                    "D"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<div></div>",
            "input": "<div></div>",
            "output": [
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "EndTag",
                    "div"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<svg></svg>",
            "input": "<svg></svg>",
            "output": [
                [
                    "StartTag",
                    "svg",
                    {}
                ],
                [
                    "EndTag",
                    "svg"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<math></math>",
            "input": "<math></math>",
            "output": [
                [
                    "StartTag",
                    "math",
                    {}
                ],
                [
                    "EndTag",
                    "math"
                ]
            ]
        }
    ]
}