{
    "tests": [
        {
            "fragmentContext": null,
            "description": "<style> <!-- </style>x",
            "input": "<style> <!-- </style>x",
            "output": [
                [
                    "StartTag",
                    "style",
                    {}
                ],
                [
                    "Character",
                    " <!-- "
                ],
                [
                    "EndTag",
                    "style"
                ],
                [
                    "Character",
                    "x"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<style> <!-- </style> --> </style>x",
            "input": "<style> <!-- </style> --> </style>x",
            "output": [
                [
                    "StartTag",
                    "style",
                    {}
                ],
                [
                    "Character",
                    " <!-- "
                ],
                [
                    "EndTag",
                    "style"
                ],
                [
                    "Character",
                    " --> "
                ],
                [
                    "EndTag",
                    "style"
                ],
                [
                    "Character",
                    "x"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<style> <!--> </style>x",
            "input": "<style> <!--> </style>x",
            "output": [
                [
                    "StartTag",
                    "style",
                    {}
                ],
                [
                    "Character",
                    " <!--> "
                ],
                [
                    "EndTag",
                    "style"
                ],
                [
                    "Character",
                    "x"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<style> <!---> </style>x",
            "input": "<style> <!---> </style>x",
            "output": [
                [
                    "StartTag",
                    "style",
                    {}
                ],
                [
                    "Character",
                    " <!---> "
                ],
                [
                    "EndTag",
                    "style"
                ],
                [
                    "Character",
                    "x"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<iframe> <!---> </iframe>x",
            "input": "<iframe> <!---> </iframe>x",
            "output": [
                [
                    "StartTag",
                    "iframe",
                    {}
                ],
                [
                    "Character",
                    " <!---> "
                ],
                [
                    "EndTag",
                    "iframe"
                ],
                [
                    "Character",
                    "x"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<iframe> <!--- </iframe>->x</iframe> --> </iframe>x",
            "input": "<iframe> <!--- </iframe>->x</iframe> --> </iframe>x",
            "output": [
                [
                    "StartTag",
                    "iframe",
                    {}
                ],
                [
                    "Character",
                    " <!--- "
                ],
                [
                    "EndTag",
                    "iframe"
                ],
                [
                    "Character",
                    "->x"
                ],
                [
                    "EndTag",
                    "iframe"
                ],
                [
                    "Character",
                    " --> "
                ],
                [
                    "EndTag",
                    "iframe"
                ],
                [
                    "Character",
                    "x"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<script> <!-- </script> --> </script>x",
            "input": "<script> <!-- </script> --> </script>x",
            "output": [
                [
                    "StartTag",
                    "script",
                    {}
                ],
                [
                    "Character",
                    " <!-- "
                ],
                [
                    "EndTag",
                    "script"
                ],
                [
                    "Character",
                    " --> "
                ],
                [
                    "EndTag",
                    "script"
                ],
                [
                    "Character",
                    "x"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<title> <!-- </title> --> </title>x",
            "input": "<title> <!-- </title> --> </title>x",
            "output": [
                [
                    "StartTag",
                    "title",
                    {}
                ],
                [
                    "Character",
                    " <!-- "
                ],
                [
                    "EndTag",
                    "title"
                ],
                [
                    "Character",
                    " --> "
                ],
                [
                    "EndTag",
                    "title"
                ],
                [
                    "Character",
                    "x"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<textarea> <!--- </textarea>->x</textarea> --> </textarea>x",
            "input": "<textarea> <!--- </textarea>->x</textarea> --> </textarea>x",
            "output": [
                [
                    "StartTag",
                    "textarea",
                    {}
                ],
                [
                    "Character",
                    " <!--- "
                ],
                [
                    "EndTag",
                    "textarea"
                ],
                [
                    "Character",
                    "->x"
                ],
                [
                    "EndTag",
                    "textarea"
                ],
                [
                    "Character",
                    " --> "
                ],
                [
                    "EndTag",
                    "textarea"
                ],
                [
                    "Character",
                    "x"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<style> <!</-- </style>x",
            "input": "<style> <!</-- </style>x",
            "output": [
                [
                    "StartTag",
                    "style",
                    {}
                ],
                [
                    "Character",
                    " <!</-- "
                ],
                [
                    "EndTag",
                    "style"
                ],
                [
                    "Character",
                    "x"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<p><xmp></xmp>",
            "input": "<p><xmp></xmp>",
            "output": [
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "xmp",
                    {}
                ],
                [
                    "EndTag",
                    "xmp"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<xmp> <!-- > --> </xmp>",
            "input": "<xmp> <!-- > --> </xmp>",
            "output": [
                [
                    "StartTag",
                    "xmp",
                    {}
                ],
                [
                    "Character",
                    " <!-- > --> "
                ],
                [
                    "EndTag",
                    "xmp"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<title>&amp;</title>",
            "input": "<title>&amp;</title>",
            "output": [
                [
                    "StartTag",
                    "title",
                    {}
                ],
                [
                    "Character",
                    "&"
                ],
                [
                    "EndTag",
                    "title"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<title><!--&amp;--></title>",
            "input": "<title><!--&amp;--></title>",
            "output": [
                [
                    "StartTag",
                    "title",
                    {}
                ],
                [
                    "Character",
                    "<!--&-->"
                ],
                [
                    "EndTag",
                    "title"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<title><!--</title>",
            "input": "<title><!--</title>",
            "output": [
                [
                    "StartTag",
                    "title",
                    {}
                ],
                [
                    "Character",
                    "<!--"
                ],
                [
                    "EndTag",
                    "title"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<noscript><!--</noscript>--></noscript>",
            "input": "<noscript><!--</noscript>--></noscript>",
            "output": [
                [
                    "StartTag",
                    "noscript",
                    {}
                ],
                [
                    "Character",
                    "<!--"
                ],
                [
                    "EndTag",
                    "noscript"
                ],
                [
                    "Character",
                    "-->"
                ],
                [
                    "EndTag",
                    "noscript"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<noscript><!--</noscript>--></noscript>",
            "input": "<noscript><!--</noscript>--></noscript>",
            "output": [
                [
                    "StartTag",
                    "noscript",
                    {}
                ],
                [
                    "Character",
                    "<!--"
                ],
                [
                    "EndTag",
                    "noscript"
                ],
                [
                    "Character",
                    "-->"
                ],
                [
                    "EndTag",
                    "noscript"
                ]
            ]
        }
    ]
}