[
    /* Test count: 33 */
    /* Test number: 1 */
    {
        "data": $DATA{ ,12}
            FOO&#x000D;ZOO
        $DATA,
        "errors": [
            {"line": 1, "col": 3, "id": "expected-doctype-but-got-chars"},
            {"line": 1, "col": 11, "id": "illegal-codepoint-for-numeric-entity"},
            {"line": 1, "col": 12, "id": "control-character-reference"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "FOO\rZOO"
        $DATA
    },
    /* Test number: 2 */
    {
        "data": $DATA{ ,12}
            <html>\0<frameset></frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 7, "id": "invalid-codepoint"},
            {"line": 1, "col": 7, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 17, "id": "unexpected-start-tag"},
            {"line": 1, "col": 7, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 3 */
    {
        "data": $DATA{ ,12}
            <html> \0 <frameset></frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 8, "id": "invalid-codepoint"},
            {"line": 1, "col": 8, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 19, "id": "unexpected-start-tag"},
            {"line": 1, "col": 8, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 4 */
    {
        "data": $DATA{ ,12}
            <html>a\0a<frameset></frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 8, "id": "invalid-codepoint"},
            {"line": 1, "col": 8, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 19, "id": "unexpected-start-tag"},
            {"line": 1, "col": 30, "id": "unexpected-end-tag"},
            {"line": 1, "col": 8, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                "aa"
        $DATA
    },
    /* Test number: 5 */
    {
        "data": $DATA{ ,12}
            <html>\0\0<frameset></frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 7, "id": "invalid-codepoint"},
            {"line": 1, "col": 7, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 8, "id": "invalid-codepoint"},
            {"line": 1, "col": 8, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 18, "id": "unexpected-start-tag"},
            {"line": 1, "col": 7, "id": "unexpected-null-character"},
            {"line": 1, "col": 8, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 6 */
    {
        "data": $DATA{ ,12}
            <html>\0
            <frameset></frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 7, "id": "invalid-codepoint"},
            {"line": 1, "col": 7, "id": "invalid-codepoint-in-body"},
            {"line": 2, "col": 11, "id": "unexpected-start-tag"},
            {"line": 1, "col": 7, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 7 */
    {
        "data": $DATA{ ,12}
            <html><select>\0
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 15, "id": "invalid-codepoint"},
            {"line": 1, "col": 15, "id": "invalid-codepoint-in-select"},
            {"line": 1, "col": 15, "id": "eof-in-select"},
            {"line": 1, "col": 15, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <select>
        $DATA
    },
    /* Test number: 8 */
    {
        "data": $DATA{ ,12}
            \0
        $DATA,
        "errors": [
            {"line": 1, "col": 1, "id": "invalid-codepoint"},
            {"line": 1, "col": 1, "id": "expected-doctype-but-got-chars"},
            {"line": 1, "col": 1, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 1, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 9 */
    {
        "data": $DATA{ ,12}
            <body>\0
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 7, "id": "invalid-codepoint"},
            {"line": 1, "col": 7, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 7, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
        $DATA
    },
    /* Test number: 10 */
    {
        "data": $DATA{ ,12}
            <plaintext>\0filler\0text\0
        $DATA,
        "errors": [
            {"line": 1, "col": 11, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 12, "id": "invalid-codepoint"},
            {"line": 1, "col": 19, "id": "invalid-codepoint"},
            {"line": 1, "col": 24, "id": "invalid-codepoint"},
            {"line": 1, "col": 24, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 12, "id": "unexpected-null-character"},
            {"line": 1, "col": 19, "id": "unexpected-null-character"},
            {"line": 1, "col": 24, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <plaintext>
                  "�filler�text�"
        $DATA
    },
    /* Test number: 11 */
    {
        "data": $DATA{ ,12}
            <svg><![CDATA[\0filler\0text\0]]>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 30, "id": "invalid-codepoint"},
            {"line": 1, "col": 30, "id": "invalid-codepoint"},
            {"line": 1, "col": 30, "id": "invalid-codepoint"},
            {"line": 1, "col": 30, "id": "expected-closing-tag-but-got-eof"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  "�filler�text�"
        $DATA
    },
    /* Test number: 12 */
    {
        "data": $DATA{ ,12}
            <body><!\0>
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 8, "id": "expected-dashes-or-doctype"},
            {"line": 1, "col": 9, "id": "unexpected-null-character"},
            {"line": 1, "col": 9, "id": "incorrectly-opened-comment"},
            {"line": 1, "col": 9, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <!-- � -->
        $DATA
    },
    /* Test number: 13 */
    {
        "data": $DATA{ ,12}
            <body><!\0filler\0text>
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 8, "id": "expected-dashes-or-doctype"},
            {"line": 1, "col": 9, "id": "unexpected-null-character"},
            {"line": 1, "col": 16, "id": "unexpected-null-character"},
            {"line": 1, "col": 9, "id": "incorrectly-opened-comment"},
            {"line": 1, "col": 9, "id": "unexpected-null-character"},
            {"line": 1, "col": 16, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <!-- �filler�text -->
        $DATA
    },
    /* Test number: 14 */
    {
        "data": $DATA{ ,12}
            <body><svg><foreignObject>\0filler\0text
        $DATA,
        "errors": [
            {"line": 1, "col": 6, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 27, "id": "invalid-codepoint"},
            {"line": 1, "col": 27, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 34, "id": "invalid-codepoint"},
            {"line": 1, "col": 34, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 38, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 27, "id": "unexpected-null-character"},
            {"line": 1, "col": 34, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  <svg:foreignObject>
                    "fillertext"
        $DATA
    },
    /* Test number: 15 */
    {
        "data": $DATA{ ,12}
            <svg>\0filler\0text
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 6, "id": "invalid-codepoint"},
            {"line": 1, "col": 6, "id": "invalid-codepoint-in-foreign-content"},
            {"line": 1, "col": 13, "id": "invalid-codepoint"},
            {"line": 1, "col": 13, "id": "invalid-codepoint-in-foreign-content"},
            {"line": 1, "col": 17, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 6, "id": "unexpected-null-character"},
            {"line": 1, "col": 13, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  "�filler�text"
        $DATA
    },
    /* Test number: 16 */
    {
        "data": $DATA{ ,12}
            <svg>\0<frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 6, "id": "invalid-codepoint"},
            {"line": 1, "col": 6, "id": "invalid-codepoint-in-foreign-content"},
            {"line": 1, "col": 16, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 6, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  "�"
                  <svg:frameset>
        $DATA
    },
    /* Test number: 17 */
    {
        "data": $DATA{ ,12}
            <svg>\0 <frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 6, "id": "invalid-codepoint"},
            {"line": 1, "col": 6, "id": "invalid-codepoint-in-foreign-content"},
            {"line": 1, "col": 17, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 6, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  "� "
                  <svg:frameset>
        $DATA
    },
    /* Test number: 18 */
    {
        "data": $DATA{ ,12}
            <svg>\0a<frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 6, "id": "invalid-codepoint"},
            {"line": 1, "col": 6, "id": "invalid-codepoint-in-foreign-content"},
            {"line": 1, "col": 17, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 6, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  "�a"
                  <svg:frameset>
        $DATA
    },
    /* Test number: 19 */
    {
        "data": $DATA{ ,12}
            <svg>\0</svg><frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 6, "id": "invalid-codepoint"},
            {"line": 1, "col": 6, "id": "invalid-codepoint-in-foreign-content"},
            {"line": 1, "col": 22, "id": "unexpected-start-tag"},
            {"line": 1, "col": 22, "id": "eof-in-frameset"},
            {"line": 1, "col": 6, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 20 */
    {
        "data": $DATA{ ,12}
            <svg>\0 </svg><frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 6, "id": "invalid-codepoint"},
            {"line": 1, "col": 6, "id": "invalid-codepoint-in-foreign-content"},
            {"line": 1, "col": 23, "id": "unexpected-start-tag"},
            {"line": 1, "col": 23, "id": "eof-in-frameset"},
            {"line": 1, "col": 6, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 21 */
    {
        "data": $DATA{ ,12}
            <svg>\0a</svg><frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 6, "id": "invalid-codepoint"},
            {"line": 1, "col": 6, "id": "invalid-codepoint-in-foreign-content"},
            {"line": 1, "col": 23, "id": "unexpected-start-tag"},
            {"line": 1, "col": 6, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <body>
                <svg:svg>
                  "�a"
        $DATA
    },
    /* Test number: 22 */
    {
        "data": $DATA{ ,12}
            <svg><path></path></svg><frameset>
        $DATA,
        "errors": [
            {"line": 1, "col": 5, "id": "expected-doctype-but-got-start-tag"},
            {"line": 1, "col": 34, "id": "unexpected-start-tag"},
            {"line": 1, "col": 34, "id": "eof-in-frameset"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 23 */
    {
        "data": $DATA{ ,12}
            <svg><p><frameset>
        $DATA,
        "errors": [
            {"line": 0, "col": 0, "id": "(1, 5) expected-doctype-but-got-start-tag"},
            {"line": 0, "col": 0, "id": "(1, 8) unexpected-html-element-in-foreign-content"},
            {"line": 0, "col": 0, "id": "(1, 18) unexpected-start-tag"},
            {"line": 0, "col": 0, "id": "(1, 18) eof-in-frameset"}
        ],
        "result": $DATA{ ,12}
            <html>
              <head>
              <frameset>
        $DATA
    },
    /* Test number: 24 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><pre>
            
            A</pre>
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <pre>
                  "
            A"
        $DATA
    },
    /* Test number: 25 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><pre>
            
            A</pre>
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <pre>
                  "
            A"
        $DATA
    },
    /* Test number: 26 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><pre>
            A</pre>
        $DATA,
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <pre>
                  "A"
        $DATA
    },
    /* Test number: 27 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><table><tr><td><math><mtext>\0a
        $DATA,
        "errors": [
            {"line": 1, "col": 44, "id": "invalid-codepoint"},
            {"line": 1, "col": 44, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 45, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 44, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <tr>
                      <td>
                        <math:math>
                          <math:mtext>
                            "a"
        $DATA
    },
    /* Test number: 28 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><table><tr><td><svg><foreignObject>\0a
        $DATA,
        "errors": [
            {"line": 1, "col": 51, "id": "invalid-codepoint"},
            {"line": 1, "col": 51, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 52, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 51, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <table>
                  <tbody>
                    <tr>
                      <td>
                        <svg:svg>
                          <svg:foreignObject>
                            "a"
        $DATA
    },
    /* Test number: 29 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><math><mi>a\0b
        $DATA,
        "errors": [
            {"line": 1, "col": 27, "id": "invalid-codepoint"},
            {"line": 1, "col": 27, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 28, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 27, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <math:math>
                  <math:mi>
                    "ab"
        $DATA
    },
    /* Test number: 30 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><math><mo>a\0b
        $DATA,
        "errors": [
            {"line": 1, "col": 27, "id": "invalid-codepoint"},
            {"line": 1, "col": 27, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 28, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 27, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <math:math>
                  <math:mo>
                    "ab"
        $DATA
    },
    /* Test number: 31 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><math><mn>a\0b
        $DATA,
        "errors": [
            {"line": 1, "col": 27, "id": "invalid-codepoint"},
            {"line": 1, "col": 27, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 28, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 27, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <math:math>
                  <math:mn>
                    "ab"
        $DATA
    },
    /* Test number: 32 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><math><ms>a\0b
        $DATA,
        "errors": [
            {"line": 1, "col": 27, "id": "invalid-codepoint"},
            {"line": 1, "col": 27, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 28, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 27, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <math:math>
                  <math:ms>
                    "ab"
        $DATA
    },
    /* Test number: 33 */
    {
        "data": $DATA{ ,12}
            <!DOCTYPE html><math><mtext>a\0b
        $DATA,
        "errors": [
            {"line": 1, "col": 30, "id": "invalid-codepoint"},
            {"line": 1, "col": 30, "id": "invalid-codepoint-in-body"},
            {"line": 1, "col": 31, "id": "expected-closing-tag-but-got-eof"},
            {"line": 1, "col": 30, "id": "unexpected-null-character"}
        ],
        "result": $DATA{ ,12}
            <!DOCTYPE html>
            <html>
              <head>
              <body>
                <math:math>
                  <math:mtext>
                    "ab"
        $DATA
    },
]