{
"tests": [
{
"fragmentContext": null,
"description": "<!doctype html><p><button><button>",
"input": "<!doctype html><p><button><button>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"button",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><address>",
"input": "<!doctype html><p><button><address>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"address",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><article>",
"input": "<!doctype html><p><button><article>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"article",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><aside>",
"input": "<!doctype html><p><button><aside>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"aside",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><blockquote>",
"input": "<!doctype html><p><button><blockquote>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"blockquote",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><center>",
"input": "<!doctype html><p><button><center>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"center",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><details>",
"input": "<!doctype html><p><button><details>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"details",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><dialog>",
"input": "<!doctype html><p><button><dialog>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"dialog",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><dir>",
"input": "<!doctype html><p><button><dir>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"dir",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><div>",
"input": "<!doctype html><p><button><div>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"div",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><dl>",
"input": "<!doctype html><p><button><dl>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"dl",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><fieldset>",
"input": "<!doctype html><p><button><fieldset>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"fieldset",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><figcaption>",
"input": "<!doctype html><p><button><figcaption>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"figcaption",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><figure>",
"input": "<!doctype html><p><button><figure>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"figure",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><footer>",
"input": "<!doctype html><p><button><footer>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"footer",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><header>",
"input": "<!doctype html><p><button><header>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"header",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><hgroup>",
"input": "<!doctype html><p><button><hgroup>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"hgroup",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><main>",
"input": "<!doctype html><p><button><main>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"main",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><menu>",
"input": "<!doctype html><p><button><menu>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"menu",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><nav>",
"input": "<!doctype html><p><button><nav>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"nav",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><ol>",
"input": "<!doctype html><p><button><ol>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"ol",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><p>",
"input": "<!doctype html><p><button><p>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"p",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><search>",
"input": "<!doctype html><p><button><search>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"search",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><section>",
"input": "<!doctype html><p><button><section>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"section",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><summary>",
"input": "<!doctype html><p><button><summary>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"summary",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><ul>",
"input": "<!doctype html><p><button><ul>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"ul",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><h1>",
"input": "<!doctype html><p><button><h1>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"h1",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><h6>",
"input": "<!doctype html><p><button><h6>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"h6",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><listing>",
"input": "<!doctype html><p><button><listing>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"listing",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><pre>",
"input": "<!doctype html><p><button><pre>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"pre",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><form>",
"input": "<!doctype html><p><button><form>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"form",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><li>",
"input": "<!doctype html><p><button><li>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"li",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><dd>",
"input": "<!doctype html><p><button><dd>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"dd",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><dt>",
"input": "<!doctype html><p><button><dt>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"dt",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><plaintext>",
"input": "<!doctype html><p><button><plaintext>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"plaintext",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><table>",
"input": "<!doctype html><p><button><table>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"table",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><hr>",
"input": "<!doctype html><p><button><hr>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"hr",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button><xmp>",
"input": "<!doctype html><p><button><xmp>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"StartTag",
"xmp",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><button></p>",
"input": "<!doctype html><p><button></p>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"button",
{}
],
[
"EndTag",
"p"
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><address><button></address>a",
"input": "<!doctype html><address><button></address>a",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"address",
{}
],
[
"StartTag",
"button",
{}
],
[
"EndTag",
"address"
],
[
"Character",
"a"
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><address><button></address>a",
"input": "<!doctype html><address><button></address>a",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"address",
{}
],
[
"StartTag",
"button",
{}
],
[
"EndTag",
"address"
],
[
"Character",
"a"
]
]
},
{
"fragmentContext": null,
"description": "<p><table></p>",
"input": "<p><table></p>",
"output": [
[
"StartTag",
"p",
{}
],
[
"StartTag",
"table",
{}
],
[
"EndTag",
"p"
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><svg>",
"input": "<!doctype html><svg>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"svg",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><figcaption>",
"input": "<!doctype html><p><figcaption>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"figcaption",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><p><summary>",
"input": "<!doctype html><p><summary>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"p",
{}
],
[
"StartTag",
"summary",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><form><table><form>",
"input": "<!doctype html><form><table><form>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"form",
{}
],
[
"StartTag",
"table",
{}
],
[
"StartTag",
"form",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><table><form><form>",
"input": "<!doctype html><table><form><form>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"table",
{}
],
[
"StartTag",
"form",
{}
],
[
"StartTag",
"form",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><table><form></table><form>",
"input": "<!doctype html><table><form></table><form>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"table",
{}
],
[
"StartTag",
"form",
{}
],
[
"EndTag",
"table"
],
[
"StartTag",
"form",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><svg><foreignObject><p>",
"input": "<!doctype html><svg><foreignObject><p>",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"svg",
{}
],
[
"StartTag",
"foreignObject",
{}
],
[
"StartTag",
"p",
{}
]
]
},
{
"fragmentContext": null,
"description": "<!doctype html><svg><title>abc",
"input": "<!doctype html><svg><title>abc",
"output": [
[
"DOCTYPE",
"html",
null,
null,
true
],
[
"StartTag",
"svg",
{}
],
[
"StartTag",
"title",
{}
],
[
"Character",
"abc"
]
]
},
{
"fragmentContext": null,
"description": "<option><span><option>",
"input": "<option><span><option>",
"output": [
[
"StartTag",
"option",
{}
],
[
"StartTag",
"span",
{}
],
[
"StartTag",
"option",
{}
]
]
},
{
"fragmentContext": null,
"description": "<option><option>",
"input": "<option><option>",
"output": [
[
"StartTag",
"option",
{}
],
[
"StartTag",
"option",
{}
]
]
},
{
"fragmentContext": null,
"description": "<math><annotation-xml><div>",
"input": "<math><annotation-xml><div>",
"output": [
[
"StartTag",
"math",
{}
],
[
"StartTag",
"annotation-xml",
{}
],
[
"StartTag",
"div",
{}
]
]
},
{
"fragmentContext": null,
"description": "<math><annotation-xml encoding=\"application/svg+xml\"><div>",
"input": "<math><annotation-xml encoding=\"application/svg+xml\"><div>",
"output": [
[
"StartTag",
"math",
{}
],
[
"StartTag",
"annotation-xml",
{
"encoding": "application/svg+xml"
}
],
[
"StartTag",
"div",
{}
]
]
},
{
"fragmentContext": null,
"description": "<math><annotation-xml encoding=\"application/xhtml+xml\"><div>",
"input": "<math><annotation-xml encoding=\"application/xhtml+xml\"><div>",
"output": [
[
"StartTag",
"math",
{}
],
[
"StartTag",
"annotation-xml",
{
"encoding": "application/xhtml+xml"
}
],
[
"StartTag",
"div",
{}
]
]
},
{
"fragmentContext": null,
"description": "<math><annotation-xml encoding=\"aPPlication/xhtmL+xMl\"><div>",
"input": "<math><annotation-xml encoding=\"aPPlication/xhtmL+xMl\"><div>",
"output": [
[
"StartTag",
"math",
{}
],
[
"StartTag",
"annotation-xml",
{
"encoding": "aPPlication/xhtmL+xMl"
}
],
[
"StartTag",
"div",
{}
]
]
},
{
"fragmentContext": null,
"description": "<math><annotation-xml encoding=\"text/html\"><div>",
"input": "<math><annotation-xml encoding=\"text/html\"><div>",
"output": [
[
"StartTag",
"math",
{}
],
[
"StartTag",
"annotation-xml",
{
"encoding": "text/html"
}
],
[
"StartTag",
"div",
{}
]
]
},
{
"fragmentContext": null,
"description": "<math><annotation-xml encoding=\"Text/htmL\"><div>",
"input": "<math><annotation-xml encoding=\"Text/htmL\"><div>",
"output": [
[
"StartTag",
"math",
{}
],
[
"StartTag",
"annotation-xml",
{
"encoding": "Text/htmL"
}
],
[
"StartTag",
"div",
{}
]
]
},
{
"fragmentContext": null,
"description": "<math><annotation-xml encoding=\" text/html \"><div>",
"input": "<math><annotation-xml encoding=\" text/html \"><div>",
"output": [
[
"StartTag",
"math",
{}
],
[
"StartTag",
"annotation-xml",
{
"encoding": " text/html "
}
],
[
"StartTag",
"div",
{}
]
]
},
{
"fragmentContext": null,
"description": "<math><annotation-xml> </annotation-xml>",
"input": "<math><annotation-xml> </annotation-xml>",
"output": [
[
"StartTag",
"math",
{}
],
[
"StartTag",
"annotation-xml",
{}
],
[
"Character",
" "
],
[
"EndTag",
"annotation-xml"
]
]
},
{
"fragmentContext": null,
"description": "<math><annotation-xml>c</annotation-xml>",
"input": "<math><annotation-xml>c</annotation-xml>",
"output": [
[
"StartTag",
"math",
{}
],
[
"StartTag",
"annotation-xml",
{}
],
[
"Character",
"c"
],
[
"EndTag",
"annotation-xml"
]
]
},
{
"fragmentContext": null,
"description": "<math><annotation-xml><!--foo-->",
"input": "<math><annotation-xml><!--foo-->",
"output": [
[
"StartTag",
"math",
{}
],
[
"StartTag",
"annotation-xml",
{}
],
[
"Comment",
"foo"
]
]
},
{
"fragmentContext": null,
"description": "<math><annotation-xml></svg>x",
"input": "<math><annotation-xml></svg>x",
"output": [
[
"StartTag",
"math",
{}
],
[
"StartTag",
"annotation-xml",
{}
],
[
"EndTag",
"svg"
],
[
"Character",
"x"
]
]
},
{
"fragmentContext": null,
"description": "<math><annotation-xml><svg>x",
"input": "<math><annotation-xml><svg>x",
"output": [
[
"StartTag",
"math",
{}
],
[
"StartTag",
"annotation-xml",
{}
],
[
"StartTag",
"svg",
{}
],
[
"Character",
"x"
]
]
}
]
}