{
    "tests": [
        {
            "fragmentContext": null,
            "description": "<p><font size=4><font color=red><font size=4><font size=4><font size=4><font size=4><font size=4><font color=red><p>X",
            "input": "<p><font size=4><font color=red><font size=4><font size=4><font size=4><font size=4><font size=4><font color=red><p>X",
            "output": [
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "color": "red"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "color": "red"
                    }
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "Character",
                    "X"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<p><font size=4><font size=4><font size=4><font size=4><p>X",
            "input": "<p><font size=4><font size=4><font size=4><font size=4><p>X",
            "output": [
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "Character",
                    "X"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<p><font size=4><font size=4><font size=4><font size=\"5\"><font size=4><p>X",
            "input": "<p><font size=4><font size=4><font size=4><font size=\"5\"><font size=4><p>X",
            "output": [
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "5"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "Character",
                    "X"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<p><font size=4 id=a><font size=4 id=b><font size=4><font size=4><p>X",
            "input": "<p><font size=4 id=a><font size=4 id=b><font size=4><font size=4><p>X",
            "output": [
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4",
                        "id": "a"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4",
                        "id": "b"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "font",
                    {
                        "size": "4"
                    }
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "Character",
                    "X"
                ]
            ]
        },
        {
            "fragmentContext": null,
            "description": "<p><b id=a><b id=a><b id=a><b><object><b id=a><b id=a>X</object><p>Y",
            "input": "<p><b id=a><b id=a><b id=a><b><object><b id=a><b id=a>X</object><p>Y",
            "output": [
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "StartTag",
                    "b",
                    {
                        "id": "a"
                    }
                ],
                [
                    "StartTag",
                    "b",
                    {
                        "id": "a"
                    }
                ],
                [
                    "StartTag",
                    "b",
                    {
                        "id": "a"
                    }
                ],
                [
                    "StartTag",
                    "b",
                    {}
                ],
                [
                    "StartTag",
                    "object",
                    {}
                ],
                [
                    "StartTag",
                    "b",
                    {
                        "id": "a"
                    }
                ],
                [
                    "StartTag",
                    "b",
                    {
                        "id": "a"
                    }
                ],
                [
                    "Character",
                    "X"
                ],
                [
                    "EndTag",
                    "object"
                ],
                [
                    "StartTag",
                    "p",
                    {}
                ],
                [
                    "Character",
                    "Y"
                ]
            ]
        }
    ]
}