[
    /* Test count: 112 */
    /* Test number: 1 */
    {
        "data": $DATA{ ,12}
            <body><template>Hello</template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    "Hello"
        $DATA
    },
    /* Test number: 2 */
    {
        "data": $DATA{ ,12}
            <template>Hello</template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    "Hello"
              <body>
        $DATA
    },
    /* Test number: 3 */
    {
        "data": $DATA{ ,12}
            <template></template><div></div>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
              <body>
                <div>
        $DATA
    },
    /* Test number: 4 */
    {
        "data": $DATA{ ,12}
            <html><template>Hello</template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    "Hello"
              <body>
        $DATA
    },
    /* Test number: 5 */
    {
        "data": $DATA{ ,12}
            <head><template><div></div></template></head>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <div>
              <body>
        $DATA
    },
    /* Test number: 6 */
    {
        "data": $DATA{ ,12}
            <div><template><div><span></template><b>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,6) missing DOCTYPE"},
            {"line": 0, "col": 0, "id": "* (1,38) mismatched template end tag"},
            {"line": 0, "col": 0, "id": "* (1,41) unexpected end of file"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <div>
                  <template>
                    #document-fragment
                      <div>
                        <span>
                  <b>
        $DATA
    },
    /* Test number: 7 */
    {
        "data": $DATA{ ,12}
            <div><template></div>Hello
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,6) missing DOCTYPE"},
            {"line": 0, "col": 0, "id": "* (1,22) unexpected token in template"},
            {"line": 0, "col": 0, "id": "* (1,27) unexpected end of file in template"},
            {"line": 0, "col": 0, "id": "* (1,27) unexpected end of file"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <div>
                  <template>
                    #document-fragment
                      "Hello"
        $DATA
    },
    /* Test number: 8 */
    {
        "data": $DATA{ ,12}
            <div></template></div>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,6) missing DOCTYPE"},
            {"line": 0, "col": 0, "id": "* (1,17) unexpected template end tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <div>
        $DATA
    },
    /* Test number: 9 */
    {
        "data": $DATA{ ,12}
            <table><template></template></table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <template>
        $DATA
    },
    /* Test number: 10 */
    {
        "data": $DATA{ ,12}
            <table><template></template></div>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,8) missing DOCTYPE"},
            {"line": 0, "col": 0, "id": "* (1,35) unexpected token in table - foster parenting"},
            {"line": 0, "col": 0, "id": "* (1,35) unexpected end tag"},
            {"line": 0, "col": 0, "id": "* (1,35) unexpected end of file"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <template>
        $DATA
    },
    /* Test number: 11 */
    {
        "data": $DATA{ ,12}
            <table><div><template></template></div>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,8) missing DOCTYPE"},
            {"line": 0, "col": 0, "id": "* (1,13) unexpected token in table - foster parenting"},
            {"line": 0, "col": 0, "id": "* (1,40) unexpected token in table - foster parenting"},
            {"line": 0, "col": 0, "id": "* (1,40) unexpected end of file"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <div>
                  <template>
                <table>
        $DATA
    },
    /* Test number: 12 */
    {
        "data": $DATA{ ,12}
            <table><template></template><div></div>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad div in table"},
            {"line": 0, "col": 0, "id": "bad /div in table"},
            {"line": 0, "col": 0, "id": "eof in table"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <div>
                <table>
                  <template>
        $DATA
    },
    /* Test number: 13 */
    {
        "data": $DATA{ ,12}
            <table>   <template></template></table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  "   "
                  <template>
        $DATA
    },
    /* Test number: 14 */
    {
        "data": $DATA{ ,12}
            <table><tbody><template></template></tbody>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in table"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <template>
        $DATA
    },
    /* Test number: 15 */
    {
        "data": $DATA{ ,12}
            <table><tbody><template></tbody></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad /tbody"},
            {"line": 0, "col": 0, "id": "eof in table"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <template>
        $DATA
    },
    /* Test number: 16 */
    {
        "data": $DATA{ ,12}
            <table><tbody><template></template></tbody></table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <template>
        $DATA
    },
    /* Test number: 17 */
    {
        "data": $DATA{ ,12}
            <table><thead><template></template></thead>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in table"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <thead>
                    <template>
        $DATA
    },
    /* Test number: 18 */
    {
        "data": $DATA{ ,12}
            <table><tfoot><template></template></tfoot>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in table"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <tfoot>
                    <template>
        $DATA
    },
    /* Test number: 19 */
    {
        "data": $DATA{ ,12}
            <select><template></template></select>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <select>
                  <template>
        $DATA
    },
    /* Test number: 20 */
    {
        "data": $DATA{ ,12}
            <select><template><option></option></template></select>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <select>
                  <template>
                    #document-fragment
                      <option>
        $DATA
    },
    /* Test number: 21 */
    {
        "data": $DATA{ ,12}
            <template><option></option></select><option></option></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad /select"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <option>
                    <option>
              <body>
        $DATA
    },
    /* Test number: 22 */
    {
        "data": $DATA{ ,12}
            <select><template></template><option></select>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <select>
                  <template>
                  <option>
        $DATA
    },
    /* Test number: 23 */
    {
        "data": $DATA{ ,12}
            <select><option><template></template></select>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <select>
                  <option>
                    <template>
        $DATA
    },
    /* Test number: 24 */
    {
        "data": $DATA{ ,12}
            <select><template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in select"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <select>
                  <template>
        $DATA
    },
    /* Test number: 25 */
    {
        "data": $DATA{ ,12}
            <select><option></option><template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in select"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <select>
                  <option>
                  <template>
        $DATA
    },
    /* Test number: 26 */
    {
        "data": $DATA{ ,12}
            <select><option></option><template><option>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in select"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <select>
                  <option>
                  <template>
                    #document-fragment
                      <option>
        $DATA
    },
    /* Test number: 27 */
    {
        "data": $DATA{ ,12}
            <table><thead><template><td></template></table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,8) missing DOCTYPE"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <thead>
                    <template>
                      #document-fragment
                        <td>
        $DATA
    },
    /* Test number: 28 */
    {
        "data": $DATA{ ,12}
            <table><template><thead></template></table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <template>
                    #document-fragment
                      <thead>
        $DATA
    },
    /* Test number: 29 */
    {
        "data": $DATA{ ,12}
            <body><table><template><td></tr><div></template></table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad </tr>"},
            {"line": 0, "col": 0, "id": "missing </div>"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <template>
                    #document-fragment
                      <td>
                        <div>
        $DATA
    },
    /* Test number: 30 */
    {
        "data": $DATA{ ,12}
            <table><template><thead></template></thead></table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad /thead after /template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <template>
                    #document-fragment
                      <thead>
        $DATA
    },
    /* Test number: 31 */
    {
        "data": $DATA{ ,12}
            <table><thead><template><tr></template></table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <thead>
                    <template>
                      #document-fragment
                        <tr>
        $DATA
    },
    /* Test number: 32 */
    {
        "data": $DATA{ ,12}
            <table><template><tr></template></table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <template>
                    #document-fragment
                      <tr>
        $DATA
    },
    /* Test number: 33 */
    {
        "data": $DATA{ ,12}
            <table><tr><template><td>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in table"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <tr>
                      <template>
                        #document-fragment
                          <td>
        $DATA
    },
    /* Test number: 34 */
    {
        "data": $DATA{ ,12}
            <table><template><tr><template><td></template></tr></template></table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <template>
                    #document-fragment
                      <tr>
                        <template>
                          #document-fragment
                            <td>
        $DATA
    },
    /* Test number: 35 */
    {
        "data": $DATA{ ,12}
            <table><template><tr><template><td></td></template></tr></template></table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <template>
                    #document-fragment
                      <tr>
                        <template>
                          #document-fragment
                            <td>
        $DATA
    },
    /* Test number: 36 */
    {
        "data": $DATA{ ,12}
            <table><template><td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in table"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <template>
                    #document-fragment
                      <td>
        $DATA
    },
    /* Test number: 37 */
    {
        "data": $DATA{ ,12}
            <body><template><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <td>
        $DATA
    },
    /* Test number: 38 */
    {
        "data": $DATA{ ,12}
            <body><template><template><tr></tr></template><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <tr>
                    <td>
        $DATA
    },
    /* Test number: 39 */
    {
        "data": $DATA{ ,12}
            <table><colgroup><template><col>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in table"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <colgroup>
                    <template>
                      #document-fragment
                        <col>
        $DATA
    },
    /* Test number: 40 */
    {
        "data": $DATA{ ,12}
            <frameset><template><frame></frame></template></frameset>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,11) missing DOCTYPE"},
            {"line": 0, "col": 0, "id": "* (1,21) unexpected start tag token"},
            {"line": 0, "col": 0, "id": "* (1,36) unexpected end tag token"},
            {"line": 0, "col": 0, "id": "* (1,47) unexpected end tag token"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <frameset>
                <frame>
        $DATA
    },
    /* Test number: 41 */
    {
        "data": $DATA{ ,12}
            <template><frame></frame></frameset><frame></frame></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,11) missing DOCTYPE"},
            {"line": 0, "col": 0, "id": "* (1,18) unexpected start tag"},
            {"line": 0, "col": 0, "id": "* (1,26) unexpected end tag"},
            {"line": 0, "col": 0, "id": "* (1,37) unexpected end tag"},
            {"line": 0, "col": 0, "id": "* (1,44) unexpected start tag"},
            {"line": 0, "col": 0, "id": "* (1,52) unexpected end tag"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
              <body>
        $DATA
    },
    /* Test number: 42 */
    {
        "data": $DATA{ ,12}
            <template><div><frameset><span></span></div><span></span></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad frameset"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <div>
                      <span>
                    <span>
              <body>
        $DATA
    },
    /* Test number: 43 */
    {
        "data": $DATA{ ,12}
            <body><template><div><frameset><span></span></div><span></span></template></body>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad frameset"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <div>
                      <span>
                    <span>
        $DATA
    },
    /* Test number: 44 */
    {
        "data": $DATA{ ,12}
            <body><template><script>var i = 1;</script><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <script>
                      "var i = 1;"
                    <td>
        $DATA
    },
    /* Test number: 45 */
    {
        "data": $DATA{ ,12}
            <body><template><tr><div></div></tr></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "foster-parented div"},
            {"line": 0, "col": 0, "id": "foster-parented /div"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <tr>
                    <div>
        $DATA
    },
    /* Test number: 46 */
    {
        "data": $DATA{ ,12}
            <body><template><tr></tr><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "unexpected <td>"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <tr>
                    <tr>
                      <td>
        $DATA
    },
    /* Test number: 47 */
    {
        "data": $DATA{ ,12}
            <body><template><td></td></tr><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad </tr>"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <td>
                    <td>
        $DATA
    },
    /* Test number: 48 */
    {
        "data": $DATA{ ,12}
            <body><template><td></td><tbody><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad <tbody>"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <td>
                    <td>
        $DATA
    },
    /* Test number: 49 */
    {
        "data": $DATA{ ,12}
            <body><template><td></td><caption></caption><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,7) missing DOCTYPE"},
            {"line": 0, "col": 0, "id": "* (1,35) unexpected start tag in table row"},
            {"line": 0, "col": 0, "id": "* (1,45) unexpected end tag in table row"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <td>
                    <td>
        $DATA
    },
    /* Test number: 50 */
    {
        "data": $DATA{ ,12}
            <body><template><td></td><colgroup></caption><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,7) missing DOCTYPE"},
            {"line": 0, "col": 0, "id": "* (1,36) unexpected start tag in table row"},
            {"line": 0, "col": 0, "id": "* (1,46) unexpected end tag in table row"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <td>
                    <td>
        $DATA
    },
    /* Test number: 51 */
    {
        "data": $DATA{ ,12}
            <body><template><td></td></table><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad </table>"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <td>
                    <td>
        $DATA
    },
    /* Test number: 52 */
    {
        "data": $DATA{ ,12}
            <body><template><tr></tr><tbody><tr></tr></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad <tbody>"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <tr>
                    <tr>
        $DATA
    },
    /* Test number: 53 */
    {
        "data": $DATA{ ,12}
            <body><template><tr></tr><caption><tr></tr></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad <caption>"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <tr>
                    <tr>
        $DATA
    },
    /* Test number: 54 */
    {
        "data": $DATA{ ,12}
            <body><template><tr></tr></table><tr></tr></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad </table>"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <tr>
                    <tr>
        $DATA
    },
    /* Test number: 55 */
    {
        "data": $DATA{ ,12}
            <body><template><thead></thead><caption></caption><tbody></tbody></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <thead>
                    <caption>
                    <tbody>
        $DATA
    },
    /* Test number: 56 */
    {
        "data": $DATA{ ,12}
            <body><template><thead></thead></table><tbody></tbody></template></body>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad </table>"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <thead>
                    <tbody>
        $DATA
    },
    /* Test number: 57 */
    {
        "data": $DATA{ ,12}
            <body><template><div><tr></tr></div></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad tr"},
            {"line": 0, "col": 0, "id": "bad /tr"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <div>
        $DATA
    },
    /* Test number: 58 */
    {
        "data": $DATA{ ,12}
            <body><template><em>Hello</em></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <em>
                      "Hello"
        $DATA
    },
    /* Test number: 59 */
    {
        "data": $DATA{ ,12}
            <body><template><!--comment--></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <!-- comment -->
        $DATA
    },
    /* Test number: 60 */
    {
        "data": $DATA{ ,12}
            <body><template><style></style><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <style>
                    <td>
        $DATA
    },
    /* Test number: 61 */
    {
        "data": $DATA{ ,12}
            <body><template><meta><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <meta>
                    <td>
        $DATA
    },
    /* Test number: 62 */
    {
        "data": $DATA{ ,12}
            <body><template><link><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <link>
                    <td>
        $DATA
    },
    /* Test number: 63 */
    {
        "data": $DATA{ ,12}
            <body><table><colgroup><template><col></col></template></colgroup></table></body>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad /col"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <colgroup>
                    <template>
                      #document-fragment
                        <col>
        $DATA
    },
    /* Test number: 64 */
    {
        "data": $DATA{ ,12}
            <body a=b><template><div></div><body c=d><div></div></body></template></body>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad <body>"},
            {"line": 0, "col": 0, "id": "bad </body>"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body a="b">
                <template>
                  #document-fragment
                    <div>
                    <div>
        $DATA
    },
    /* Test number: 65 */
    {
        "data": $DATA{ ,12}
            <html a=b><template><div><html b=c><span></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad <html>"},
            {"line": 0, "col": 0, "id": "missing end tags in template"}
        ],
        "result": $DATA{ ,12}
            <html a="b">
              <head>
                <template>
                  #document-fragment
                    <div>
                      <span>
              <body>
        $DATA
    },
    /* Test number: 66 */
    {
        "data": $DATA{ ,12}
            <html a=b><template><col></col><html b=c><col></col></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad /col"},
            {"line": 0, "col": 0, "id": "bad html"},
            {"line": 0, "col": 0, "id": "bad /col"}
        ],
        "result": $DATA{ ,12}
            <html a="b">
              <head>
                <template>
                  #document-fragment
                    <col>
                    <col>
              <body>
        $DATA
    },
    /* Test number: 67 */
    {
        "data": $DATA{ ,12}
            <html a=b><template><frame></frame><html b=c><frame></frame></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad frame"},
            {"line": 0, "col": 0, "id": "bad /frame"},
            {"line": 0, "col": 0, "id": "bad html"},
            {"line": 0, "col": 0, "id": "bad frame"},
            {"line": 0, "col": 0, "id": "bad /frame"}
        ],
        "result": $DATA{ ,12}
            <html a="b">
              <head>
                <template>
              <body>
        $DATA
    },
    /* Test number: 68 */
    {
        "data": $DATA{ ,12}
            <body><template><tr></tr><template></template><td></td></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "unexpected <td>"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <tr>
                    <template>
                    <tr>
                      <td>
        $DATA
    },
    /* Test number: 69 */
    {
        "data": $DATA{ ,12}
            <body><template><thead></thead><template><tr></tr></template><tr></tr><tfoot></tfoot></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <thead>
                    <template>
                      #document-fragment
                        <tr>
                    <tbody>
                      <tr>
                    <tfoot>
        $DATA
    },
    /* Test number: 70 */
    {
        "data": $DATA{ ,12}
            <body><template><template><b><template></template></template>text</template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "missing </b>"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <b>
                          <template>
                    "text"
        $DATA
    },
    /* Test number: 71 */
    {
        "data": $DATA{ ,12}
            <body><template><col><colgroup>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad colgroup"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <col>
        $DATA
    },
    /* Test number: 72 */
    {
        "data": $DATA{ ,12}
            <body><template><col></colgroup>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bogus /colgroup"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <col>
        $DATA
    },
    /* Test number: 73 */
    {
        "data": $DATA{ ,12}
            <body><template><col><colgroup></template></body>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad colgroup"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <col>
        $DATA
    },
    /* Test number: 74 */
    {
        "data": $DATA{ ,12}
            <body><template><col><div>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,7) missing DOCTYPE"},
            {"line": 0, "col": 0, "id": "* (1,27) unexpected token"},
            {"line": 0, "col": 0, "id": "* (1,27) unexpected end of file in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <col>
        $DATA
    },
    /* Test number: 75 */
    {
        "data": $DATA{ ,12}
            <body><template><col></div>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad /div"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <col>
        $DATA
    },
    /* Test number: 76 */
    {
        "data": $DATA{ ,12}
            <body><template><col>Hello
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 1, "col": 27, "id": "foster-parenting-character"},
            {"line": 1, "col": 27, "id": "foster-parenting-character"},
            {"line": 1, "col": 27, "id": "foster-parenting-character"},
            {"line": 1, "col": 27, "id": "foster-parenting-character"},
            {"line": 1, "col": 27, "id": "foster-parenting-character"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <col>
        $DATA
    },
    /* Test number: 77 */
    {
        "data": $DATA{ ,12}
            <body><template><i><menu>Foo</i>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "missing /menu"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <i>
                    <menu>
                      <i>
                        "Foo"
        $DATA
    },
    /* Test number: 78 */
    {
        "data": $DATA{ ,12}
            <body><template></div><div>Foo</div><template></template><tr></tr>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bogus /div"},
            {"line": 0, "col": 0, "id": "bogus tr"},
            {"line": 0, "col": 0, "id": "bogus /tr"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
                  #document-fragment
                    <div>
                      "Foo"
                    <template>
        $DATA
    },
    /* Test number: 79 */
    {
        "data": $DATA{ ,12}
            <body><div><template></div><tr><td>Foo</td></tr></template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,7) missing DOCTYPE"},
            {"line": 0, "col": 0, "id": "* (1,28) unexpected token in template"},
            {"line": 0, "col": 0, "id": "* (1,60) unexpected end of file"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <div>
                  <template>
                    #document-fragment
                      <tr>
                        <td>
                          "Foo"
        $DATA
    },
    /* Test number: 80 */
    {
        "data": $DATA{ ,12}
            <template></figcaption><sub><table></table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad /figcaption"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <sub>
                      <table>
              <body>
        $DATA
    },
    /* Test number: 81 */
    {
        "data": $DATA{ ,12}
            <template><template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
              <body>
        $DATA
    },
    /* Test number: 82 */
    {
        "data": $DATA{ ,12}
            <template><div>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <div>
              <body>
        $DATA
    },
    /* Test number: 83 */
    {
        "data": $DATA{ ,12}
            <template><template><div>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <div>
              <body>
        $DATA
    },
    /* Test number: 84 */
    {
        "data": $DATA{ ,12}
            <template><template><table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <table>
              <body>
        $DATA
    },
    /* Test number: 85 */
    {
        "data": $DATA{ ,12}
            <template><template><tbody>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <tbody>
              <body>
        $DATA
    },
    /* Test number: 86 */
    {
        "data": $DATA{ ,12}
            <template><template><tr>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <tr>
              <body>
        $DATA
    },
    /* Test number: 87 */
    {
        "data": $DATA{ ,12}
            <template><template><td>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <td>
              <body>
        $DATA
    },
    /* Test number: 88 */
    {
        "data": $DATA{ ,12}
            <template><template><caption>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <caption>
              <body>
        $DATA
    },
    /* Test number: 89 */
    {
        "data": $DATA{ ,12}
            <template><template><colgroup>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <colgroup>
              <body>
        $DATA
    },
    /* Test number: 90 */
    {
        "data": $DATA{ ,12}
            <template><template><col>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <col>
              <body>
        $DATA
    },
    /* Test number: 91 */
    {
        "data": $DATA{ ,12}
            <template><template><tbody><select>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "* (1,11) missing DOCTYPE"},
            {"line": 0, "col": 0, "id": "* (1,36) unexpected token in table - foster parenting"},
            {"line": 0, "col": 0, "id": "* (1,36) unexpected end of file in template"},
            {"line": 0, "col": 0, "id": "* (1,36) unexpected end of file in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <tbody>
                        <select>
              <body>
        $DATA
    },
    /* Test number: 92 */
    {
        "data": $DATA{ ,12}
            <template><template><table>Foo
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "foster-parenting text F"},
            {"line": 0, "col": 0, "id": "foster-parenting text o"},
            {"line": 0, "col": 0, "id": "foster-parenting text o"},
            {"line": 0, "col": 0, "id": "eof"},
            {"line": 0, "col": 0, "id": "eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        "Foo"
                        <table>
              <body>
        $DATA
    },
    /* Test number: 93 */
    {
        "data": $DATA{ ,12}
            <template><template><frame>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad tag"},
            {"line": 0, "col": 0, "id": "eof"},
            {"line": 0, "col": 0, "id": "eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
              <body>
        $DATA
    },
    /* Test number: 94 */
    {
        "data": $DATA{ ,12}
            <template><template><script>var i
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in script"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <script>
                          "var i"
              <body>
        $DATA
    },
    /* Test number: 95 */
    {
        "data": $DATA{ ,12}
            <template><template><style>var i
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in style"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <template>
                      #document-fragment
                        <style>
                          "var i"
              <body>
        $DATA
    },
    /* Test number: 96 */
    {
        "data": $DATA{ ,12}
            <template><table></template><body><span>Foo
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "missing /table"},
            {"line": 0, "col": 0, "id": "bad eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <table>
              <body>
                <span>
                  "Foo"
        $DATA
    },
    /* Test number: 97 */
    {
        "data": $DATA{ ,12}
            <template><td></template><body><span>Foo
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <td>
              <body>
                <span>
                  "Foo"
        $DATA
    },
    /* Test number: 98 */
    {
        "data": $DATA{ ,12}
            <template><object></template><body><span>Foo
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "missing /object"},
            {"line": 0, "col": 0, "id": "bad eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <object>
              <body>
                <span>
                  "Foo"
        $DATA
    },
    /* Test number: 99 */
    {
        "data": $DATA{ ,12}
            <template><svg><template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "eof in template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <svg:svg>
                      <svg:template>
              <body>
        $DATA
    },
    /* Test number: 100 */
    {
        "data": $DATA{ ,12}
            <template><svg><foo><template><foreignObject><div></template><div>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "ugly template closure"},
            {"line": 0, "col": 0, "id": "bad eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <svg:svg>
                      <svg:foo>
                        <svg:template>
                          <svg:foreignObject>
                            <div>
              <body>
                <div>
        $DATA
    },
    /* Test number: 101 */
    {
        "data": $DATA{ ,12}
            <dummy><template><span></dummy>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "bad end tag </dummy>"},
            {"line": 0, "col": 0, "id": "eof in template"},
            {"line": 0, "col": 0, "id": "eof in dummy"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <dummy>
                  <template>
                    #document-fragment
                      <span>
        $DATA
    },
    /* Test number: 102 */
    {
        "data": $DATA{ ,12}
            <body><table><tr><td><select><template>Foo</template><caption>A</table>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 1, "col": 62, "id": "unexpected-caption-in-select-in-table"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <tr>
                      <td>
                        <select>
                          <template>
                            #document-fragment
                              "Foo"
                  <caption>
                    "A"
        $DATA
    },
    /* Test number: 103 */
    {
        "data": $DATA{ ,12}
            <body></body><template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 1, "col": 23, "id": "template-after-body"},
            {"line": 1, "col": 24, "id": "eof-in-template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <template>
        $DATA
    },
    /* Test number: 104 */
    {
        "data": $DATA{ ,12}
            <head></head><template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 1, "col": 23, "id": "template-after-head"},
            {"line": 1, "col": 24, "id": "eof-in-template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
              <body>
        $DATA
    },
    /* Test number: 105 */
    {
        "data": $DATA{ ,12}
            <head></head><template>Foo</template>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 1, "col": 23, "id": "template-after-head"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    "Foo"
              <body>
        $DATA
    },
    /* Test number: 106 */
    {
        "data": $DATA{ ,12}
            <html><head></head><template></template><head>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "no doctype"},
            {"line": 0, "col": 0, "id": "template-after-head"},
            {"line": 0, "col": 0, "id": "head-after-head"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
              <body>
        $DATA
    },
    /* Test number: 107 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE HTML><dummy><table><template><table><template><table><script>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "eof script"},
            {"line": 0, "col": 0, "id": "eof template"},
            {"line": 0, "col": 0, "id": "eof template"},
            {"line": 0, "col": 0, "id": "eof table"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <dummy>
                  <table>
                    <template>
                      #document-fragment
                        <table>
                          <template>
                            #document-fragment
                              <table>
                                <script>
        $DATA
    },
    /* Test number: 108 */
    {
        "data": $DATA{ ,12}
            <template><a><table><a>
        $DATA,
        "errors": [
            {"line": 1, "col": 10, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 23, "id": "foster-parenting-start-tag"},
            {"line": 1, "col": 23, "id": "unexpected-start-tag"},
            {"line": 1, "col": 23, "id": "formatting-element-not-in-scope"},
            {"line": 1, "col": 24, "id": "eof-in-template"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
                <template>
                  #document-fragment
                    <a>
                      <a>
                      <table>
              <body>
        $DATA
    },
    /* Test number: 109 */
    {
        "data": $DATA{ ,12}
            <template><form><input name="q"></form><div>second</div></template>
        $DATA,
        "fragment": {"tag": "template", "ns": "html"},
        "result": $DATA{ ,12}
            <template>
              #document-fragment
                <form>
                  <input name="q">
                <div>
                  "second"
        $DATA
    },
    /* Test number: 110 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE HTML><template><tr><td>cell</td></tr></template>
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
                <template>
                  #document-fragment
                    <tr>
                      <td>
                        "cell"
              <body>
        $DATA
    },
    /* Test number: 111 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE HTML><template> <tr> <td>cell</td> </tr> </template>
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
                <template>
                  #document-fragment
                    " "
                    <tr>
                      " "
                      <td>
                        "cell"
                      " "
                    " "
              <body>
        $DATA
    },
    /* Test number: 112 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE HTML><template><tr><td>cell</td></tr>a</template>
        $DATA,
        "errors": [
            {"line": 1, "col": 59, "id": "foster-parenting-character"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
                <template>
                  #document-fragment
                    <tr>
                      <td>
                        "cell"
                    "a"
              <body>
        $DATA
    },
]