{
    "tests": [
        {
            "description": "<!doctype html><math><mn DefinitionUrl=\"foo\">",
            "input": "<!doctype html><math><mn DefinitionUrl=\"foo\">",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "math",
                    {}
                ],
                [
                    "StartTag",
                    "mn",
                    {
                        "definitionURL": "foo"
                    }
                ]
            ]
        },
        {
            "description": "<!doctype html><html></p><!--foo-->",
            "input": "<!doctype html><html></p><!--foo-->",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "EndTag",
                    "p"
                ],
                [
                    "Comment",
                    "foo"
                ]
            ]
        },
        {
            "description": "<!doctype html><head></head></p><!--foo-->",
            "input": "<!doctype html><head></head></p><!--foo-->",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "head",
                    {}
                ],
                [
                    "EndTag",
                    "head"
                ],
                [
                    "EndTag",
                    "p"
                ],
                [
                    "Comment",
                    "foo"
                ]
            ]
        },
        {
            "description": "<!doctype html><body><p><pre>",
            "input": "<!doctype html><body><p><pre>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "body",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "pre",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><body><p><listing>",
            "input": "<!doctype html><body><p><listing>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "body",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "listing",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><p><plaintext>",
            "input": "<!doctype html><p><plaintext>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "plaintext",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><p><h1>",
            "input": "<!doctype html><p><h1>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "h1",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><isindex type=\"hidden\">",
            "input": "<!doctype html><isindex type=\"hidden\">",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "isindex",
                    {
                        "type": "hidden"
                    }
                ]
            ]
        },
        {
            "description": "<!doctype html><ruby><p><rp>",
            "input": "<!doctype html><ruby><p><rp>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "ruby",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "rp",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><ruby><div><span><rp>",
            "input": "<!doctype html><ruby><div><span><rp>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "ruby",
                    {}
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "StartTag",
                    "span",
                    {}
                ],
                [
                    "StartTag",
                    "rp",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><ruby><div><p><rp>",
            "input": "<!doctype html><ruby><div><p><rp>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "ruby",
                    {}
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "rp",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><ruby><p><rt>",
            "input": "<!doctype html><ruby><p><rt>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "ruby",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "rt",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><ruby><div><span><rt>",
            "input": "<!doctype html><ruby><div><span><rt>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "ruby",
                    {}
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "StartTag",
                    "span",
                    {}
                ],
                [
                    "StartTag",
                    "rt",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><ruby><div><p><rt>",
            "input": "<!doctype html><ruby><div><p><rt>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "ruby",
                    {}
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "rt",
                    {}
                ]
            ]
        },
        {
            "description": "<html><ruby>a<rb>b<rt></ruby></html>",
            "input": "<html><ruby>a<rb>b<rt></ruby></html>",
            "output": [
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "StartTag",
                    "ruby",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "rb",
                    {}
                ],
                [
                    "Character",
                    "b"
                ],
                [
                    "StartTag",
                    "rt",
                    {}
                ],
                [
                    "EndTag",
                    "ruby"
                ],
                [
                    "EndTag",
                    "html"
                ]
            ]
        },
        {
            "description": "<html><ruby>a<rp>b<rt></ruby></html>",
            "input": "<html><ruby>a<rp>b<rt></ruby></html>",
            "output": [
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "StartTag",
                    "ruby",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "rp",
                    {}
                ],
                [
                    "Character",
                    "b"
                ],
                [
                    "StartTag",
                    "rt",
                    {}
                ],
                [
                    "EndTag",
                    "ruby"
                ],
                [
                    "EndTag",
                    "html"
                ]
            ]
        },
        {
            "description": "<html><ruby>a<rt>b<rt></ruby></html>",
            "input": "<html><ruby>a<rt>b<rt></ruby></html>",
            "output": [
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "StartTag",
                    "ruby",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "rt",
                    {}
                ],
                [
                    "Character",
                    "b"
                ],
                [
                    "StartTag",
                    "rt",
                    {}
                ],
                [
                    "EndTag",
                    "ruby"
                ],
                [
                    "EndTag",
                    "html"
                ]
            ]
        },
        {
            "description": "<html><ruby>a<rtc>b<rt>c<rb>d</ruby></html>",
            "input": "<html><ruby>a<rtc>b<rt>c<rb>d</ruby></html>",
            "output": [
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "StartTag",
                    "ruby",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "rtc",
                    {}
                ],
                [
                    "Character",
                    "b"
                ],
                [
                    "StartTag",
                    "rt",
                    {}
                ],
                [
                    "Character",
                    "c"
                ],
                [
                    "StartTag",
                    "rb",
                    {}
                ],
                [
                    "Character",
                    "d"
                ],
                [
                    "EndTag",
                    "ruby"
                ],
                [
                    "EndTag",
                    "html"
                ]
            ]
        },
        {
            "description": "<!doctype html><math/><foo>",
            "input": "<!doctype html><math/><foo>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "math",
                    {},
                    true
                ],
                [
                    "StartTag",
                    "foo",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><svg/><foo>",
            "input": "<!doctype html><svg/><foo>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "svg",
                    {},
                    true
                ],
                [
                    "StartTag",
                    "foo",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><div></body><!--foo-->",
            "input": "<!doctype html><div></body><!--foo-->",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "EndTag",
                    "body"
                ],
                [
                    "Comment",
                    "foo"
                ]
            ]
        },
        {
            "description": "<!doctype html><h1><div><h3><span></h1>foo",
            "input": "<!doctype html><h1><div><h3><span></h1>foo",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "h1",
                    {}
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "StartTag",
                    "h3",
                    {}
                ],
                [
                    "StartTag",
                    "span",
                    {}
                ],
                [
                    "EndTag",
                    "h1"
                ],
                [
                    "Character",
                    "foo"
                ]
            ]
        },
        {
            "description": "<!doctype html><p></h3>foo",
            "input": "<!doctype html><p></h3>foo",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "EndTag",
                    "h3"
                ],
                [
                    "Character",
                    "foo"
                ]
            ]
        },
        {
            "description": "<!doctype html><h3><li>abc</h2>foo",
            "input": "<!doctype html><h3><li>abc</h2>foo",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "h3",
                    {}
                ],
                [
                    "StartTag",
                    "li",
                    {}
                ],
                [
                    "Character",
                    "abc"
                ],
                [
                    "EndTag",
                    "h2"
                ],
                [
                    "Character",
                    "foo"
                ]
            ]
        },
        {
            "description": "<!doctype html><table>abc<!--foo-->",
            "input": "<!doctype html><table>abc<!--foo-->",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "table",
                    {}
                ],
                [
                    "Character",
                    "abc"
                ],
                [
                    "Comment",
                    "foo"
                ]
            ]
        },
        {
            "description": "<!doctype html><table>  <!--foo-->",
            "input": "<!doctype html><table>  <!--foo-->",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "table",
                    {}
                ],
                [
                    "Character",
                    "  "
                ],
                [
                    "Comment",
                    "foo"
                ]
            ]
        },
        {
            "description": "<!doctype html><table> b <!--foo-->",
            "input": "<!doctype html><table> b <!--foo-->",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "table",
                    {}
                ],
                [
                    "Character",
                    " b "
                ],
                [
                    "Comment",
                    "foo"
                ]
            ]
        },
        {
            "description": "<!doctype html><select><option><option>",
            "input": "<!doctype html><select><option><option>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "select",
                    {}
                ],
                [
                    "StartTag",
                    "option",
                    {}
                ],
                [
                    "StartTag",
                    "option",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><select><option></optgroup>",
            "input": "<!doctype html><select><option></optgroup>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "select",
                    {}
                ],
                [
                    "StartTag",
                    "option",
                    {}
                ],
                [
                    "EndTag",
                    "optgroup"
                ]
            ]
        },
        {
            "description": "<!doctype html><select><option></optgroup>",
            "input": "<!doctype html><select><option></optgroup>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "select",
                    {}
                ],
                [
                    "StartTag",
                    "option",
                    {}
                ],
                [
                    "EndTag",
                    "optgroup"
                ]
            ]
        },
        {
            "description": "<!doctype html><dd><optgroup><dd>",
            "input": "<!doctype html><dd><optgroup><dd>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "dd",
                    {}
                ],
                [
                    "StartTag",
                    "optgroup",
                    {}
                ],
                [
                    "StartTag",
                    "dd",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><p><math><mi><p><h1>",
            "input": "<!doctype html><p><math><mi><p><h1>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "math",
                    {}
                ],
                [
                    "StartTag",
                    "mi",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "h1",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><p><math><mo><p><h1>",
            "input": "<!doctype html><p><math><mo><p><h1>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "math",
                    {}
                ],
                [
                    "StartTag",
                    "mo",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "h1",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><p><math><mn><p><h1>",
            "input": "<!doctype html><p><math><mn><p><h1>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "math",
                    {}
                ],
                [
                    "StartTag",
                    "mn",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "h1",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><p><math><ms><p><h1>",
            "input": "<!doctype html><p><math><ms><p><h1>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "math",
                    {}
                ],
                [
                    "StartTag",
                    "ms",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "h1",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><p><math><mtext><p><h1>",
            "input": "<!doctype html><p><math><mtext><p><h1>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "math",
                    {}
                ],
                [
                    "StartTag",
                    "mtext",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "h1",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><frameset></noframes>",
            "input": "<!doctype html><frameset></noframes>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "EndTag",
                    "noframes"
                ]
            ]
        },
        {
            "description": "<!doctype html><html c=d><body></html><html a=b>",
            "input": "<!doctype html><html c=d><body></html><html a=b>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "html",
                    {
                        "c": "d"
                    }
                ],
                [
                    "StartTag",
                    "body",
                    {}
                ],
                [
                    "EndTag",
                    "html"
                ],
                [
                    "StartTag",
                    "html",
                    {
                        "a": "b"
                    }
                ]
            ]
        },
        {
            "description": "<!doctype html><html c=d><frameset></frameset></html><html a=b>",
            "input": "<!doctype html><html c=d><frameset></frameset></html><html a=b>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "html",
                    {
                        "c": "d"
                    }
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "EndTag",
                    "frameset"
                ],
                [
                    "EndTag",
                    "html"
                ],
                [
                    "StartTag",
                    "html",
                    {
                        "a": "b"
                    }
                ]
            ]
        },
        {
            "description": "<!doctype html><html><frameset></frameset></html><!--foo-->",
            "input": "<!doctype html><html><frameset></frameset></html><!--foo-->",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "EndTag",
                    "frameset"
                ],
                [
                    "EndTag",
                    "html"
                ],
                [
                    "Comment",
                    "foo"
                ]
            ]
        },
        {
            "description": "<!doctype html><html><frameset></frameset></html>  ",
            "input": "<!doctype html><html><frameset></frameset></html>  ",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "EndTag",
                    "frameset"
                ],
                [
                    "EndTag",
                    "html"
                ],
                [
                    "Character",
                    "  "
                ]
            ]
        },
        {
            "description": "<!doctype html><html><frameset></frameset></html>abc",
            "input": "<!doctype html><html><frameset></frameset></html>abc",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "EndTag",
                    "frameset"
                ],
                [
                    "EndTag",
                    "html"
                ],
                [
                    "Character",
                    "abc"
                ]
            ]
        },
        {
            "description": "<!doctype html><html><frameset></frameset></html><p>",
            "input": "<!doctype html><html><frameset></frameset></html><p>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "EndTag",
                    "frameset"
                ],
                [
                    "EndTag",
                    "html"
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><html><frameset></frameset></html></p>",
            "input": "<!doctype html><html><frameset></frameset></html></p>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "EndTag",
                    "frameset"
                ],
                [
                    "EndTag",
                    "html"
                ],
                [
                    "EndTag",
                    "p"
                ]
            ]
        },
        {
            "description": "<html><frameset></frameset></html><!doctype html>",
            "input": "<html><frameset></frameset></html><!doctype html>",
            "output": [
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "EndTag",
                    "frameset"
                ],
                [
                    "EndTag",
                    "html"
                ],
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ]
            ]
        },
        {
            "description": "<!doctype html><body><frameset>",
            "input": "<!doctype html><body><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "body",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><p><frameset><frame>",
            "input": "<!doctype html><p><frameset><frame>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "StartTag",
                    "frame",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><p>a<frameset>",
            "input": "<!doctype html><p>a<frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><p> <frameset><frame>",
            "input": "<!doctype html><p> <frameset><frame>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "Character",
                    " "
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "StartTag",
                    "frame",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><pre><frameset>",
            "input": "<!doctype html><pre><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "pre",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><listing><frameset>",
            "input": "<!doctype html><listing><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "listing",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><li><frameset>",
            "input": "<!doctype html><li><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "li",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><dd><frameset>",
            "input": "<!doctype html><dd><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "dd",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><dt><frameset>",
            "input": "<!doctype html><dt><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "dt",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><button><frameset>",
            "input": "<!doctype html><button><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "button",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><applet><frameset>",
            "input": "<!doctype html><applet><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "applet",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><marquee><frameset>",
            "input": "<!doctype html><marquee><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "marquee",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><object><frameset>",
            "input": "<!doctype html><object><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "object",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><table><frameset>",
            "input": "<!doctype html><table><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "table",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><area><frameset>",
            "input": "<!doctype html><area><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "area",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><basefont><frameset>",
            "input": "<!doctype html><basefont><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "basefont",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><bgsound><frameset>",
            "input": "<!doctype html><bgsound><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "bgsound",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><br><frameset>",
            "input": "<!doctype html><br><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "br",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><embed><frameset>",
            "input": "<!doctype html><embed><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "embed",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><img><frameset>",
            "input": "<!doctype html><img><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "img",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><input><frameset>",
            "input": "<!doctype html><input><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "input",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><keygen><frameset>",
            "input": "<!doctype html><keygen><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "keygen",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><wbr><frameset>",
            "input": "<!doctype html><wbr><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "wbr",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><hr><frameset>",
            "input": "<!doctype html><hr><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "hr",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><textarea></textarea><frameset>",
            "input": "<!doctype html><textarea></textarea><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "textarea",
                    {}
                ],
                [
                    "EndTag",
                    "textarea"
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><xmp></xmp><frameset>",
            "input": "<!doctype html><xmp></xmp><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "xmp",
                    {}
                ],
                [
                    "EndTag",
                    "xmp"
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><iframe></iframe><frameset>",
            "input": "<!doctype html><iframe></iframe><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "iframe",
                    {}
                ],
                [
                    "EndTag",
                    "iframe"
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><select></select><frameset>",
            "input": "<!doctype html><select></select><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "select",
                    {}
                ],
                [
                    "EndTag",
                    "select"
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><svg></svg><frameset><frame>",
            "input": "<!doctype html><svg></svg><frameset><frame>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "svg",
                    {}
                ],
                [
                    "EndTag",
                    "svg"
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "StartTag",
                    "frame",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><math></math><frameset><frame>",
            "input": "<!doctype html><math></math><frameset><frame>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "math",
                    {}
                ],
                [
                    "EndTag",
                    "math"
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "StartTag",
                    "frame",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><svg><foreignObject><div> <frameset><frame>",
            "input": "<!doctype html><svg><foreignObject><div> <frameset><frame>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "svg",
                    {}
                ],
                [
                    "StartTag",
                    "foreignObject",
                    {}
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "Character",
                    " "
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "StartTag",
                    "frame",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><svg>a</svg><frameset><frame>",
            "input": "<!doctype html><svg>a</svg><frameset><frame>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "svg",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "EndTag",
                    "svg"
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "StartTag",
                    "frame",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><svg> </svg><frameset><frame>",
            "input": "<!doctype html><svg> </svg><frameset><frame>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "svg",
                    {}
                ],
                [
                    "Character",
                    " "
                ],
                [
                    "EndTag",
                    "svg"
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "StartTag",
                    "frame",
                    {}
                ]
            ]
        },
        {
            "description": "<html>aaa<frameset></frameset>",
            "input": "<html>aaa<frameset></frameset>",
            "output": [
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "Character",
                    "aaa"
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "EndTag",
                    "frameset"
                ]
            ]
        },
        {
            "description": "<html> a <frameset></frameset>",
            "input": "<html> a <frameset></frameset>",
            "output": [
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "Character",
                    " a "
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ],
                [
                    "EndTag",
                    "frameset"
                ]
            ]
        },
        {
            "description": "<!doctype html><div><frameset>",
            "input": "<!doctype html><div><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><div><body><frameset>",
            "input": "<!doctype html><div><body><frameset>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "StartTag",
                    "body",
                    {}
                ],
                [
                    "StartTag",
                    "frameset",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><p><math></p>a",
            "input": "<!doctype html><p><math></p>a",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "math",
                    {}
                ],
                [
                    "EndTag",
                    "p"
                ],
                [
                    "Character",
                    "a"
                ]
            ]
        },
        {
            "description": "<!doctype html><p><math><mn><span></p>a",
            "input": "<!doctype html><p><math><mn><span></p>a",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "math",
                    {}
                ],
                [
                    "StartTag",
                    "mn",
                    {}
                ],
                [
                    "StartTag",
                    "span",
                    {}
                ],
                [
                    "EndTag",
                    "p"
                ],
                [
                    "Character",
                    "a"
                ]
            ]
        },
        {
            "description": "<!doctype html><math></html>",
            "input": "<!doctype html><math></html>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "math",
                    {}
                ],
                [
                    "EndTag",
                    "html"
                ]
            ]
        },
        {
            "description": "<!doctype html><meta charset=\"ascii\">",
            "input": "<!doctype html><meta charset=\"ascii\">",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "meta",
                    {
                        "charset": "ascii"
                    }
                ]
            ]
        },
        {
            "description": "<!doctype html><meta http-equiv=\"content-type\" content=\"text/html;charset=ascii\">",
            "input": "<!doctype html><meta http-equiv=\"content-type\" content=\"text/html;charset=ascii\">",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "meta",
                    {
                        "http-equiv": "content-type",
                        "content": "text/html;charset=ascii"
                    }
                ]
            ]
        },
        {
            "description": "<!doctype html><head><!--aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa--><meta charset=\"utf8\">",
            "input": "<!doctype html><head><!--aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa--><meta charset=\"utf8\">",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "head",
                    {}
                ],
                [
                    "Comment",
                    "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
                ],
                [
                    "StartTag",
                    "meta",
                    {
                        "charset": "utf8"
                    }
                ]
            ]
        },
        {
            "description": "<!doctype html><html a=b><head></head><html c=d>",
            "input": "<!doctype html><html a=b><head></head><html c=d>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "html",
                    {
                        "a": "b"
                    }
                ],
                [
                    "StartTag",
                    "head",
                    {}
                ],
                [
                    "EndTag",
                    "head"
                ],
                [
                    "StartTag",
                    "html",
                    {
                        "c": "d"
                    }
                ]
            ]
        },
        {
            "description": "<!doctype html><image/>",
            "input": "<!doctype html><image/>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "img",
                    {},
                    true
                ]
            ]
        },
        {
            "description": "<!doctype html>a<i>b<table>c<b>d</i>e</b>f",
            "input": "<!doctype html>a<i>b<table>c<b>d</i>e</b>f",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "i",
                    {}
                ],
                [
                    "Character",
                    "b"
                ],
                [
                    "StartTag",
                    "table",
                    {}
                ],
                [
                    "Character",
                    "c"
                ],
                [
                    "StartTag",
                    "b",
                    {}
                ],
                [
                    "Character",
                    "d"
                ],
                [
                    "EndTag",
                    "i"
                ],
                [
                    "Character",
                    "e"
                ],
                [
                    "EndTag",
                    "b"
                ],
                [
                    "Character",
                    "f"
                ]
            ]
        },
        {
            "description": "<!doctype html><table><i>a<b>b<div>c<a>d</i>e</b>f",
            "input": "<!doctype html><table><i>a<b>b<div>c<a>d</i>e</b>f",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "table",
                    {}
                ],
                [
                    "StartTag",
                    "i",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "b",
                    {}
                ],
                [
                    "Character",
                    "b"
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "Character",
                    "c"
                ],
                [
                    "StartTag",
                    "a",
                    {}
                ],
                [
                    "Character",
                    "d"
                ],
                [
                    "EndTag",
                    "i"
                ],
                [
                    "Character",
                    "e"
                ],
                [
                    "EndTag",
                    "b"
                ],
                [
                    "Character",
                    "f"
                ]
            ]
        },
        {
            "description": "<!doctype html><i>a<b>b<div>c<a>d</i>e</b>f",
            "input": "<!doctype html><i>a<b>b<div>c<a>d</i>e</b>f",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "i",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "b",
                    {}
                ],
                [
                    "Character",
                    "b"
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "Character",
                    "c"
                ],
                [
                    "StartTag",
                    "a",
                    {}
                ],
                [
                    "Character",
                    "d"
                ],
                [
                    "EndTag",
                    "i"
                ],
                [
                    "Character",
                    "e"
                ],
                [
                    "EndTag",
                    "b"
                ],
                [
                    "Character",
                    "f"
                ]
            ]
        },
        {
            "description": "<!doctype html><table><i>a<b>b<div>c</i>",
            "input": "<!doctype html><table><i>a<b>b<div>c</i>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "table",
                    {}
                ],
                [
                    "StartTag",
                    "i",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "b",
                    {}
                ],
                [
                    "Character",
                    "b"
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "Character",
                    "c"
                ],
                [
                    "EndTag",
                    "i"
                ]
            ]
        },
        {
            "description": "<!doctype html><table><i>a<b>b<div>c<a>d</i>e</b>f",
            "input": "<!doctype html><table><i>a<b>b<div>c<a>d</i>e</b>f",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "table",
                    {}
                ],
                [
                    "StartTag",
                    "i",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "b",
                    {}
                ],
                [
                    "Character",
                    "b"
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "Character",
                    "c"
                ],
                [
                    "StartTag",
                    "a",
                    {}
                ],
                [
                    "Character",
                    "d"
                ],
                [
                    "EndTag",
                    "i"
                ],
                [
                    "Character",
                    "e"
                ],
                [
                    "EndTag",
                    "b"
                ],
                [
                    "Character",
                    "f"
                ]
            ]
        },
        {
            "description": "<!doctype html><table><i>a<div>b<tr>c<b>d</i>e",
            "input": "<!doctype html><table><i>a<div>b<tr>c<b>d</i>e",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "table",
                    {}
                ],
                [
                    "StartTag",
                    "i",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "Character",
                    "b"
                ],
                [
                    "StartTag",
                    "tr",
                    {}
                ],
                [
                    "Character",
                    "c"
                ],
                [
                    "StartTag",
                    "b",
                    {}
                ],
                [
                    "Character",
                    "d"
                ],
                [
                    "EndTag",
                    "i"
                ],
                [
                    "Character",
                    "e"
                ]
            ]
        },
        {
            "description": "<!doctype html><table><td><table><i>a<div>b<b>c</i>d",
            "input": "<!doctype html><table><td><table><i>a<div>b<b>c</i>d",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "table",
                    {}
                ],
                [
                    "StartTag",
                    "td",
                    {}
                ],
                [
                    "StartTag",
                    "table",
                    {}
                ],
                [
                    "StartTag",
                    "i",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "Character",
                    "b"
                ],
                [
                    "StartTag",
                    "b",
                    {}
                ],
                [
                    "Character",
                    "c"
                ],
                [
                    "EndTag",
                    "i"
                ],
                [
                    "Character",
                    "d"
                ]
            ]
        },
        {
            "description": "<!doctype html><body><bgsound>",
            "input": "<!doctype html><body><bgsound>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "body",
                    {}
                ],
                [
                    "StartTag",
                    "bgsound",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><body><basefont>",
            "input": "<!doctype html><body><basefont>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "body",
                    {}
                ],
                [
                    "StartTag",
                    "basefont",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><a><b></a><basefont>",
            "input": "<!doctype html><a><b></a><basefont>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "a",
                    {}
                ],
                [
                    "StartTag",
                    "b",
                    {}
                ],
                [
                    "EndTag",
                    "a"
                ],
                [
                    "StartTag",
                    "basefont",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><a><b></a><bgsound>",
            "input": "<!doctype html><a><b></a><bgsound>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "a",
                    {}
                ],
                [
                    "StartTag",
                    "b",
                    {}
                ],
                [
                    "EndTag",
                    "a"
                ],
                [
                    "StartTag",
                    "bgsound",
                    {}
                ]
            ]
        },
        {
            "description": "<!doctype html><figcaption><article></figcaption>a",
            "input": "<!doctype html><figcaption><article></figcaption>a",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "figcaption",
                    {}
                ],
                [
                    "StartTag",
                    "article",
                    {}
                ],
                [
                    "EndTag",
                    "figcaption"
                ],
                [
                    "Character",
                    "a"
                ]
            ]
        },
        {
            "description": "<!doctype html><summary><article></summary>a",
            "input": "<!doctype html><summary><article></summary>a",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "summary",
                    {}
                ],
                [
                    "StartTag",
                    "article",
                    {}
                ],
                [
                    "EndTag",
                    "summary"
                ],
                [
                    "Character",
                    "a"
                ]
            ]
        },
        {
            "description": "<!doctype html><p><a><plaintext>b",
            "input": "<!doctype html><p><a><plaintext>b",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "a",
                    {}
                ],
                [
                    "StartTag",
                    "plaintext",
                    {}
                ],
                [
                    "Character",
                    "b"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><div>a<a></div>b<p>c</p>d",
            "input": "<!DOCTYPE html><div>a<a></div>b<p>c</p>d",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "div",
                    {}
                ],
                [
                    "Character",
                    "a"
                ],
                [
                    "StartTag",
                    "a",
                    {}
                ],
                [
                    "EndTag",
                    "div"
                ],
                [
                    "Character",
                    "b"
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "Character",
                    "c"
                ],
                [
                    "EndTag",
                    "p"
                ],
                [
                    "Character",
                    "d"
                ]
            ]
        }
    ]
}