[
    /* Test count: 63 */
    /* Test number: 1 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html>Test
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                "Test"
        $DATA
    },
    /* Test number: 2 */
    {
        "data": $DATA{ ,12}
            <textarea>test</div>test
        $DATA,
        "errors": [
            {"line": 1, "col": 10, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 24, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <textarea>
                  "test</div>test"
        $DATA
    },
    /* Test number: 3 */
    {
        "data": $DATA{ ,12}
            <table><td>
        $DATA,
        "errors": [
            {"line": 1, "col": 7, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 11, "id": "unexpected-cell-in-table-body"},
            {"line": 1, "col": 11, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <tr>
                      <td>
        $DATA
    },
    /* Test number: 4 */
    {
        "data": $DATA{ ,12}
            <table><td>test</tbody></table>
        $DATA,
        "errors": [
            {"line": 1, "col": 7, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 11, "id": "unexpected-cell-in-table-body"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <tr>
                      <td>
                        "test"
        $DATA
    },
    /* Test number: 5 */
    {
        "data": $DATA{ ,12}
            <frame>test
        $DATA,
        "errors": [
            {"line": 1, "col": 7, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 7, "id": "unexpected-start-tag-ignored"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "test"
        $DATA
    },
    /* Test number: 6 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><frameset>test
        $DATA,
        "errors": [
            {"line": 1, "col": 29, "id": "unexpected-char-in-frameset"},
            {"line": 1, "col": 29, "id": "unexpected-char-in-frameset"},
            {"line": 1, "col": 29, "id": "unexpected-char-in-frameset"},
            {"line": 1, "col": 29, "id": "unexpected-char-in-frameset"},
            {"line": 1, "col": 29, "id": "eof-in-frameset"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 7 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><frameset> te st
        $DATA,
        "errors": [
            {"line": 1, "col": 29, "id": "unexpected-char-in-frameset"},
            {"line": 1, "col": 29, "id": "unexpected-char-in-frameset"},
            {"line": 1, "col": 29, "id": "unexpected-char-in-frameset"},
            {"line": 1, "col": 29, "id": "unexpected-char-in-frameset"},
            {"line": 1, "col": 29, "id": "eof-in-frameset"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <frameset>
                "  "
        $DATA
    },
    /* Test number: 8 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><frameset></frameset> te st
        $DATA,
        "errors": [
            {"line": 1, "col": 29, "id": "unexpected-char-after-frameset"},
            {"line": 1, "col": 29, "id": "unexpected-char-after-frameset"},
            {"line": 1, "col": 29, "id": "unexpected-char-after-frameset"},
            {"line": 1, "col": 29, "id": "unexpected-char-after-frameset"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <frameset>
              "  "
        $DATA
    },
    /* Test number: 9 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><frameset><!DOCTYPE html>
        $DATA,
        "errors": [
            {"line": 1, "col": 40, "id": "unexpected-doctype"},
            {"line": 1, "col": 40, "id": "eof-in-frameset"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 10 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><font><p><b>test</font>
        $DATA,
        "errors": [
            {"line": 1, "col": 38, "id": "adoption-agency-1.3"},
            {"line": 1, "col": 38, "id": "adoption-agency-1.3"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <font>
                <p>
                  <font>
                    <b>
                      "test"
        $DATA
    },
    /* Test number: 11 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><dt><div><dd>
        $DATA,
        "errors": [
            {"line": 1, "col": 28, "id": "end-tag-too-early"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <dt>
                  <div>
                <dd>
        $DATA
    },
    /* Test number: 12 */
    {
        "data": $DATA{ ,12}
            <script></x
        $DATA,
        "errors": [
            {"line": 1, "col": 8, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 11, "id": "expected-named-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <script>
                  "</x"
              <body>
        $DATA
    },
    /* Test number: 13 */
    {
        "data": $DATA{ ,12}
            <table><plaintext><td>
        $DATA,
        "errors": [
            {"line": 1, "col": 7, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 18, "id": "unexpected-start-tag-implies-table-voodoo"},
            {"line": 1, "col": 22, "id": "foster-parenting-character-in-table"},
            {"line": 1, "col": 22, "id": "foster-parenting-character-in-table"},
            {"line": 1, "col": 22, "id": "foster-parenting-character-in-table"},
            {"line": 1, "col": 22, "id": "foster-parenting-character-in-table"},
            {"line": 1, "col": 22, "id": "eof-in-table"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <plaintext>
                  "<td>"
                <table>
        $DATA
    },
    /* Test number: 14 */
    {
        "data": $DATA{ ,12}
            <plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 1, "col": 11, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 23, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
        $DATA
    },
    /* Test number: 15 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><table><tr>TEST
        $DATA,
        "errors": [
            {"line": 1, "col": 30, "id": "foster-parenting-character-in-table"},
            {"line": 1, "col": 30, "id": "foster-parenting-character-in-table"},
            {"line": 1, "col": 30, "id": "foster-parenting-character-in-table"},
            {"line": 1, "col": 30, "id": "foster-parenting-character-in-table"},
            {"line": 1, "col": 30, "id": "eof-in-table"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                "TEST"
                <table>
                  <tbody>
                    <tr>
        $DATA
    },
    /* Test number: 16 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><body t1=1><body t2=2><body t3=3 t4=4>
        $DATA,
        "errors": [
            {"line": 1, "col": 37, "id": "unexpected-start-tag"},
            {"line": 1, "col": 53, "id": "unexpected-start-tag"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body t1="1" t2="2" t3="3" t4="4">
        $DATA
    },
    /* Test number: 17 */
    {
        "data": $DATA{ ,12}
            </b test
        $DATA,
        "errors": [
            {"line": 1, "col": 8, "id": "eof-in-attribute-name"},
            {"line": 1, "col": 8, "id": "expected-doctype-but-got-eof"},
            {"line": 1, "col": 9, "id": "eof-in-tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 18 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html></b test<b &=&amp>X
        $DATA,
        "errors": [
            {"line": 1, "col": 24, "id": "invalid-character-in-attribute-name"},
            {"line": 1, "col": 32, "id": "named-entity-without-semicolon"},
            {"line": 1, "col": 33, "id": "attributes-in-end-tag"},
            {"line": 1, "col": 33, "id": "unexpected-end-tag-before-html"},
            {"line": 1, "col": 24, "id": "unexpected-character-in-attribute-name"},
            {"line": 1, "col": 33, "id": "missing-semicolon-after-character-reference"},
            {"line": 1, "col": 33, "id": "end-tag-with-attributes"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                "X"
        $DATA
    },
    /* Test number: 19 */
    {
        "data": $DATA{ ,12}
            <!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt
        $DATA,
        "errors": [
            {"line": 1, "col": 9, "id": "need-space-after-doctype"},
            {"line": 1, "col": 54, "id": "expected-named-closing-tag-but-got-eof"},
            {"line": 1, "col": 10, "id": "missing-whitespace-before-doctype-name"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
                <script type="text/x-foobar;baz">
                  "X</SCRipt"
              <body>
        $DATA
    },
    /* Test number: 20 */
    {
        "data": $DATA{ ,12}
            &
        $DATA,
        "errors": [
            {"line": 1, "col": 1, "id": "expected-doctype-but-got-chars"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "&"
        $DATA
    },
    /* Test number: 21 */
    {
        "data": $DATA{ ,12}
            &#
        $DATA,
        "errors": [
            {"line": 1, "col": 2, "id": "expected-numeric-entity"},
            {"line": 1, "col": 2, "id": "expected-doctype-but-got-chars"},
            {"line": 1, "col": 3, "id": "absence-of-digits-in-numeric-character-reference"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "&#"
        $DATA
    },
    /* Test number: 22 */
    {
        "data": $DATA{ ,12}
            &#X
        $DATA,
        "errors": [
            {"line": 1, "col": 3, "id": "expected-numeric-entity"},
            {"line": 1, "col": 3, "id": "expected-doctype-but-got-chars"},
            {"line": 1, "col": 4, "id": "absence-of-digits-in-numeric-character-reference"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "&#X"
        $DATA
    },
    /* Test number: 23 */
    {
        "data": $DATA{ ,12}
            &#x
        $DATA,
        "errors": [
            {"line": 1, "col": 3, "id": "expected-numeric-entity"},
            {"line": 1, "col": 3, "id": "expected-doctype-but-got-chars"},
            {"line": 1, "col": 4, "id": "absence-of-digits-in-numeric-character-reference"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "&#x"
        $DATA
    },
    /* Test number: 24 */
    {
        "data": $DATA{ ,12}
            &#45
        $DATA,
        "errors": [
            {"line": 1, "col": 4, "id": "numeric-entity-without-semicolon"},
            {"line": 1, "col": 4, "id": "expected-doctype-but-got-chars"},
            {"line": 1, "col": 5, "id": "missing-semicolon-after-character-reference"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "-"
        $DATA
    },
    /* Test number: 25 */
    {
        "data": $DATA{ ,12}
            &x-test
        $DATA,
        "errors": [
            {"line": 1, "col": 2, "id": "expected-doctype-but-got-chars"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "&x-test"
        $DATA
    },
    /* Test number: 26 */
    {
        "data": $DATA{ ,12}
            <!doctypehtml><p><li>
        $DATA,
        "errors": [
            {"line": 1, "col": 9, "id": "need-space-after-doctype"},
            {"line": 1, "col": 10, "id": "missing-whitespace-before-doctype-name"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <p>
                <li>
        $DATA
    },
    /* Test number: 27 */
    {
        "data": $DATA{ ,12}
            <!doctypehtml><p><dt>
        $DATA,
        "errors": [
            {"line": 1, "col": 9, "id": "need-space-after-doctype"},
            {"line": 1, "col": 10, "id": "missing-whitespace-before-doctype-name"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <p>
                <dt>
        $DATA
    },
    /* Test number: 28 */
    {
        "data": $DATA{ ,12}
            <!doctypehtml><p><dd>
        $DATA,
        "errors": [
            {"line": 1, "col": 9, "id": "need-space-after-doctype"},
            {"line": 1, "col": 10, "id": "missing-whitespace-before-doctype-name"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <p>
                <dd>
        $DATA
    },
    /* Test number: 29 */
    {
        "data": $DATA{ ,12}
            <!doctypehtml><p><form>
        $DATA,
        "errors": [
            {"line": 1, "col": 9, "id": "need-space-after-doctype"},
            {"line": 1, "col": 23, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 10, "id": "missing-whitespace-before-doctype-name"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <p>
                <form>
        $DATA
    },
    /* Test number: 30 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><p></P>X
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <p>
                "X"
        $DATA
    },
    /* Test number: 31 */
    {
        "data": $DATA{ ,12}
            &AMP
        $DATA,
        "errors": [
            {"line": 1, "col": 4, "id": "named-entity-without-semicolon"},
            {"line": 1, "col": 4, "id": "expected-doctype-but-got-chars"},
            {"line": 1, "col": 5, "id": "missing-semicolon-after-character-reference"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "&"
        $DATA
    },
    /* Test number: 32 */
    {
        "data": $DATA{ ,12}
            &AMp;
        $DATA,
        "errors": [
            {"line": 1, "col": 3, "id": "expected-named-entity"},
            {"line": 1, "col": 3, "id": "expected-doctype-but-got-chars"},
            {"line": 1, "col": 5, "id": "unknown-named-character-reference"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "&AMp;"
        $DATA
    },
    /* Test number: 33 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><html><head></head><body><thisISasillyTESTelementNameToMakeSureCrazyTagNamesArePARSEDcorrectLY>
        $DATA,
        "errors": [
            {"line": 1, "col": 110, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <thisisasillytestelementnametomakesurecrazytagnamesareparsedcorrectly>
        $DATA
    },
    /* Test number: 34 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html>X</body>X
        $DATA,
        "errors": [
            {"line": 1, "col": 24, "id": "unexpected-char-after-body"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                "XX"
        $DATA
    },
    /* Test number: 35 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><!-- X
        $DATA,
        "errors": [
            {"line": 1, "col": 21, "id": "eof-in-comment"},
            {"line": 1, "col": 22, "id": "eof-in-comment"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <!--  X -->
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 36 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><table><caption>test TEST</caption><td>test
        $DATA,
        "errors": [
            {"line": 1, "col": 54, "id": "unexpected-cell-in-table-body"},
            {"line": 1, "col": 58, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <table>
                  <caption>
                    "test TEST"
                  <tbody>
                    <tr>
                      <td>
                        "test"
        $DATA
    },
    /* Test number: 37 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><select><option><optgroup>
        $DATA,
        "errors": [
            {"line": 1, "col": 41, "id": "eof-in-select"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <select>
                  <option>
                  <optgroup>
        $DATA
    },
    /* Test number: 38 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><select><optgroup><option></optgroup><option><select><option>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "1:61: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, select, option."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <select>
                  <optgroup>
                    <option>
                  <option>
                <option>
        $DATA
    },
    /* Test number: 39 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><select><optgroup><option><optgroup>
        $DATA,
        "errors": [
            {"line": 1, "col": 51, "id": "eof-in-select"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <select>
                  <optgroup>
                    <option>
                  <optgroup>
        $DATA
    },
    /* Test number: 40 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><datalist><option>foo</datalist>bar
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <datalist>
                  <option>
                    "foo"
                "bar"
        $DATA
    },
    /* Test number: 41 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><font><input><input></font>
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <font>
                  <input>
                  <input>
        $DATA
    },
    /* Test number: 42 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><!-- XXX - XXX -->
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <!--  XXX - XXX  -->
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 43 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><!-- XXX - XXX
        $DATA,
        "errors": [
            {"line": 1, "col": 29, "id": "eof-in-comment"},
            {"line": 1, "col": 30, "id": "eof-in-comment"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <!--  XXX - XXX -->
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 44 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><!-- XXX - XXX - XXX -->
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <!--  XXX - XXX - XXX  -->
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 45 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html> <!DOCTYPE html>
        $DATA,
        "errors": [
            {"line": 1, "col": 31, "id": "Unexpected DOCTYPE. Ignored."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 46 */
    {
        "data": $DATA{ ,12}
            test
            test
        $DATA,
        "errors": [
            {"line": 2, "col": 4, "id": "expected-doctype-but-got-chars"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "test
            test"
        $DATA
    },
    /* Test number: 47 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><body><title>test</body></title>
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <title>
                  "test</body>"
        $DATA
    },
    /* Test number: 48 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><body><title>X</title><meta name=z><link rel=foo><style>
            x { content:"</style" } </style>
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <title>
                  "X"
                <meta name="z">
                <link rel="foo">
                <style>
                  "
            x { content:"</style" } "
        $DATA
    },
    /* Test number: 49 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><select><optgroup></optgroup></select>
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <select>
                  <optgroup>
        $DATA
    },
    /* Test number: 50 */
    {
        "data": $DATA{ ,12}
             
             
        $DATA,
        "errors": [
            {"line": 2, "col": 1, "id": "expected-doctype-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 51 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html>  <html>
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 52 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><script>
            </script>  <title>x</title>  </head>
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
                <script>
                  "
            "
                "  "
                <title>
                  "x"
                "  "
              <body>
        $DATA
    },
    /* Test number: 53 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><html><body><html id=x>
        $DATA,
        "errors": [
            {"line": 1, "col": 38, "id": "non-html-root"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html id="x">
              <head>
              <body>
        $DATA
    },
    /* Test number: 54 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html>X</body><html id="x">
        $DATA,
        "errors": [
            {"line": 1, "col": 36, "id": "non-html-root"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html id="x">
              <head>
              <body>
                "X"
        $DATA
    },
    /* Test number: 55 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><head><html id=x>
        $DATA,
        "errors": [
            {"line": 1, "col": 32, "id": "non-html-root"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html id="x">
              <head>
              <body>
        $DATA
    },
    /* Test number: 56 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html>X</html>X
        $DATA,
        "errors": [
            {"line": 1, "col": 24, "id": "expected-eof-but-got-char"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                "XX"
        $DATA
    },
    /* Test number: 57 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html>X</html> 
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                "X "
        $DATA
    },
    /* Test number: 58 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html>X</html><p>X
        $DATA,
        "errors": [
            {"line": 1, "col": 26, "id": "expected-eof-but-got-start-tag"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                "X"
                <p>
                  "X"
        $DATA
    },
    /* Test number: 59 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html>X<p/x/y/z>
        $DATA,
        "errors": [
            {"line": 1, "col": 19, "id": "unexpected-character-after-solidus-in-tag"},
            {"line": 1, "col": 21, "id": "unexpected-character-after-solidus-in-tag"},
            {"line": 1, "col": 23, "id": "unexpected-character-after-solidus-in-tag"},
            {"line": 1, "col": 20, "id": "unexpected-solidus-in-tag"},
            {"line": 1, "col": 22, "id": "unexpected-solidus-in-tag"},
            {"line": 1, "col": 24, "id": "unexpected-solidus-in-tag"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                "X"
                <p x="" y="" z="">
        $DATA
    },
    /* Test number: 60 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><!--x--
        $DATA,
        "errors": [
            {"line": 1, "col": 22, "id": "eof-in-comment-double-dash"},
            {"line": 1, "col": 23, "id": "eof-in-comment"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <!-- x -->
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 61 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><table><tr><td></p></table>
        $DATA,
        "errors": [
            {"line": 1, "col": 34, "id": "unexpected-end-tag"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <tr>
                      <td>
                        <p>
        $DATA
    },
    /* Test number: 62 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE <!DOCTYPE HTML>><!--<!--x-->-->
        $DATA,
        "errors": [
            {"line": 1, "col": 20, "id": "expected-space-or-right-bracket-in-doctype"},
            {"line": 1, "col": 25, "id": "unknown-doctype"},
            {"line": 1, "col": 35, "id": "unexpected-char-in-comment"},
            {"line": 1, "col": 21, "id": "invalid-character-sequence-after-doctype-name"},
            {"line": 1, "col": 35, "id": "nested-comment"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE <!doctype>
            <html>
              <head>
              <body>
                ">"
                <!-- <!--x -->
                "-->"
        $DATA
    },
    /* Test number: 63 */
    {
        "data": $DATA{ ,12}
            <!doctype html><div><form></form><div></div></div>
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <div>
                  <form>
                  <div>
        $DATA
    },
]