[
    /* Test count: 36 */
    /* Test number: 1 */
    {
        "data": $DATA{ ,12}
            <plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 0, "col": 11, "id": "Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”."},
            {"line": 0, "col": 23, "id": "End of file seen and there were open elements."}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
        $DATA
    },
    /* Test number: 2 */
    {
        "data": $DATA{ ,12}
            <!doctype html><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 1, "col": 38, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
        $DATA
    },
    /* Test number: 3 */
    {
        "data": $DATA{ ,12}
            <!doctype html><html><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 0, "col": 44, "id": "End of file seen and there were open elements."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
        $DATA
    },
    /* Test number: 4 */
    {
        "data": $DATA{ ,12}
            <!doctype html><head><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 0, "col": 44, "id": "End of file seen and there were open elements."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
        $DATA
    },
    /* Test number: 5 */
    {
        "data": $DATA{ ,12}
            <!doctype html><html><noscript><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 0, "col": 42, "id": "Bad start tag in “plaintext” in “head”."},
            {"line": 0, "col": 54, "id": "End of file seen and there were open elements."}
        ],
        "scripting": false,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
                <noscript>
              <body>
                <plaintext>
                  "</plaintext>"
        $DATA
    },
    /* Test number: 6 */
    {
        "data": $DATA{ ,12}
            <!doctype html></head><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 0, "col": 45, "id": "End of file seen and there were open elements."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
        $DATA
    },
    /* Test number: 7 */
    {
        "data": $DATA{ ,12}
            <!doctype html><body><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 0, "col": 44, "id": "End of file seen and there were open elements."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
        $DATA
    },
    /* Test number: 8 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 1, "col": 33, "id": "foster-parenting-start-tag"},
            {"line": 1, "col": 46, "id": "foster-parenting-character"},
            {"line": 1, "col": 46, "id": "foster-parenting-character"},
            {"line": 1, "col": 46, "id": "foster-parenting-character"},
            {"line": 1, "col": 46, "id": "foster-parenting-character"},
            {"line": 1, "col": 46, "id": "foster-parenting-character"},
            {"line": 1, "col": 46, "id": "foster-parenting-character"},
            {"line": 1, "col": 46, "id": "foster-parenting-character"},
            {"line": 1, "col": 46, "id": "foster-parenting-character"},
            {"line": 1, "col": 46, "id": "foster-parenting-character"},
            {"line": 1, "col": 46, "id": "foster-parenting-character"},
            {"line": 1, "col": 46, "id": "foster-parenting-character"},
            {"line": 1, "col": 46, "id": "foster-parenting-character"},
            {"line": 1, "col": 46, "id": "eof-in-table"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
                <table>
        $DATA
    },
    /* Test number: 9 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><tbody><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 1, "col": 40, "id": "foster-parenting-start-tag"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "eof-in-table"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
                <table>
                  <tbody>
        $DATA
    },
    /* Test number: 10 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><tbody><tr><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 1, "col": 44, "id": "foster-parenting-start-tag"},
            {"line": 1, "col": 57, "id": "foster-parenting-character"},
            {"line": 1, "col": 57, "id": "foster-parenting-character"},
            {"line": 1, "col": 57, "id": "foster-parenting-character"},
            {"line": 1, "col": 57, "id": "foster-parenting-character"},
            {"line": 1, "col": 57, "id": "foster-parenting-character"},
            {"line": 1, "col": 57, "id": "foster-parenting-character"},
            {"line": 1, "col": 57, "id": "foster-parenting-character"},
            {"line": 1, "col": 57, "id": "foster-parenting-character"},
            {"line": 1, "col": 57, "id": "foster-parenting-character"},
            {"line": 1, "col": 57, "id": "foster-parenting-character"},
            {"line": 1, "col": 57, "id": "foster-parenting-character"},
            {"line": 1, "col": 57, "id": "foster-parenting-character"},
            {"line": 1, "col": 57, "id": "eof-in-table"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
                <table>
                  <tbody>
                    <tr>
        $DATA
    },
    /* Test number: 11 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><td><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 1, "col": 26, "id": "unexpected-cell-in-table-body"},
            {"line": 1, "col": 49, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <tr>
                      <td>
                        <plaintext>
                          "</plaintext>"
        $DATA
    },
    /* Test number: 12 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><caption><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 1, "col": 54, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <table>
                  <caption>
                    <plaintext>
                      "</plaintext>"
        $DATA
    },
    /* Test number: 13 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><colgroup><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 1, "col": 43, "id": "foster-parenting-start-tag"},
            {"line": 1, "col": 56, "id": "foster-parenting-character"},
            {"line": 1, "col": 56, "id": "foster-parenting-character"},
            {"line": 1, "col": 56, "id": "foster-parenting-character"},
            {"line": 1, "col": 56, "id": "foster-parenting-character"},
            {"line": 1, "col": 56, "id": "foster-parenting-character"},
            {"line": 1, "col": 56, "id": "foster-parenting-character"},
            {"line": 1, "col": 56, "id": "foster-parenting-character"},
            {"line": 1, "col": 56, "id": "foster-parenting-character"},
            {"line": 1, "col": 56, "id": "foster-parenting-character"},
            {"line": 1, "col": 56, "id": "foster-parenting-character"},
            {"line": 1, "col": 56, "id": "foster-parenting-character"},
            {"line": 1, "col": 56, "id": "foster-parenting-character"},
            {"line": 0, "col": 55, "id": "End of file seen and there were open elements."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
                <table>
                  <colgroup>
        $DATA
    },
    /* Test number: 14 */
    {
        "data": $DATA{ ,12}
            <!doctype html><select><plaintext></plaintext>X
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "1:48: ERROR: Premature end of file. Currently open tags: html, body, select, plaintext."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <select>
                  <plaintext>
                    "</plaintext>X"
        $DATA
    },
    /* Test number: 15 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><select><plaintext>a<caption>b
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "1:23: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table."},
            {"line": 0, "col": 0, "id": "1:31: ERROR: Start tag 'plaintext' isn't allowed here. Currently open tags: html, body, table, select."},
            {"line": 0, "col": 0, "id": "1:42: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:43: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:44: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:45: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:46: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:47: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:48: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:49: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:50: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:51: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:52: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:53: ERROR: Premature end of file. Currently open tags: html, body, table, select, plaintext."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <select>
                  <plaintext>
                    "a<caption>b"
                <table>
        $DATA
    },
    /* Test number: 16 */
    {
        "data": $DATA{ ,12}
            <!doctype html><template><plaintext>a</template>b
        $DATA,
        "errors": [
            {"line": 0, "col": 49, "id": "End of file seen and there were open elements."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
                <template>
                  #document-fragment
                    <plaintext>
                      "a</template>b"
              <body>
        $DATA
    },
    /* Test number: 17 */
    {
        "data": $DATA{ ,12}
            <!doctype html><body></body><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 0, "col": 39, "id": "Stray start tag “plaintext”."},
            {"line": 0, "col": 51, "id": "End of file seen and there were open elements."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
        $DATA
    },
    /* Test number: 18 */
    {
        "data": $DATA{ ,12}
            <!doctype html><frameset><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 0, "col": 36, "id": "Stray start tag “plaintext”."},
            {"line": 0, "col": 48, "id": "Stray end tag “plaintext”."},
            {"line": 0, "col": 48, "id": "End of file seen and there were open elements."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 19 */
    {
        "data": $DATA{ ,12}
            <!doctype html><frameset></frameset><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 0, "col": 47, "id": "Stray start tag “plaintext”."},
            {"line": 0, "col": 59, "id": "Stray end tag “plaintext”."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 20 */
    {
        "data": $DATA{ ,12}
            <!doctype html><body></body></html><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 0, "col": 46, "id": "Stray start tag “plaintext”."},
            {"line": 0, "col": 58, "id": "End of file seen and there were open elements."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <plaintext>
                  "</plaintext>"
        $DATA
    },
    /* Test number: 21 */
    {
        "data": $DATA{ ,12}
            <!doctype html><frameset></frameset></html><plaintext></plaintext>
        $DATA,
        "errors": [
            {"line": 0, "col": 54, "id": "Stray start tag “plaintext”."},
            {"line": 0, "col": 66, "id": "Stray end tag “plaintext”."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 22 */
    {
        "data": $DATA{ ,12}
            <!doctype html><svg><plaintext>a</plaintext>b
        $DATA,
        "errors": [
            {"line": 0, "col": 45, "id": "End of file seen and there were open elements."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <svg:svg>
                  <svg:plaintext>
                    "a"
                  "b"
        $DATA
    },
    /* Test number: 23 */
    {
        "data": $DATA{ ,12}
            <!doctype html><svg><title><plaintext>a</plaintext>b
        $DATA,
        "errors": [
            {"line": 0, "col": 52, "id": "End of file seen and there were open elements."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <svg:svg>
                  <svg:title>
                    <plaintext>
                      "a</plaintext>b"
        $DATA
    },
    /* Test number: 24 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><tr><style></script></style>abc
        $DATA,
        "errors": [
            {"line": 1, "col": 51, "id": "foster-parenting-character"},
            {"line": 1, "col": 52, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "eof-in-table"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                "abc"
                <table>
                  <tbody>
                    <tr>
                      <style>
                        "</script>"
        $DATA
    },
    /* Test number: 25 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><tr><script></style></script>abc
        $DATA,
        "errors": [
            {"line": 1, "col": 52, "id": "foster-parenting-character"},
            {"line": 1, "col": 53, "id": "foster-parenting-character"},
            {"line": 1, "col": 54, "id": "foster-parenting-character"},
            {"line": 1, "col": 54, "id": "eof-in-table"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                "abc"
                <table>
                  <tbody>
                    <tr>
                      <script>
                        "</style>"
        $DATA
    },
    /* Test number: 26 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><caption><style></script></style>abc
        $DATA,
        "errors": [
            {"line": 1, "col": 58, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <table>
                  <caption>
                    <style>
                      "</script>"
                    "abc"
        $DATA
    },
    /* Test number: 27 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><td><style></script></style>abc
        $DATA,
        "errors": [
            {"line": 1, "col": 26, "id": "unexpected-cell-in-table-body"},
            {"line": 1, "col": 53, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <tr>
                      <td>
                        <style>
                          "</script>"
                        "abc"
        $DATA
    },
    /* Test number: 28 */
    {
        "data": $DATA{ ,12}
            <!doctype html><select><script></style></script>abc
        $DATA,
        "errors": [
            {"line": 1, "col": 51, "id": "eof-in-select"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <select>
                  <script>
                    "</style>"
                  "abc"
        $DATA
    },
    /* Test number: 29 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><select><script></style></script>abc
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "1:23: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table."},
            {"line": 0, "col": 0, "id": "1:56: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:57: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:58: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:59: ERROR: Premature end of file. Currently open tags: html, body, table, select."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <select>
                  <script>
                    "</style>"
                  "abc"
                <table>
        $DATA
    },
    /* Test number: 30 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><tr><select><script></style></script>abc
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "1:27: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table, tbody, tr."},
            {"line": 0, "col": 0, "id": "1:60: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:61: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:62: ERROR: Character tokens aren't legal here"},
            {"line": 0, "col": 0, "id": "1:63: ERROR: Premature end of file. Currently open tags: html, body, table, tbody, tr, select."}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <select>
                  <script>
                    "</style>"
                  "abc"
                <table>
                  <tbody>
                    <tr>
        $DATA
    },
    /* Test number: 31 */
    {
        "data": $DATA{ ,12}
            <!doctype html><frameset></frameset><noframes>abc
        $DATA,
        "errors": [
            {"line": 1, "col": 49, "id": "expected-named-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <frameset>
              <noframes>
                "abc"
        $DATA
    },
    /* Test number: 32 */
    {
        "data": $DATA{ ,12}
            <!doctype html><frameset></frameset><noframes>abc</noframes><!--abc-->
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <frameset>
              <noframes>
                "abc"
              <!-- abc -->
        $DATA
    },
    /* Test number: 33 */
    {
        "data": $DATA{ ,12}
            <!doctype html><frameset></frameset></html><noframes>abc
        $DATA,
        "errors": [
            {"line": 1, "col": 56, "id": "expected-named-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <frameset>
              <noframes>
                "abc"
        $DATA
    },
    /* Test number: 34 */
    {
        "data": $DATA{ ,12}
            <!doctype html><frameset></frameset></html><noframes>abc</noframes><!--abc-->
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <frameset>
              <noframes>
                "abc"
            <!-- abc -->
        $DATA
    },
    /* Test number: 35 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><tr></tbody><tfoot>
        $DATA,
        "errors": [
            {"line": 1, "col": 41, "id": "eof-in-table"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <tr>
                  <tfoot>
        $DATA
    },
    /* Test number: 36 */
    {
        "data": $DATA{ ,12}
            <!doctype html><table><td><svg></svg>abc<td>
        $DATA,
        "errors": [
            {"line": 1, "col": 26, "id": "unexpected-cell-in-table-body"},
            {"line": 1, "col": 44, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <tr>
                      <td>
                        <svg:svg>
                        "abc"
                      <td>
        $DATA
    },
]