{ "tests": [ { "fragmentContext": null, "description": "", "input": "", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "math", {} ], [ "StartTag", "mn", { "definitionURL": "foo" } ] ] }, { "fragmentContext": null, "description": "

", "input": "

", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "html", {} ], [ "EndTag", "p" ], [ "Comment", "foo" ] ] }, { "fragmentContext": null, "description": "

", "input": "

", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "head", {} ], [ "EndTag", "head" ], [ "EndTag", "p" ], [ "Comment", "foo" ] ] }, { "fragmentContext": null, "description": "

",
            "input": "

",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "body",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "pre",
                    {}
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "

", "input": "

", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "body", {} ], [ "StartTag", "p", {} ], [ "StartTag", "listing", {} ] ] }, { "fragmentContext": null, "description": "

", "input": "<!doctype html><p><plaintext>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "p", {} ], [ "StartTag", "plaintext", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><p><h1>", "input": "<!doctype html><p><h1>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "p", {} ], [ "StartTag", "h1", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><isindex type=\"hidden\">", "input": "<!doctype html><isindex type=\"hidden\">", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "isindex", { "type": "hidden" } ] ] }, { "fragmentContext": null, "description": "<!doctype html><ruby><p><rp>", "input": "<!doctype html><ruby><p><rp>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "ruby", {} ], [ "StartTag", "p", {} ], [ "StartTag", "rp", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><ruby><p><rt>", "input": "<!doctype html><ruby><p><rt>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "ruby", {} ], [ "StartTag", "p", {} ], [ "StartTag", "rt", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "description": "<!doctype html><math/><foo>", "input": "<!doctype html><math/><foo>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "math", {}, true ], [ "StartTag", "foo", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><svg/><foo>", "input": "<!doctype html><svg/><foo>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "svg", {}, true ], [ "StartTag", "foo", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><div></body><!--foo-->", "input": "<!doctype html><div></body><!--foo-->", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "div", {} ], [ "EndTag", "body" ], [ "Comment", "foo" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "description": "<!doctype html><p></h3>foo", "input": "<!doctype html><p></h3>foo", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "p", {} ], [ "EndTag", "h3" ], [ "Character", "foo" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "description": "<!doctype html><table>abc<!--foo-->", "input": "<!doctype html><table>abc<!--foo-->", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "table", {} ], [ "Character", "abc" ], [ "Comment", "foo" ] ] }, { "fragmentContext": null, "description": "<!doctype html><table> <!--foo-->", "input": "<!doctype html><table> <!--foo-->", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "table", {} ], [ "Character", " " ], [ "Comment", "foo" ] ] }, { "fragmentContext": null, "description": "<!doctype html><table> b <!--foo-->", "input": "<!doctype html><table> b <!--foo-->", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "table", {} ], [ "Character", " b " ], [ "Comment", "foo" ] ] }, { "fragmentContext": null, "description": "<!doctype html><select><option><option>", "input": "<!doctype html><select><option><option>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "select", {} ], [ "StartTag", "option", {} ], [ "StartTag", "option", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><select><option></optgroup>", "input": "<!doctype html><select><option></optgroup>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "select", {} ], [ "StartTag", "option", {} ], [ "EndTag", "optgroup" ] ] }, { "fragmentContext": null, "description": "<!doctype html><select><option></optgroup>", "input": "<!doctype html><select><option></optgroup>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "select", {} ], [ "StartTag", "option", {} ], [ "EndTag", "optgroup" ] ] }, { "fragmentContext": null, "description": "<!doctype html><dd><optgroup><dd>", "input": "<!doctype html><dd><optgroup><dd>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "dd", {} ], [ "StartTag", "optgroup", {} ], [ "StartTag", "dd", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><frameset></noframes>", "input": "<!doctype html><frameset></noframes>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "frameset", {} ], [ "EndTag", "noframes" ] ] }, { "fragmentContext": null, "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" } ] ] }, { "fragmentContext": null, "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" } ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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", " " ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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 ] ] }, { "fragmentContext": null, "description": "<!doctype html><body><frameset>", "input": "<!doctype html><body><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "body", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><p><frameset><frame>", "input": "<!doctype html><p><frameset><frame>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "p", {} ], [ "StartTag", "frameset", {} ], [ "StartTag", "frame", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><p>a<frameset>", "input": "<!doctype html><p>a<frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "p", {} ], [ "Character", "a" ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><pre><frameset>", "input": "<!doctype html><pre><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "pre", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><listing><frameset>", "input": "<!doctype html><listing><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "listing", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><li><frameset>", "input": "<!doctype html><li><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "li", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><dd><frameset>", "input": "<!doctype html><dd><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "dd", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><dt><frameset>", "input": "<!doctype html><dt><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "dt", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><button><frameset>", "input": "<!doctype html><button><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "button", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><applet><frameset>", "input": "<!doctype html><applet><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "applet", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><marquee><frameset>", "input": "<!doctype html><marquee><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "marquee", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><object><frameset>", "input": "<!doctype html><object><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "object", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><table><frameset>", "input": "<!doctype html><table><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "table", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><area><frameset>", "input": "<!doctype html><area><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "area", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><basefont><frameset>", "input": "<!doctype html><basefont><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "basefont", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><bgsound><frameset>", "input": "<!doctype html><bgsound><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "bgsound", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><br><frameset>", "input": "<!doctype html><br><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "br", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><embed><frameset>", "input": "<!doctype html><embed><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "embed", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><img><frameset>", "input": "<!doctype html><img><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "img", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><input><frameset>", "input": "<!doctype html><input><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "input", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><keygen><frameset>", "input": "<!doctype html><keygen><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "keygen", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><wbr><frameset>", "input": "<!doctype html><wbr><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "wbr", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><hr><frameset>", "input": "<!doctype html><hr><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "hr", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><textarea></textarea><frameset>", "input": "<!doctype html><textarea></textarea><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "textarea", {} ], [ "EndTag", "textarea" ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><xmp></xmp><frameset>", "input": "<!doctype html><xmp></xmp><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "xmp", {} ], [ "EndTag", "xmp" ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><iframe></iframe><frameset>", "input": "<!doctype html><iframe></iframe><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "iframe", {} ], [ "EndTag", "iframe" ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><select></select><frameset>", "input": "<!doctype html><select></select><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "select", {} ], [ "EndTag", "select" ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "description": "<html>aaa<frameset></frameset>", "input": "<html>aaa<frameset></frameset>", "output": [ [ "StartTag", "html", {} ], [ "Character", "aaa" ], [ "StartTag", "frameset", {} ], [ "EndTag", "frameset" ] ] }, { "fragmentContext": null, "description": "<html> a <frameset></frameset>", "input": "<html> a <frameset></frameset>", "output": [ [ "StartTag", "html", {} ], [ "Character", " a " ], [ "StartTag", "frameset", {} ], [ "EndTag", "frameset" ] ] }, { "fragmentContext": null, "description": "<!doctype html><div><frameset>", "input": "<!doctype html><div><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "div", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><div><body><frameset>", "input": "<!doctype html><div><body><frameset>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "div", {} ], [ "StartTag", "body", {} ], [ "StartTag", "frameset", {} ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "description": "<!doctype html><math></html>", "input": "<!doctype html><math></html>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "math", {} ], [ "EndTag", "html" ] ] }, { "fragmentContext": null, "description": "<!doctype html><meta charset=\"ascii\">", "input": "<!doctype html><meta charset=\"ascii\">", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "meta", { "charset": "ascii" } ] ] }, { "fragmentContext": null, "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" } ] ] }, { "fragmentContext": null, "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" } ] ] }, { "fragmentContext": null, "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" } ] ] }, { "fragmentContext": null, "description": "<!doctype html><image/>", "input": "<!doctype html><image/>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "img", {}, true ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "description": "<!doctype html><body><bgsound>", "input": "<!doctype html><body><bgsound>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "body", {} ], [ "StartTag", "bgsound", {} ] ] }, { "fragmentContext": null, "description": "<!doctype html><body><basefont>", "input": "<!doctype html><body><basefont>", "output": [ [ "DOCTYPE", "html", null, null, true ], [ "StartTag", "body", {} ], [ "StartTag", "basefont", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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", {} ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] }, { "fragmentContext": null, "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" ] ] } ] }