[
    /* Test count: 49 */
    /* Test number: 1 */
    {
        "data": $DATA{ ,12}
            <svg><![CDATA[foo
            bar]]>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 2, "col": 6, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  "foo
            bar"
        $DATA
    },
    /* Test number: 2 */
    {
        "data": $DATA{ ,12}
            <svg><![CDATA[foo
            bar]]>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 2, "col": 6, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  "foo
            bar"
        $DATA
    },
    /* Test number: 3 */
    {
        "data": $DATA{ ,12}
            <svg><![CDATA[foo
            bar]]>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 2, "col": 6, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  "foo
            bar"
        $DATA
    },
    /* Test number: 4 */
    {
        "data": $DATA{ ,12}
            <script>a='\0'</script>
        $DATA,
        "errors": [
            {"line": 1, "col": 8, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 12, "id": "invalid-codepoint"},
            {"line": 1, "col": 12, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script>
                  "a='�'"
              <body>
        $DATA
    },
    /* Test number: 5 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--\0</script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 25, "id": "invalid-codepoint"},
            {"line": 1, "col": 25, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--�"
              <body>
        $DATA
    },
    /* Test number: 6 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--foo\0</script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 28, "id": "invalid-codepoint"},
            {"line": 1, "col": 28, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--foo�"
              <body>
        $DATA
    },
    /* Test number: 7 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!-- foo-\0</script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 30, "id": "invalid-codepoint"},
            {"line": 1, "col": 30, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!-- foo-�"
              <body>
        $DATA
    },
    /* Test number: 8 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!-- foo--\0</script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 31, "id": "invalid-codepoint"},
            {"line": 1, "col": 31, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!-- foo--�"
              <body>
        $DATA
    },
    /* Test number: 9 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!-- foo-
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 29, "id": "expected-script-data-but-got-eof"},
            {"line": 1, "col": 29, "id": "expected-named-closing-tag-but-got-eof"},
            {"line": 1, "col": 30, "id": "eof-in-script-html-comment-like-text"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!-- foo-"
              <body>
        $DATA
    },
    /* Test number: 10 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!-- foo-<</script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!-- foo-<"
              <body>
        $DATA
    },
    /* Test number: 11 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!-- foo-<S
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 31, "id": "expected-script-data-but-got-eof"},
            {"line": 1, "col": 31, "id": "expected-named-closing-tag-but-got-eof"},
            {"line": 1, "col": 32, "id": "eof-in-script-html-comment-like-text"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!-- foo-<S"
              <body>
        $DATA
    },
    /* Test number: 12 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!-- foo-</SCRIPT>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!-- foo-"
              <body>
        $DATA
    },
    /* Test number: 13 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--<p></script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--<p>"
              <body>
        $DATA
    },
    /* Test number: 14 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--<script></script></script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--<script></script>"
              <body>
        $DATA
    },
    /* Test number: 15 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--<script>\0</script></script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 33, "id": "invalid-codepoint"},
            {"line": 1, "col": 33, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--<script>�</script>"
              <body>
        $DATA
    },
    /* Test number: 16 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--<script>-\0</script></script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 34, "id": "invalid-codepoint"},
            {"line": 1, "col": 34, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--<script>-�</script>"
              <body>
        $DATA
    },
    /* Test number: 17 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--<script>--\0</script></script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 35, "id": "invalid-codepoint"},
            {"line": 1, "col": 35, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--<script>--�</script>"
              <body>
        $DATA
    },
    /* Test number: 18 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--<script>---</script></script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--<script>---</script>"
              <body>
        $DATA
    },
    /* Test number: 19 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--<script></scrip></SCRIPT></script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--<script></scrip></SCRIPT>"
              <body>
        $DATA
    },
    /* Test number: 20 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--<script></scrip </SCRIPT></script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--<script></scrip </SCRIPT>"
              <body>
        $DATA
    },
    /* Test number: 21 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--<script></scrip/</SCRIPT></script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--<script></scrip/</SCRIPT>"
              <body>
        $DATA
    },
    /* Test number: 22 */
    {
        "data": $DATA{ ,12}
            <script type="data"></scrip/></script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "</scrip/>"
              <body>
        $DATA
    },
    /* Test number: 23 */
    {
        "data": $DATA{ ,12}
            <script type="data"></scrip ></script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "</scrip >"
              <body>
        $DATA
    },
    /* Test number: 24 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--</scrip></script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--</scrip>"
              <body>
        $DATA
    },
    /* Test number: 25 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--</scrip </script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--</scrip "
              <body>
        $DATA
    },
    /* Test number: 26 */
    {
        "data": $DATA{ ,12}
            <script type="data"><!--</scrip/</script>
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script type="data">
                  "<!--</scrip/"
              <body>
        $DATA
    },
    /* Test number: 27 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><!DOCTYPE html>
        $DATA,
        "errors": [
            {"line": 1, "col": 30, "id": "unexpected-doctype"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 28 */
    {
        "data": $DATA{ ,12}
            <html><!DOCTYPE html>
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 21, "id": "unexpected-doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 29 */
    {
        "data": $DATA{ ,12}
            <html><head><!DOCTYPE html></head>
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 27, "id": "unexpected-doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 30 */
    {
        "data": $DATA{ ,12}
            <html><head></head><!DOCTYPE html>
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 34, "id": "unexpected-doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 31 */
    {
        "data": $DATA{ ,12}
            <body></body><!DOCTYPE html>
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 28, "id": "unexpected-doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 32 */
    {
        "data": $DATA{ ,12}
            <table><!DOCTYPE html></table>
        $DATA,
        "errors": [
            {"line": 1, "col": 7, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 22, "id": "unexpected-doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
        $DATA
    },
    /* Test number: 33 */
    {
        "data": $DATA{ ,12}
            <select><!DOCTYPE html></select>
        $DATA,
        "errors": [
            {"line": 1, "col": 8, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 23, "id": "unexpected-doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <select>
        $DATA
    },
    /* Test number: 34 */
    {
        "data": $DATA{ ,12}
            <table><colgroup><!DOCTYPE html></colgroup></table>
        $DATA,
        "errors": [
            {"line": 1, "col": 7, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 32, "id": "unexpected-doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <colgroup>
        $DATA
    },
    /* Test number: 35 */
    {
        "data": $DATA{ ,12}
            <table><colgroup><!--test--></colgroup></table>
        $DATA,
        "errors": [
            {"line": 1, "col": 7, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <colgroup>
                    <!-- test -->
        $DATA
    },
    /* Test number: 36 */
    {
        "data": $DATA{ ,12}
            <table><colgroup><html></colgroup></table>
        $DATA,
        "errors": [
            {"line": 1, "col": 7, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 23, "id": "non-html-root"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <colgroup>
        $DATA
    },
    /* Test number: 37 */
    {
        "data": $DATA{ ,12}
            <table><colgroup> foo</colgroup></table>
        $DATA,
        "errors": [
            {"line": 1, "col": 7, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 32, "id": "foster-parenting-character-in-table"},
            {"line": 1, "col": 32, "id": "foster-parenting-character-in-table"},
            {"line": 1, "col": 32, "id": "foster-parenting-character-in-table"},
            {"line": 1, "col": 32, "id": "unexpected-end-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "foo"
                <table>
                  <colgroup>
                    " "
        $DATA
    },
    /* Test number: 38 */
    {
        "data": $DATA{ ,12}
            <select><!--test--></select>
        $DATA,
        "errors": [
            {"line": 1, "col": 8, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <select>
                  <!-- test -->
        $DATA
    },
    /* Test number: 39 */
    {
        "data": $DATA{ ,12}
            <select><html></select>
        $DATA,
        "errors": [
            {"line": 1, "col": 8, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 14, "id": "non-html-root"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <select>
        $DATA
    },
    /* Test number: 40 */
    {
        "data": $DATA{ ,12}
            <frameset><html></frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 10, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 16, "id": "non-html-root"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 41 */
    {
        "data": $DATA{ ,12}
            <frameset></frameset><html>
        $DATA,
        "errors": [
            {"line": 1, "col": 10, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 27, "id": "non-html-root"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 42 */
    {
        "data": $DATA{ ,12}
            <frameset></frameset><!DOCTYPE html>
        $DATA,
        "errors": [
            {"line": 1, "col": 10, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 36, "id": "unexpected-doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 43 */
    {
        "data": $DATA{ ,12}
            <html><body></body></html><!DOCTYPE html>
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 41, "id": "unexpected-doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 44 */
    {
        "data": $DATA{ ,12}
            <svg><!DOCTYPE html></svg>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 20, "id": "unexpected-doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
        $DATA
    },
    /* Test number: 45 */
    {
        "data": $DATA{ ,12}
            <svg><font></font></svg>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  <svg:font>
        $DATA
    },
    /* Test number: 46 */
    {
        "data": $DATA{ ,12}
            <svg><font id=foo></font></svg>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  <svg:font id="foo">
        $DATA
    },
    /* Test number: 47 */
    {
        "data": $DATA{ ,12}
            <svg><font size=4></font></svg>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 18, "id": "unexpected-html-element-in-foreign-content"},
            {"line": 1, "col": 31, "id": "unexpected-end-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                <font size="4">
        $DATA
    },
    /* Test number: 48 */
    {
        "data": $DATA{ ,12}
            <svg><font color=red></font></svg>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 21, "id": "unexpected-html-element-in-foreign-content"},
            {"line": 1, "col": 34, "id": "unexpected-end-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                <font color="red">
        $DATA
    },
    /* Test number: 49 */
    {
        "data": $DATA{ ,12}
            <svg><font font=sans></font></svg>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  <svg:font font="sans">
        $DATA
    },
]