[
    /* Test count: 66 */
    /* Test number: 1 */
    {
        "data": $DATA{ ,12}
            <nobr>X
        $DATA,
        "errors": [
            {"line": 0, "col": 6, "id": "HTML start tag “nobr” in a foreign namespace context."},
            {"line": 0, "col": 7, "id": "End of file seen and there were open elements."}
        ],
        "fragment": {"tag": "path", "ns": "svg"},
        "result": $DATA{ ,12}
            <nobr>
              "X"
        $DATA
    },
    /* Test number: 2 */
    {
        "data": $DATA{ ,12}
            <font color></font>X
        $DATA,
        "errors": [
            {"line": 0, "col": 12, "id": "HTML start tag “font” in a foreign namespace context."}
        ],
        "fragment": {"tag": "path", "ns": "svg"},
        "result": $DATA{ ,12}
            <font color="">
            "X"
        $DATA
    },
    /* Test number: 3 */
    {
        "data": $DATA{ ,12}
            <font></font>X
        $DATA,
        "fragment": {"tag": "path", "ns": "svg"},
        "result": $DATA{ ,12}
            <svg:font>
            "X"
        $DATA
    },
    /* Test number: 4 */
    {
        "data": $DATA{ ,12}
            <g></path>X
        $DATA,
        "errors": [
            {"line": 0, "col": 10, "id": "End tag “path” did not match the name of the current open element (“g”)."},
            {"line": 0, "col": 11, "id": "End of file seen and there were open elements."}
        ],
        "fragment": {"tag": "path", "ns": "svg"},
        "result": $DATA{ ,12}
            <svg:g>
              "X"
        $DATA
    },
    /* Test number: 5 */
    {
        "data": $DATA{ ,12}
            </path>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “path”."}
        ],
        "fragment": {"tag": "path", "ns": "svg"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 6 */
    {
        "data": $DATA{ ,12}
            </foreignObject>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “foreignobject”."}
        ],
        "fragment": {"tag": "foreignObject", "ns": "svg"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 7 */
    {
        "data": $DATA{ ,12}
            </desc>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “desc”."}
        ],
        "fragment": {"tag": "desc", "ns": "svg"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 8 */
    {
        "data": $DATA{ ,12}
            </title>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “title”."}
        ],
        "fragment": {"tag": "title", "ns": "svg"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 9 */
    {
        "data": $DATA{ ,12}
            </svg>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “svg”."}
        ],
        "fragment": {"tag": "svg", "ns": "svg"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 10 */
    {
        "data": $DATA{ ,12}
            </mfenced>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “mfenced”."}
        ],
        "fragment": {"tag": "mfenced", "ns": "math"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 11 */
    {
        "data": $DATA{ ,12}
            </malignmark>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “malignmark”."}
        ],
        "fragment": {"tag": "malignmark", "ns": "math"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 12 */
    {
        "data": $DATA{ ,12}
            </math>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “math”."}
        ],
        "fragment": {"tag": "math", "ns": "math"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 13 */
    {
        "data": $DATA{ ,12}
            </annotation-xml>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “annotation-xml”."}
        ],
        "fragment": {"tag": "annotation-xml", "ns": "math"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 14 */
    {
        "data": $DATA{ ,12}
            </mtext>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “mtext”."}
        ],
        "fragment": {"tag": "mtext", "ns": "math"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 15 */
    {
        "data": $DATA{ ,12}
            </mi>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “mi”."}
        ],
        "fragment": {"tag": "mi", "ns": "math"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 16 */
    {
        "data": $DATA{ ,12}
            </mo>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “mo”."}
        ],
        "fragment": {"tag": "mo", "ns": "math"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 17 */
    {
        "data": $DATA{ ,12}
            </mn>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “mn”."}
        ],
        "fragment": {"tag": "mn", "ns": "math"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 18 */
    {
        "data": $DATA{ ,12}
            </ms>X
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "Stray end tag “ms”."}
        ],
        "fragment": {"tag": "ms", "ns": "math"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 19 */
    {
        "data": $DATA{ ,12}
            <b></b><mglyph/><i></i><malignmark/><u></u><ms/>X
        $DATA,
        "errors": [
            {"line": 0, "col": 51, "id": "Self-closing syntax (“/>”) used on a non-void HTML element. Ignoring the slash and treating as a start tag."},
            {"line": 0, "col": 52, "id": "End of file seen and there were open elements."},
            {"line": 1, "col": 44, "id": "non-void-html-element-start-tag-with-trailing-solidus"}
        ],
        "fragment": {"tag": "ms", "ns": "math"},
        "result": $DATA{ ,12}
            <b>
            <math:mglyph>
            <i>
            <math:malignmark>
            <u>
            <ms>
              "X"
        $DATA
    },
    /* Test number: 20 */
    {
        "data": $DATA{ ,12}
            <malignmark></malignmark>
        $DATA,
        "fragment": {"tag": "ms", "ns": "math"},
        "result": $DATA{ ,12}
            <math:malignmark>
        $DATA
    },
    /* Test number: 21 */
    {
        "data": $DATA{ ,12}
            <div></div>
        $DATA,
        "fragment": {"tag": "ms", "ns": "math"},
        "result": $DATA{ ,12}
            <div>
        $DATA
    },
    /* Test number: 22 */
    {
        "data": $DATA{ ,12}
            <figure></figure>
        $DATA,
        "fragment": {"tag": "ms", "ns": "math"},
        "result": $DATA{ ,12}
            <figure>
        $DATA
    },
    /* Test number: 23 */
    {
        "data": $DATA{ ,12}
            <b></b><mglyph/><i></i><malignmark/><u></u><mn/>X
        $DATA,
        "errors": [
            {"line": 0, "col": 51, "id": "Self-closing syntax (“/>”) used on a non-void HTML element. Ignoring the slash and treating as a start tag."},
            {"line": 0, "col": 52, "id": "End of file seen and there were open elements."},
            {"line": 1, "col": 44, "id": "non-void-html-element-start-tag-with-trailing-solidus"}
        ],
        "fragment": {"tag": "mn", "ns": "math"},
        "result": $DATA{ ,12}
            <b>
            <math:mglyph>
            <i>
            <math:malignmark>
            <u>
            <mn>
              "X"
        $DATA
    },
    /* Test number: 24 */
    {
        "data": $DATA{ ,12}
            <malignmark></malignmark>
        $DATA,
        "fragment": {"tag": "mn", "ns": "math"},
        "result": $DATA{ ,12}
            <math:malignmark>
        $DATA
    },
    /* Test number: 25 */
    {
        "data": $DATA{ ,12}
            <div></div>
        $DATA,
        "fragment": {"tag": "mn", "ns": "math"},
        "result": $DATA{ ,12}
            <div>
        $DATA
    },
    /* Test number: 26 */
    {
        "data": $DATA{ ,12}
            <figure></figure>
        $DATA,
        "fragment": {"tag": "mn", "ns": "math"},
        "result": $DATA{ ,12}
            <figure>
        $DATA
    },
    /* Test number: 27 */
    {
        "data": $DATA{ ,12}
            <b></b><mglyph/><i></i><malignmark/><u></u><mo/>X
        $DATA,
        "errors": [
            {"line": 0, "col": 51, "id": "Self-closing syntax (“/>”) used on a non-void HTML element. Ignoring the slash and treating as a start tag."},
            {"line": 0, "col": 52, "id": "End of file seen and there were open elements."},
            {"line": 1, "col": 44, "id": "non-void-html-element-start-tag-with-trailing-solidus"}
        ],
        "fragment": {"tag": "mo", "ns": "math"},
        "result": $DATA{ ,12}
            <b>
            <math:mglyph>
            <i>
            <math:malignmark>
            <u>
            <mo>
              "X"
        $DATA
    },
    /* Test number: 28 */
    {
        "data": $DATA{ ,12}
            <malignmark></malignmark>
        $DATA,
        "fragment": {"tag": "mo", "ns": "math"},
        "result": $DATA{ ,12}
            <math:malignmark>
        $DATA
    },
    /* Test number: 29 */
    {
        "data": $DATA{ ,12}
            <div></div>
        $DATA,
        "fragment": {"tag": "mo", "ns": "math"},
        "result": $DATA{ ,12}
            <div>
        $DATA
    },
    /* Test number: 30 */
    {
        "data": $DATA{ ,12}
            <figure></figure>
        $DATA,
        "fragment": {"tag": "mo", "ns": "math"},
        "result": $DATA{ ,12}
            <figure>
        $DATA
    },
    /* Test number: 31 */
    {
        "data": $DATA{ ,12}
            <b></b><mglyph/><i></i><malignmark/><u></u><mi/>X
        $DATA,
        "errors": [
            {"line": 0, "col": 51, "id": "Self-closing syntax (“/>”) used on a non-void HTML element. Ignoring the slash and treating as a start tag."},
            {"line": 0, "col": 52, "id": "End of file seen and there were open elements."},
            {"line": 1, "col": 44, "id": "non-void-html-element-start-tag-with-trailing-solidus"}
        ],
        "fragment": {"tag": "mi", "ns": "math"},
        "result": $DATA{ ,12}
            <b>
            <math:mglyph>
            <i>
            <math:malignmark>
            <u>
            <mi>
              "X"
        $DATA
    },
    /* Test number: 32 */
    {
        "data": $DATA{ ,12}
            <malignmark></malignmark>
        $DATA,
        "fragment": {"tag": "mi", "ns": "math"},
        "result": $DATA{ ,12}
            <math:malignmark>
        $DATA
    },
    /* Test number: 33 */
    {
        "data": $DATA{ ,12}
            <div></div>
        $DATA,
        "fragment": {"tag": "mi", "ns": "math"},
        "result": $DATA{ ,12}
            <div>
        $DATA
    },
    /* Test number: 34 */
    {
        "data": $DATA{ ,12}
            <figure></figure>
        $DATA,
        "fragment": {"tag": "mi", "ns": "math"},
        "result": $DATA{ ,12}
            <figure>
        $DATA
    },
    /* Test number: 35 */
    {
        "data": $DATA{ ,12}
            <b></b><mglyph/><i></i><malignmark/><u></u><mtext/>X
        $DATA,
        "errors": [
            {"line": 0, "col": 51, "id": "Self-closing syntax (“/>”) used on a non-void HTML element. Ignoring the slash and treating as a start tag."},
            {"line": 0, "col": 52, "id": "End of file seen and there were open elements."},
            {"line": 1, "col": 44, "id": "non-void-html-element-start-tag-with-trailing-solidus"}
        ],
        "fragment": {"tag": "mtext", "ns": "math"},
        "result": $DATA{ ,12}
            <b>
            <math:mglyph>
            <i>
            <math:malignmark>
            <u>
            <mtext>
              "X"
        $DATA
    },
    /* Test number: 36 */
    {
        "data": $DATA{ ,12}
            <malignmark></malignmark>
        $DATA,
        "fragment": {"tag": "mtext", "ns": "math"},
        "result": $DATA{ ,12}
            <math:malignmark>
        $DATA
    },
    /* Test number: 37 */
    {
        "data": $DATA{ ,12}
            <div></div>
        $DATA,
        "fragment": {"tag": "mtext", "ns": "math"},
        "result": $DATA{ ,12}
            <div>
        $DATA
    },
    /* Test number: 38 */
    {
        "data": $DATA{ ,12}
            <figure></figure>
        $DATA,
        "fragment": {"tag": "mtext", "ns": "math"},
        "result": $DATA{ ,12}
            <figure>
        $DATA
    },
    /* Test number: 39 */
    {
        "data": $DATA{ ,12}
            <div></div>
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "HTML start tag “div” in a foreign namespace context."}
        ],
        "fragment": {"tag": "annotation-xml", "ns": "math"},
        "result": $DATA{ ,12}
            <div>
        $DATA
    },
    /* Test number: 40 */
    {
        "data": $DATA{ ,12}
            <figure></figure>
        $DATA,
        "fragment": {"tag": "annotation-xml", "ns": "math"},
        "result": $DATA{ ,12}
            <math:figure>
        $DATA
    },
    /* Test number: 41 */
    {
        "data": $DATA{ ,12}
            <div></div>
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "HTML start tag “div” in a foreign namespace context."}
        ],
        "fragment": {"tag": "math", "ns": "math"},
        "result": $DATA{ ,12}
            <div>
        $DATA
    },
    /* Test number: 42 */
    {
        "data": $DATA{ ,12}
            <figure></figure>
        $DATA,
        "fragment": {"tag": "math", "ns": "math"},
        "result": $DATA{ ,12}
            <math:figure>
        $DATA
    },
    /* Test number: 43 */
    {
        "data": $DATA{ ,12}
            <div></div>
        $DATA,
        "fragment": {"tag": "foreignObject", "ns": "svg"},
        "result": $DATA{ ,12}
            <div>
        $DATA
    },
    /* Test number: 44 */
    {
        "data": $DATA{ ,12}
            <figure></figure>
        $DATA,
        "fragment": {"tag": "foreignObject", "ns": "svg"},
        "result": $DATA{ ,12}
            <figure>
        $DATA
    },
    /* Test number: 45 */
    {
        "data": $DATA{ ,12}
            <div></div>
        $DATA,
        "fragment": {"tag": "title", "ns": "svg"},
        "result": $DATA{ ,12}
            <div>
        $DATA
    },
    /* Test number: 46 */
    {
        "data": $DATA{ ,12}
            <figure></figure>
        $DATA,
        "fragment": {"tag": "title", "ns": "svg"},
        "result": $DATA{ ,12}
            <figure>
        $DATA
    },
    /* Test number: 47 */
    {
        "data": $DATA{ ,12}
            <figure></figure>
        $DATA,
        "fragment": {"tag": "desc", "ns": "svg"},
        "result": $DATA{ ,12}
            <figure>
        $DATA
    },
    /* Test number: 48 */
    {
        "data": $DATA{ ,12}
            <div><h1>X</h1></div>
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "HTML start tag “div” in a foreign namespace context."}
        ],
        "fragment": {"tag": "svg", "ns": "svg"},
        "result": $DATA{ ,12}
            <div>
              <h1>
                "X"
        $DATA
    },
    /* Test number: 49 */
    {
        "data": $DATA{ ,12}
            <div></div>
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "HTML start tag “div” in a foreign namespace context."}
        ],
        "fragment": {"tag": "svg", "ns": "svg"},
        "result": $DATA{ ,12}
            <div>
        $DATA
    },
    /* Test number: 50 */
    {
        "data": $DATA{ ,12}
            <div></div>
        $DATA,
        "fragment": {"tag": "desc", "ns": "svg"},
        "result": $DATA{ ,12}
            <div>
        $DATA
    },
    /* Test number: 51 */
    {
        "data": $DATA{ ,12}
            <plaintext><foo>
        $DATA,
        "errors": [
            {"line": 1, "col": 16, "id": "expected-closing-tag-but-got-eof"}
        ],
        "fragment": {"tag": "desc", "ns": "svg"},
        "result": $DATA{ ,12}
            <plaintext>
              "<foo>"
        $DATA
    },
    /* Test number: 52 */
    {
        "data": $DATA{ ,12}
            <frameset>X
        $DATA,
        "errors": [
            {"line": 0, "col": 6, "id": "Stray start tag “frameset”."}
        ],
        "fragment": {"tag": "desc", "ns": "svg"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 53 */
    {
        "data": $DATA{ ,12}
            <head>X
        $DATA,
        "errors": [
            {"line": 0, "col": 6, "id": "Stray start tag “head”."}
        ],
        "fragment": {"tag": "desc", "ns": "svg"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 54 */
    {
        "data": $DATA{ ,12}
            <body>X
        $DATA,
        "errors": [
            {"line": 0, "col": 6, "id": "Stray start tag “body”."}
        ],
        "fragment": {"tag": "desc", "ns": "svg"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 55 */
    {
        "data": $DATA{ ,12}
            <html>X
        $DATA,
        "errors": [
            {"line": 0, "col": 6, "id": "Stray start tag “html”."}
        ],
        "fragment": {"tag": "desc", "ns": "svg"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 56 */
    {
        "data": $DATA{ ,12}
            <html class="foo">X
        $DATA,
        "errors": [
            {"line": 0, "col": 6, "id": "Stray start tag “html”."}
        ],
        "fragment": {"tag": "desc", "ns": "svg"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 57 */
    {
        "data": $DATA{ ,12}
            <body class="foo">X
        $DATA,
        "errors": [
            {"line": 0, "col": 6, "id": "Stray start tag “body”."}
        ],
        "fragment": {"tag": "desc", "ns": "svg"},
        "result": $DATA{ ,12}
            "X"
        $DATA
    },
    /* Test number: 58 */
    {
        "data": $DATA{ ,12}
            <svg><p>
        $DATA,
        "errors": [
            {"line": 0, "col": 8, "id": "HTML start tag “p” in a foreign namespace context."}
        ],
        "fragment": {"tag": "div", "ns": "html"},
        "result": $DATA{ ,12}
            <svg:svg>
            <p>
        $DATA
    },
    /* Test number: 59 */
    {
        "data": $DATA{ ,12}
            <p>
        $DATA,
        "errors": [
            {"line": 0, "col": 3, "id": "HTML start tag “p” in a foreign namespace context."}
        ],
        "fragment": {"tag": "svg", "ns": "svg"},
        "result": $DATA{ ,12}
            <p>
        $DATA
    },
    /* Test number: 60 */
    {
        "data": $DATA{ ,12}
            <svg></p><foo>
        $DATA,
        "errors": [
            {"line": 0, "col": 9, "id": "HTML end tag “p” in a foreign namespace context."},
            {"line": 1, "col": 6, "id": "Unexpected </p> from in body insertion mode"},
            {"line": 1, "col": 15, "id": "Unexpected EOF"}
        ],
        "fragment": {"tag": "div", "ns": "html"},
        "result": $DATA{ ,12}
            <svg:svg>
            <p>
            <foo>
        $DATA
    },
    /* Test number: 61 */
    {
        "data": $DATA{ ,12}
            <svg></br><foo>
        $DATA,
        "errors": [
            {"line": 0, "col": 10, "id": "HTML end tag “br” in a foreign namespace context."},
            {"line": 1, "col": 6, "id": "Unexpected </br> from in body insertion mode"},
            {"line": 1, "col": 16, "id": "Unexpected EOF"}
        ],
        "fragment": {"tag": "div", "ns": "html"},
        "result": $DATA{ ,12}
            <svg:svg>
            <br>
            <foo>
        $DATA
    },
    /* Test number: 62 */
    {
        "data": $DATA{ ,12}
            </p><foo>
        $DATA,
        "errors": [
            {"line": 0, "col": 4, "id": "HTML end tag “p” in a foreign namespace context."},
            {"line": 1, "col": 1, "id": "Unexpected </p> from in body insertion mode"},
            {"line": 1, "col": 10, "id": "Unexpected EOF"}
        ],
        "fragment": {"tag": "svg", "ns": "svg"},
        "result": $DATA{ ,12}
            <p>
            <svg:foo>
        $DATA
    },
    /* Test number: 63 */
    {
        "data": $DATA{ ,12}
            </br><foo>
        $DATA,
        "errors": [
            {"line": 0, "col": 5, "id": "HTML end tag “br” in a foreign namespace context."},
            {"line": 1, "col": 1, "id": "Unexpected </br> from in body insertion mode"},
            {"line": 1, "col": 11, "id": "Unexpected EOF"}
        ],
        "fragment": {"tag": "svg", "ns": "svg"},
        "result": $DATA{ ,12}
            <br>
            <svg:foo>
        $DATA
    },
    /* Test number: 64 */
    {
        "data": $DATA{ ,12}
            <body><foo>
        $DATA,
        "errors": [
            {"line": 0, "col": 6, "id": "HTML start tag “body” in a foreign namespace context."},
            {"line": 1, "col": 1, "id": "Unexpected <body> from in body insertion mode"},
            {"line": 1, "col": 12, "id": "Unexpected EOF"}
        ],
        "fragment": {"tag": "svg", "ns": "svg"},
        "result": $DATA{ ,12}
            <svg:foo>
        $DATA
    },
    /* Test number: 65 */
    {
        "data": $DATA{ ,12}
            <p><foo>
        $DATA,
        "errors": [
            {"line": 0, "col": 3, "id": "HTML start tag “p” in a foreign namespace context."},
            {"line": 1, "col": 9, "id": "Unexpected EOF"}
        ],
        "fragment": {"tag": "svg", "ns": "svg"},
        "result": $DATA{ ,12}
            <p>
              <foo>
        $DATA
    },
    /* Test number: 66 */
    {
        "data": $DATA{ ,12}
            <p></p><foo>
        $DATA,
        "errors": [
            {"line": 0, "col": 3, "id": "HTML start tag “p” in a foreign namespace context."},
            {"line": 1, "col": 13, "id": "Unexpected EOF"}
        ],
        "fragment": {"tag": "svg", "ns": "svg"},
        "result": $DATA{ ,12}
            <p>
            <svg:foo>
        $DATA
    },
]