{
    "tests": [
        {
            "description": "<menuitem>",
            "input": "<menuitem>",
            "output": [
                [
                    "StartTag",
                    "menuitem",
                    {}
                ]
            ]
        },
        {
            "description": "</menuitem>",
            "input": "</menuitem>",
            "output": [
                [
                    "EndTag",
                    "menuitem"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><body><menuitem>A",
            "input": "<!DOCTYPE html><body><menuitem>A",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "body",
                    {}
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "Character",
                    "A"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><body><menuitem>A<menuitem>B",
            "input": "<!DOCTYPE html><body><menuitem>A<menuitem>B",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "body",
                    {}
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "Character",
                    "A"
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "Character",
                    "B"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><body><menuitem>A<menu>B</menu>",
            "input": "<!DOCTYPE html><body><menuitem>A<menu>B</menu>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "body",
                    {}
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "Character",
                    "A"
                ],
                [
                    "StartTag",
                    "menu",
                    {}
                ],
                [
                    "Character",
                    "B"
                ],
                [
                    "EndTag",
                    "menu"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><body><menuitem>A<hr>B",
            "input": "<!DOCTYPE html><body><menuitem>A<hr>B",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "body",
                    {}
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "Character",
                    "A"
                ],
                [
                    "StartTag",
                    "hr",
                    {}
                ],
                [
                    "Character",
                    "B"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><li><menuitem><li>",
            "input": "<!DOCTYPE html><li><menuitem><li>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "li",
                    {}
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "StartTag",
                    "li",
                    {}
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><menuitem><p></menuitem>x",
            "input": "<!DOCTYPE html><menuitem><p></menuitem>x",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "EndTag",
                    "menuitem"
                ],
                [
                    "Character",
                    "x"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><p><b></p><menuitem>",
            "input": "<!DOCTYPE html><p><b></p><menuitem>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "b",
                    {}
                ],
                [
                    "EndTag",
                    "p"
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><menuitem><asdf></menuitem>x",
            "input": "<!DOCTYPE html><menuitem><asdf></menuitem>x",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "StartTag",
                    "asdf",
                    {}
                ],
                [
                    "EndTag",
                    "menuitem"
                ],
                [
                    "Character",
                    "x"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html></menuitem>",
            "input": "<!DOCTYPE html></menuitem>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "EndTag",
                    "menuitem"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><html></menuitem>",
            "input": "<!DOCTYPE html><html></menuitem>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "EndTag",
                    "menuitem"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><head></menuitem>",
            "input": "<!DOCTYPE html><head></menuitem>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "head",
                    {}
                ],
                [
                    "EndTag",
                    "menuitem"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><select><menuitem></select>",
            "input": "<!DOCTYPE html><select><menuitem></select>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "select",
                    {}
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "EndTag",
                    "select"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><option><menuitem>",
            "input": "<!DOCTYPE html><option><menuitem>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "option",
                    {}
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><menuitem><option>",
            "input": "<!DOCTYPE html><menuitem><option>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "StartTag",
                    "option",
                    {}
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><menuitem></body>",
            "input": "<!DOCTYPE html><menuitem></body>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "EndTag",
                    "body"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><menuitem></html>",
            "input": "<!DOCTYPE html><menuitem></html>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "EndTag",
                    "html"
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><menuitem><p>",
            "input": "<!DOCTYPE html><menuitem><p>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ]
            ]
        },
        {
            "description": "<!DOCTYPE html><menuitem><li>",
            "input": "<!DOCTYPE html><menuitem><li>",
            "output": [
                [
                    "DOCTYPE",
                    "html",
                    null,
                    null,
                    true
                ],
                [
                    "StartTag",
                    "menuitem",
                    {}
                ],
                [
                    "StartTag",
                    "li",
                    {}
                ]
            ]
        }
    ]
}