1 # Copyright (c) 2006-2015 Jason Woofenden, James Graham, Geoffrey Sneddon, and
4 # The values in the following data structure were extracted from the project at
5 # https://github.com/html5lib/html5lib-tests which has the following notice:
7 # Copyright (c) 2006-2013 James Graham, Geoffrey Sneddon, and
10 # Permission is hereby granted, free of charge, to any person obtaining
11 # a copy of this software and associated documentation files (the
12 # "Software"), to deal in the Software without restriction, including
13 # without limitation the rights to use, copy, modify, merge, publish,
14 # distribute, sublicense, and/or sell copies of the Software, and to
15 # permit persons to whom the Software is furnished to do so, subject to
16 # the following conditions:
18 # The above copyright notice and this permission notice shall be
19 # included in all copies or substantial portions of the Software.
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 # The rest of this file was written by Jason Woofenden in 2015, and is released
30 # under the terms of the CC0 license:
31 # http://creativecommons.org/publicdomain/zero/1.0/ and into the public domain
35 name: "adoption01.dat #1"
36 html: "<a><p></a></p>"
38 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <p>\n| <a>\n"
40 name: "adoption01.dat #2"
41 html: "<a>1<p>2</a>3</p>"
43 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| \"1\"\n| <p>\n| <a>\n| \"2\"\n| \"3\"\n"
45 name: "adoption01.dat #3"
46 html: "<a>1<button>2</a>3</button>"
48 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| \"1\"\n| <button>\n| <a>\n| \"2\"\n| \"3\"\n"
50 name: "adoption01.dat #4"
51 html: "<a>1<b>2</a>3</b>"
53 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| \"1\"\n| <b>\n| \"2\"\n| <b>\n| \"3\"\n"
55 name: "adoption01.dat #5"
56 html: "<a>1<div>2<div>3</a>4</div>5</div>"
58 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| \"1\"\n| <div>\n| <a>\n| \"2\"\n| <div>\n| <a>\n| \"3\"\n| \"4\"\n| \"5\"\n"
60 name: "adoption01.dat #6"
61 html: "<table><a>1<p>2</a>3</p>"
63 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| \"1\"\n| <p>\n| <a>\n| \"2\"\n| \"3\"\n| <table>\n"
65 name: "adoption01.dat #7"
66 html: "<b><b><a><p></a>"
68 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <b>\n| <a>\n| <p>\n| <a>\n"
70 name: "adoption01.dat #8"
71 html: "<b><a><b><p></a>"
73 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <a>\n| <b>\n| <b>\n| <p>\n| <a>\n"
75 name: "adoption01.dat #9"
76 html: "<a><b><b><p></a>"
78 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <b>\n| <b>\n| <b>\n| <b>\n| <p>\n| <a>\n"
80 name: "adoption01.dat #10"
81 html: "<p>1<s id=\"A\">2<b id=\"B\">3</p>4</s>5</b>"
83 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| \"1\"\n| <s>\n| id=\"A\"\n| \"2\"\n| <b>\n| id=\"B\"\n| \"3\"\n| <s>\n| id=\"A\"\n| <b>\n| id=\"B\"\n| \"4\"\n| <b>\n| id=\"B\"\n| \"5\"\n"
85 name: "adoption01.dat #11"
86 html: "<table><a>1<td>2</td>3</table>"
88 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| \"1\"\n| <a>\n| \"3\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"2\"\n"
90 name: "adoption01.dat #12"
91 html: "<table>A<td>B</td>C</table>"
93 expected: "| <html>\n| <head>\n| <body>\n| \"AC\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"B\"\n"
95 name: "adoption01.dat #13"
96 html: "<a><svg><tr><input></a>"
98 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <svg svg>\n| <svg tr>\n| <svg input>\n"
100 name: "adoption01.dat #14"
101 html: "<div><a><b><div><div><div><div><div><div><div><div><div><div></a>"
103 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <a>\n| <b>\n| <b>\n| <div>\n| <a>\n| <div>\n| <a>\n| <div>\n| <a>\n| <div>\n| <a>\n| <div>\n| <a>\n| <div>\n| <a>\n| <div>\n| <a>\n| <div>\n| <a>\n| <div>\n| <div>\n"
105 name: "adoption01.dat #15"
106 html: "<div><a><b><u><i><code><div></a>"
108 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <a>\n| <b>\n| <u>\n| <i>\n| <code>\n| <u>\n| <i>\n| <code>\n| <div>\n| <a>\n"
110 name: "adoption01.dat #16"
111 html: "<b><b><b><b>x</b></b></b></b>y"
113 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <b>\n| <b>\n| <b>\n| \"x\"\n| \"y\"\n"
115 name: "adoption01.dat #17"
116 html: "<p><b><b><b><b><p>x"
118 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <b>\n| <b>\n| <b>\n| <p>\n| <b>\n| <b>\n| <b>\n| \"x\"\n"
120 name: "adoption02.dat #1"
121 html: "<b>1<i>2<p>3</b>4"
123 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| \"1\"\n| <i>\n| \"2\"\n| <i>\n| <p>\n| <b>\n| \"3\"\n| \"4\"\n"
125 name: "adoption02.dat #2"
126 html: "<a><div><style></style><address><a>"
128 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <div>\n| <a>\n| <style>\n| <address>\n| <a>\n| <a>\n"
130 name: "comments01.dat #1"
131 html: "FOO<!-- BAR -->BAZ"
133 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <!-- BAR -->\n| \"BAZ\"\n"
135 name: "comments01.dat #2"
136 html: "FOO<!-- BAR --!>BAZ"
138 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <!-- BAR -->\n| \"BAZ\"\n"
140 name: "comments01.dat #3"
141 html: "FOO<!-- BAR -- >BAZ"
143 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <!-- BAR -- >BAZ -->\n"
145 name: "comments01.dat #4"
146 html: "FOO<!-- BAR -- <QUX> -- MUX -->BAZ"
148 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <!-- BAR -- <QUX> -- MUX -->\n| \"BAZ\"\n"
150 name: "comments01.dat #5"
151 html: "FOO<!-- BAR -- <QUX> -- MUX --!>BAZ"
153 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <!-- BAR -- <QUX> -- MUX -->\n| \"BAZ\"\n"
155 name: "comments01.dat #6"
156 html: "FOO<!-- BAR -- <QUX> -- MUX -- >BAZ"
158 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <!-- BAR -- <QUX> -- MUX -- >BAZ -->\n"
160 name: "comments01.dat #7"
161 html: "FOO<!---->BAZ"
163 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <!-- -->\n| \"BAZ\"\n"
165 name: "comments01.dat #8"
168 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <!-- -->\n| \"BAZ\"\n"
170 name: "comments01.dat #9"
173 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <!-- -->\n| \"BAZ\"\n"
175 name: "comments01.dat #10"
176 html: "<?xml version=\"1.0\">Hi"
178 expected: "| <!-- ?xml version=\"1.0\" -->\n| <html>\n| <head>\n| <body>\n| \"Hi\"\n"
180 name: "comments01.dat #11"
181 html: "<?xml version=\"1.0\">"
183 expected: "| <!-- ?xml version=\"1.0\" -->\n| <html>\n| <head>\n| <body>\n"
185 name: "comments01.dat #12"
186 html: "<?xml version"
188 expected: "| <!-- ?xml version -->\n| <html>\n| <head>\n| <body>\n"
190 name: "comments01.dat #13"
191 html: "FOO<!----->BAZ"
193 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <!-- - -->\n| \"BAZ\"\n"
195 name: "comments01.dat #14"
196 html: "<html><!-- comment --><title>Comment before head</title>"
198 expected: "| <html>\n| <!-- comment -->\n| <head>\n| <title>\n| \"Comment before head\"\n| <body>\n"
200 name: "doctype01.dat #1"
201 html: "<!DOCTYPE html>Hello"
202 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
204 name: "doctype01.dat #2"
205 html: "<!dOctYpE HtMl>Hello"
206 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
208 name: "doctype01.dat #3"
209 html: "<!DOCTYPEhtml>Hello"
211 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
213 name: "doctype01.dat #4"
214 html: "<!DOCTYPE>Hello"
216 expected: "| <!DOCTYPE >\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
218 name: "doctype01.dat #5"
219 html: "<!DOCTYPE >Hello"
221 expected: "| <!DOCTYPE >\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
223 name: "doctype01.dat #6"
224 html: "<!DOCTYPE potato>Hello"
226 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
228 name: "doctype01.dat #7"
229 html: "<!DOCTYPE potato >Hello"
231 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
233 name: "doctype01.dat #8"
234 html: "<!DOCTYPE potato taco>Hello"
236 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
238 name: "doctype01.dat #9"
239 html: "<!DOCTYPE potato taco \"ddd>Hello"
241 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
243 name: "doctype01.dat #10"
244 html: "<!DOCTYPE potato sYstEM>Hello"
246 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
248 name: "doctype01.dat #11"
249 html: "<!DOCTYPE potato sYstEM >Hello"
251 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
253 name: "doctype01.dat #12"
254 html: "<!DOCTYPE potato sYstEM ggg>Hello"
256 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
258 name: "doctype01.dat #13"
259 html: "<!DOCTYPE potato SYSTEM taco >Hello"
261 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
263 name: "doctype01.dat #14"
264 html: "<!DOCTYPE potato SYSTEM 'taco\"'>Hello"
266 expected: "| <!DOCTYPE potato \"\" \"taco\"\">\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
268 name: "doctype01.dat #15"
269 html: "<!DOCTYPE potato SYSTEM \"taco\">Hello"
271 expected: "| <!DOCTYPE potato \"\" \"taco\">\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
273 name: "doctype01.dat #16"
274 html: "<!DOCTYPE potato SYSTEM \"tai'co\">Hello"
276 expected: "| <!DOCTYPE potato \"\" \"tai'co\">\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
278 name: "doctype01.dat #17"
279 html: "<!DOCTYPE potato SYSTEMtaco \"ddd\">Hello"
281 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
283 name: "doctype01.dat #18"
284 html: "<!DOCTYPE potato grass SYSTEM taco>Hello"
286 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
288 name: "doctype01.dat #19"
289 html: "<!DOCTYPE potato pUbLIc>Hello"
291 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
293 name: "doctype01.dat #20"
294 html: "<!DOCTYPE potato pUbLIc >Hello"
296 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
298 name: "doctype01.dat #21"
299 html: "<!DOCTYPE potato pUbLIcgoof>Hello"
301 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
303 name: "doctype01.dat #22"
304 html: "<!DOCTYPE potato PUBLIC goof>Hello"
306 expected: "| <!DOCTYPE potato>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
308 name: "doctype01.dat #23"
309 html: "<!DOCTYPE potato PUBLIC \"go'of\">Hello"
311 expected: "| <!DOCTYPE potato \"go'of\" \"\">\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
313 name: "doctype01.dat #24"
314 html: "<!DOCTYPE potato PUBLIC 'go'of'>Hello"
316 expected: "| <!DOCTYPE potato \"go\" \"\">\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
318 name: "doctype01.dat #25"
319 html: "<!DOCTYPE potato PUBLIC 'go:hh of' >Hello"
321 expected: "| <!DOCTYPE potato \"go:hh of\" \"\">\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
323 name: "doctype01.dat #26"
324 html: "<!DOCTYPE potato PUBLIC \"W3C-//dfdf\" SYSTEM ggg>Hello"
326 expected: "| <!DOCTYPE potato \"W3C-//dfdf\" \"\">\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
328 name: "doctype01.dat #27"
329 html: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n \"http://www.w3.org/TR/html4/strict.dtd\">Hello"
330 expected: "| <!DOCTYPE html \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
332 name: "doctype01.dat #28"
333 html: "<!DOCTYPE ...>Hello"
335 expected: "| <!DOCTYPE ...>\n| <html>\n| <head>\n| <body>\n| \"Hello\"\n"
337 name: "doctype01.dat #29"
338 html: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"
340 expected: "| <!DOCTYPE html \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n| <html>\n| <head>\n| <body>\n"
342 name: "doctype01.dat #30"
343 html: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">"
345 expected: "| <!DOCTYPE html \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">\n| <html>\n| <head>\n| <body>\n"
347 name: "doctype01.dat #31"
348 html: "<!DOCTYPE root-element [SYSTEM OR PUBLIC FPI] \"uri\" [ \n<!-- internal declarations -->\n]>"
350 expected: "| <!DOCTYPE root-element>\n| <html>\n| <head>\n| <body>\n| \"]>\"\n"
352 name: "doctype01.dat #32"
353 html: "<!DOCTYPE html PUBLIC\n \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\n \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">"
355 expected: "| <!DOCTYPE html \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n| <html>\n| <head>\n| <body>\n"
357 name: "doctype01.dat #33"
358 html: "<!DOCTYPE HTML SYSTEM \"http://www.w3.org/DTD/HTML4-strict.dtd\"><body><b>Mine!</b></body>"
360 expected: "| <!DOCTYPE html \"\" \"http://www.w3.org/DTD/HTML4-strict.dtd\">\n| <html>\n| <head>\n| <body>\n| <b>\n| \"Mine!\"\n"
362 name: "doctype01.dat #34"
363 html: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">"
365 expected: "| <!DOCTYPE html \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n| <html>\n| <head>\n| <body>\n"
367 name: "doctype01.dat #35"
368 html: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"'http://www.w3.org/TR/html4/strict.dtd'>"
370 expected: "| <!DOCTYPE html \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n| <html>\n| <head>\n| <body>\n"
372 name: "doctype01.dat #36"
373 html: "<!DOCTYPE HTML PUBLIC\"-//W3C//DTD HTML 4.01//EN\"'http://www.w3.org/TR/html4/strict.dtd'>"
375 expected: "| <!DOCTYPE html \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n| <html>\n| <head>\n| <body>\n"
377 name: "doctype01.dat #37"
378 html: "<!DOCTYPE HTML PUBLIC'-//W3C//DTD HTML 4.01//EN''http://www.w3.org/TR/html4/strict.dtd'>"
380 expected: "| <!DOCTYPE html \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n| <html>\n| <head>\n| <body>\n"
382 name: "domjs-unsafe.dat #1"
383 html: "<svg><![CDATA[foo\nbar]]>"
385 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo\nbar\"\n"
387 name: "domjs-unsafe.dat #2"
388 html: "<svg><![CDATA[foo\rbar]]>"
390 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo\nbar\"\n"
392 name: "domjs-unsafe.dat #3"
393 html: "<svg><![CDATA[foo\r\nbar]]>"
395 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo\nbar\"\n"
397 name: "domjs-unsafe.dat #4"
398 html: "<script>a='\u0000'</script>"
400 expected: "| <html>\n| <head>\n| <script>\n| \"a='�'\"\n| <body>\n"
402 name: "domjs-unsafe.dat #5"
403 html: "<script type=\"data\"><!--\u0000</script>"
405 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--�\"\n| <body>\n"
407 name: "domjs-unsafe.dat #6"
408 html: "<script type=\"data\"><!--foo\u0000</script>"
410 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--foo�\"\n| <body>\n"
412 name: "domjs-unsafe.dat #7"
413 html: "<script type=\"data\"><!-- foo-\u0000</script>"
415 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!-- foo-�\"\n| <body>\n"
417 name: "domjs-unsafe.dat #8"
418 html: "<script type=\"data\"><!-- foo--\u0000</script>"
420 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!-- foo--�\"\n| <body>\n"
422 name: "domjs-unsafe.dat #9"
423 html: "<script type=\"data\"><!-- foo-"
425 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!-- foo-\"\n| <body>\n"
427 name: "domjs-unsafe.dat #10"
428 html: "<script type=\"data\"><!-- foo-<</script>"
430 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!-- foo-<\"\n| <body>\n"
432 name: "domjs-unsafe.dat #11"
433 html: "<script type=\"data\"><!-- foo-<S"
435 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!-- foo-<S\"\n| <body>\n"
437 name: "domjs-unsafe.dat #12"
438 html: "<script type=\"data\"><!-- foo-</SCRIPT>"
440 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!-- foo-\"\n| <body>\n"
442 name: "domjs-unsafe.dat #13"
443 html: "<script type=\"data\"><!--<p></script>"
445 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--<p>\"\n| <body>\n"
447 name: "domjs-unsafe.dat #14"
448 html: "<script type=\"data\"><!--<script></script></script>"
450 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--<script></script>\"\n| <body>\n"
452 name: "domjs-unsafe.dat #15"
453 html: "<script type=\"data\"><!--<script>\u0000</script></script>"
455 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--<script>�</script>\"\n| <body>\n"
457 name: "domjs-unsafe.dat #16"
458 html: "<script type=\"data\"><!--<script>-\u0000</script></script>"
460 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--<script>-�</script>\"\n| <body>\n"
462 name: "domjs-unsafe.dat #17"
463 html: "<script type=\"data\"><!--<script>--\u0000</script></script>"
465 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--<script>--�</script>\"\n| <body>\n"
467 name: "domjs-unsafe.dat #18"
468 html: "<script type=\"data\"><!--<script>---</script></script>"
470 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--<script>---</script>\"\n| <body>\n"
472 name: "domjs-unsafe.dat #19"
473 html: "<script type=\"data\"><!--<script></scrip></SCRIPT></script>"
475 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--<script></scrip></SCRIPT>\"\n| <body>\n"
477 name: "domjs-unsafe.dat #20"
478 html: "<script type=\"data\"><!--<script></scrip </SCRIPT></script>"
480 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--<script></scrip </SCRIPT>\"\n| <body>\n"
482 name: "domjs-unsafe.dat #21"
483 html: "<script type=\"data\"><!--<script></scrip/</SCRIPT></script>"
485 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--<script></scrip/</SCRIPT>\"\n| <body>\n"
487 name: "domjs-unsafe.dat #22"
488 html: "<script type=\"data\"></scrip/></script>"
490 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"</scrip/>\"\n| <body>\n"
492 name: "domjs-unsafe.dat #23"
493 html: "<script type=\"data\"></scrip ></script>"
495 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"</scrip >\"\n| <body>\n"
497 name: "domjs-unsafe.dat #24"
498 html: "<script type=\"data\"><!--</scrip></script>"
500 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--</scrip>\"\n| <body>\n"
502 name: "domjs-unsafe.dat #25"
503 html: "<script type=\"data\"><!--</scrip </script>"
505 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--</scrip \"\n| <body>\n"
507 name: "domjs-unsafe.dat #26"
508 html: "<script type=\"data\"><!--</scrip/</script>"
510 expected: "| <html>\n| <head>\n| <script>\n| type=\"data\"\n| \"<!--</scrip/\"\n| <body>\n"
512 name: "domjs-unsafe.dat #27"
513 html: "<!DOCTYPE html><!DOCTYPE html>"
515 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
517 name: "domjs-unsafe.dat #28"
518 html: "<html><!DOCTYPE html>"
520 expected: "| <html>\n| <head>\n| <body>\n"
522 name: "domjs-unsafe.dat #29"
523 html: "<html><head><!DOCTYPE html></head>"
525 expected: "| <html>\n| <head>\n| <body>\n"
527 name: "domjs-unsafe.dat #30"
528 html: "<html><head></head><!DOCTYPE html>"
530 expected: "| <html>\n| <head>\n| <body>\n"
532 name: "domjs-unsafe.dat #31"
533 html: "<body></body><!DOCTYPE html>"
535 expected: "| <html>\n| <head>\n| <body>\n"
537 name: "domjs-unsafe.dat #32"
538 html: "<table><!DOCTYPE html></table>"
540 expected: "| <html>\n| <head>\n| <body>\n| <table>\n"
542 name: "domjs-unsafe.dat #33"
543 html: "<select><!DOCTYPE html></select>"
545 expected: "| <html>\n| <head>\n| <body>\n| <select>\n"
547 name: "domjs-unsafe.dat #34"
548 html: "<table><colgroup><!DOCTYPE html></colgroup></table>"
550 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <colgroup>\n"
552 name: "domjs-unsafe.dat #35"
553 html: "<table><colgroup><!--test--></colgroup></table>"
555 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <colgroup>\n| <!-- test -->\n"
557 name: "domjs-unsafe.dat #36"
558 html: "<table><colgroup><html></colgroup></table>"
560 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <colgroup>\n"
562 name: "domjs-unsafe.dat #37"
563 html: "<table><colgroup> foo</colgroup></table>"
565 expected: "| <html>\n| <head>\n| <body>\n| \"foo\"\n| <table>\n| <colgroup>\n| \" \"\n"
567 name: "domjs-unsafe.dat #38"
568 html: "<select><!--test--></select>"
570 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <!-- test -->\n"
572 name: "domjs-unsafe.dat #39"
573 html: "<select><html></select>"
575 expected: "| <html>\n| <head>\n| <body>\n| <select>\n"
577 name: "domjs-unsafe.dat #40"
578 html: "<frameset><html></frameset>"
580 expected: "| <html>\n| <head>\n| <frameset>\n"
582 name: "domjs-unsafe.dat #41"
583 html: "<frameset></frameset><html>"
585 expected: "| <html>\n| <head>\n| <frameset>\n"
587 name: "domjs-unsafe.dat #42"
588 html: "<frameset></frameset><!DOCTYPE html>"
590 expected: "| <html>\n| <head>\n| <frameset>\n"
592 name: "domjs-unsafe.dat #43"
593 html: "<html><body></body></html><!DOCTYPE html>"
595 expected: "| <html>\n| <head>\n| <body>\n"
597 name: "domjs-unsafe.dat #44"
598 html: "<svg><!DOCTYPE html></svg>"
600 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n"
602 name: "domjs-unsafe.dat #45"
603 html: "<svg><font></font></svg>"
605 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg font>\n"
607 name: "domjs-unsafe.dat #46"
608 html: "<svg><font id=foo></font></svg>"
610 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg font>\n| id=\"foo\"\n"
612 name: "domjs-unsafe.dat #47"
613 html: "<svg><font size=4></font></svg>"
615 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <font>\n| size=\"4\"\n"
617 name: "domjs-unsafe.dat #48"
618 html: "<svg><font color=red></font></svg>"
620 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <font>\n| color=\"red\"\n"
622 name: "domjs-unsafe.dat #49"
623 html: "<svg><font font=sans></font></svg>"
625 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg font>\n| font=\"sans\"\n"
627 name: "entities01.dat #1"
630 expected: "| <html>\n| <head>\n| <body>\n| \"FOO>BAR\"\n"
632 name: "entities01.dat #2"
635 expected: "| <html>\n| <head>\n| <body>\n| \"FOO>BAR\"\n"
637 name: "entities01.dat #3"
640 expected: "| <html>\n| <head>\n| <body>\n| \"FOO> BAR\"\n"
642 name: "entities01.dat #4"
645 expected: "| <html>\n| <head>\n| <body>\n| \"FOO>;;BAR\"\n"
647 name: "entities01.dat #5"
648 html: "I'm ¬it; I tell you"
650 expected: "| <html>\n| <head>\n| <body>\n| \"I'm ¬it; I tell you\"\n"
652 name: "entities01.dat #6"
653 html: "I'm ∉ I tell you"
655 expected: "| <html>\n| <head>\n| <body>\n| \"I'm ∉ I tell you\"\n"
657 name: "entities01.dat #7"
660 expected: "| <html>\n| <head>\n| <body>\n| \"FOO& BAR\"\n"
662 name: "entities01.dat #8"
665 expected: "| <html>\n| <head>\n| <body>\n| \"FOO&\"\n| <bar>\n"
667 name: "entities01.dat #9"
668 html: "FOO&&&>BAR"
670 expected: "| <html>\n| <head>\n| <body>\n| \"FOO&&&>BAR\"\n"
672 name: "entities01.dat #10"
675 expected: "| <html>\n| <head>\n| <body>\n| \"FOO)BAR\"\n"
677 name: "entities01.dat #11"
680 expected: "| <html>\n| <head>\n| <body>\n| \"FOOABAR\"\n"
682 name: "entities01.dat #12"
685 expected: "| <html>\n| <head>\n| <body>\n| \"FOOABAR\"\n"
687 name: "entities01.dat #13"
690 expected: "| <html>\n| <head>\n| <body>\n| \"FOO&#BAR\"\n"
692 name: "entities01.dat #14"
695 expected: "| <html>\n| <head>\n| <body>\n| \"FOO&#ZOO\"\n"
697 name: "entities01.dat #15"
700 expected: "| <html>\n| <head>\n| <body>\n| \"FOOºR\"\n"
702 name: "entities01.dat #16"
705 expected: "| <html>\n| <head>\n| <body>\n| \"FOO&#xZOO\"\n"
707 name: "entities01.dat #17"
710 expected: "| <html>\n| <head>\n| <body>\n| \"FOO&#XZOO\"\n"
712 name: "entities01.dat #18"
715 expected: "| <html>\n| <head>\n| <body>\n| \"FOO)BAR\"\n"
717 name: "entities01.dat #19"
720 expected: "| <html>\n| <head>\n| <body>\n| \"FOO䆺R\"\n"
722 name: "entities01.dat #20"
725 expected: "| <html>\n| <head>\n| <body>\n| \"FOOAZOO\"\n"
727 name: "entities01.dat #21"
728 html: "FOO�ZOO"
730 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�ZOO\"\n"
732 name: "entities01.dat #22"
733 html: "FOOxZOO"
735 expected: "| <html>\n| <head>\n| <body>\n| \"FOOxZOO\"\n"
737 name: "entities01.dat #23"
738 html: "FOOyZOO"
740 expected: "| <html>\n| <head>\n| <body>\n| \"FOOyZOO\"\n"
742 name: "entities01.dat #24"
743 html: "FOO€ZOO"
745 expected: "| <html>\n| <head>\n| <body>\n| \"FOO€ZOO\"\n"
747 name: "entities01.dat #25"
748 html: "FOOZOO"
750 expected: "| <html>\n| <head>\n| <body>\n| \"FOO
\81ZOO\"\n"
752 name: "entities01.dat #26"
753 html: "FOO‚ZOO"
755 expected: "| <html>\n| <head>\n| <body>\n| \"FOO‚ZOO\"\n"
757 name: "entities01.dat #27"
758 html: "FOOƒZOO"
760 expected: "| <html>\n| <head>\n| <body>\n| \"FOOƒZOO\"\n"
762 name: "entities01.dat #28"
763 html: "FOO„ZOO"
765 expected: "| <html>\n| <head>\n| <body>\n| \"FOO„ZOO\"\n"
767 name: "entities01.dat #29"
768 html: "FOO…ZOO"
770 expected: "| <html>\n| <head>\n| <body>\n| \"FOO…ZOO\"\n"
772 name: "entities01.dat #30"
773 html: "FOO†ZOO"
775 expected: "| <html>\n| <head>\n| <body>\n| \"FOO†ZOO\"\n"
777 name: "entities01.dat #31"
778 html: "FOO‡ZOO"
780 expected: "| <html>\n| <head>\n| <body>\n| \"FOO‡ZOO\"\n"
782 name: "entities01.dat #32"
783 html: "FOOˆZOO"
785 expected: "| <html>\n| <head>\n| <body>\n| \"FOOˆZOO\"\n"
787 name: "entities01.dat #33"
788 html: "FOO‰ZOO"
790 expected: "| <html>\n| <head>\n| <body>\n| \"FOO‰ZOO\"\n"
792 name: "entities01.dat #34"
793 html: "FOOŠZOO"
795 expected: "| <html>\n| <head>\n| <body>\n| \"FOOŠZOO\"\n"
797 name: "entities01.dat #35"
798 html: "FOO‹ZOO"
800 expected: "| <html>\n| <head>\n| <body>\n| \"FOO‹ZOO\"\n"
802 name: "entities01.dat #36"
803 html: "FOOŒZOO"
805 expected: "| <html>\n| <head>\n| <body>\n| \"FOOŒZOO\"\n"
807 name: "entities01.dat #37"
808 html: "FOOZOO"
810 expected: "| <html>\n| <head>\n| <body>\n| \"FOO
\8dZOO\"\n"
812 name: "entities01.dat #38"
813 html: "FOOŽZOO"
815 expected: "| <html>\n| <head>\n| <body>\n| \"FOOŽZOO\"\n"
817 name: "entities01.dat #39"
818 html: "FOOZOO"
820 expected: "| <html>\n| <head>\n| <body>\n| \"FOO
\8fZOO\"\n"
822 name: "entities01.dat #40"
823 html: "FOOZOO"
825 expected: "| <html>\n| <head>\n| <body>\n| \"FOO
\90ZOO\"\n"
827 name: "entities01.dat #41"
828 html: "FOO‘ZOO"
830 expected: "| <html>\n| <head>\n| <body>\n| \"FOO‘ZOO\"\n"
832 name: "entities01.dat #42"
833 html: "FOO’ZOO"
835 expected: "| <html>\n| <head>\n| <body>\n| \"FOO’ZOO\"\n"
837 name: "entities01.dat #43"
838 html: "FOO“ZOO"
840 expected: "| <html>\n| <head>\n| <body>\n| \"FOO“ZOO\"\n"
842 name: "entities01.dat #44"
843 html: "FOO”ZOO"
845 expected: "| <html>\n| <head>\n| <body>\n| \"FOO”ZOO\"\n"
847 name: "entities01.dat #45"
848 html: "FOO•ZOO"
850 expected: "| <html>\n| <head>\n| <body>\n| \"FOO•ZOO\"\n"
852 name: "entities01.dat #46"
853 html: "FOO–ZOO"
855 expected: "| <html>\n| <head>\n| <body>\n| \"FOO–ZOO\"\n"
857 name: "entities01.dat #47"
858 html: "FOO—ZOO"
860 expected: "| <html>\n| <head>\n| <body>\n| \"FOO—ZOO\"\n"
862 name: "entities01.dat #48"
863 html: "FOO˜ZOO"
865 expected: "| <html>\n| <head>\n| <body>\n| \"FOO˜ZOO\"\n"
867 name: "entities01.dat #49"
868 html: "FOO™ZOO"
870 expected: "| <html>\n| <head>\n| <body>\n| \"FOO™ZOO\"\n"
872 name: "entities01.dat #50"
873 html: "FOOšZOO"
875 expected: "| <html>\n| <head>\n| <body>\n| \"FOOšZOO\"\n"
877 name: "entities01.dat #51"
878 html: "FOO›ZOO"
880 expected: "| <html>\n| <head>\n| <body>\n| \"FOO›ZOO\"\n"
882 name: "entities01.dat #52"
883 html: "FOOœZOO"
885 expected: "| <html>\n| <head>\n| <body>\n| \"FOOœZOO\"\n"
887 name: "entities01.dat #53"
888 html: "FOOZOO"
890 expected: "| <html>\n| <head>\n| <body>\n| \"FOO
\9dZOO\"\n"
892 name: "entities01.dat #54"
893 html: "FOOžZOO"
895 expected: "| <html>\n| <head>\n| <body>\n| \"FOOžZOO\"\n"
897 name: "entities01.dat #55"
898 html: "FOOŸZOO"
900 expected: "| <html>\n| <head>\n| <body>\n| \"FOOŸZOO\"\n"
902 name: "entities01.dat #56"
903 html: "FOO ZOO"
905 expected: "| <html>\n| <head>\n| <body>\n| \"FOO ZOO\"\n"
907 name: "entities01.dat #57"
908 html: "FOO퟿ZOO"
910 expected: "| <html>\n| <head>\n| <body>\n| \"FOOZOO\"\n"
912 name: "entities01.dat #58"
913 html: "FOO�ZOO"
915 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�ZOO\"\n"
917 name: "entities01.dat #59"
918 html: "FOO�ZOO"
920 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�ZOO\"\n"
922 name: "entities01.dat #60"
923 html: "FOO�ZOO"
925 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�ZOO\"\n"
927 name: "entities01.dat #61"
928 html: "FOO�ZOO"
930 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�ZOO\"\n"
932 name: "entities01.dat #62"
933 html: "FOOZOO"
935 expected: "| <html>\n| <head>\n| <body>\n| \"FOOZOO\"\n"
937 name: "entities01.dat #63"
938 html: "FOOZOO"
940 expected: "| <html>\n| <head>\n| <body>\n| \"FOOZOO\"\n"
942 name: "entities01.dat #64"
943 html: "FOO􈟔ZOO"
945 expected: "| <html>\n| <head>\n| <body>\n| \"FOOZOO\"\n"
947 name: "entities01.dat #65"
948 html: "FOOZOO"
950 expected: "| <html>\n| <head>\n| <body>\n| \"FOOZOO\"\n"
952 name: "entities01.dat #66"
953 html: "FOO�ZOO"
955 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�ZOO\"\n"
957 name: "entities01.dat #67"
958 html: "FOO�ZOO"
960 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�ZOO\"\n"
962 name: "entities01.dat #68"
963 html: "FOO�"
965 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�\"\n"
967 name: "entities01.dat #69"
968 html: "FOO�"
970 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�\"\n"
972 name: "entities01.dat #70"
973 html: "FOO�"
975 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�\"\n"
977 name: "entities01.dat #71"
978 html: "FOO�ZOO"
980 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�ZOO\"\n"
982 name: "entities01.dat #72"
983 html: "FOO�ZOO"
985 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�ZOO\"\n"
987 name: "entities01.dat #73"
988 html: "FOO�ZOO"
990 expected: "| <html>\n| <head>\n| <body>\n| \"FOO�ZOO\"\n"
992 name: "entities02.dat #1"
993 html: "<div bar=\"ZZ>YY\"></div>"
995 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ>YY\"\n"
997 name: "entities02.dat #2"
998 html: "<div bar=\"ZZ&\"></div>"
1000 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ&\"\n"
1002 name: "entities02.dat #3"
1003 html: "<div bar='ZZ&'></div>"
1005 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ&\"\n"
1007 name: "entities02.dat #4"
1008 html: "<div bar=ZZ&></div>"
1010 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ&\"\n"
1012 name: "entities02.dat #5"
1013 html: "<div bar=\"ZZ>=YY\"></div>"
1015 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ>=YY\"\n"
1017 name: "entities02.dat #6"
1018 html: "<div bar=\"ZZ>0YY\"></div>"
1020 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ>0YY\"\n"
1022 name: "entities02.dat #7"
1023 html: "<div bar=\"ZZ>9YY\"></div>"
1025 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ>9YY\"\n"
1027 name: "entities02.dat #8"
1028 html: "<div bar=\"ZZ>aYY\"></div>"
1030 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ>aYY\"\n"
1032 name: "entities02.dat #9"
1033 html: "<div bar=\"ZZ>ZYY\"></div>"
1035 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ>ZYY\"\n"
1037 name: "entities02.dat #10"
1038 html: "<div bar=\"ZZ> YY\"></div>"
1040 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ> YY\"\n"
1042 name: "entities02.dat #11"
1043 html: "<div bar=\"ZZ>\"></div>"
1045 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ>\"\n"
1047 name: "entities02.dat #12"
1048 html: "<div bar='ZZ>'></div>"
1050 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ>\"\n"
1052 name: "entities02.dat #13"
1053 html: "<div bar=ZZ>></div>"
1055 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ>\"\n"
1057 name: "entities02.dat #14"
1058 html: "<div bar=\"ZZ£_id=23\"></div>"
1060 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ£_id=23\"\n"
1062 name: "entities02.dat #15"
1063 html: "<div bar=\"ZZ&prod_id=23\"></div>"
1065 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ&prod_id=23\"\n"
1067 name: "entities02.dat #16"
1068 html: "<div bar=\"ZZ£_id=23\"></div>"
1070 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ£_id=23\"\n"
1072 name: "entities02.dat #17"
1073 html: "<div bar=\"ZZ∏_id=23\"></div>"
1075 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ∏_id=23\"\n"
1077 name: "entities02.dat #18"
1078 html: "<div bar=\"ZZ£=23\"></div>"
1080 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ£=23\"\n"
1082 name: "entities02.dat #19"
1083 html: "<div bar=\"ZZ&prod=23\"></div>"
1085 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| bar=\"ZZ&prod=23\"\n"
1087 name: "entities02.dat #20"
1088 html: "<div>ZZ£_id=23</div>"
1090 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"ZZ£_id=23\"\n"
1092 name: "entities02.dat #21"
1093 html: "<div>ZZ&prod_id=23</div>"
1095 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"ZZ&prod_id=23\"\n"
1097 name: "entities02.dat #22"
1098 html: "<div>ZZ£_id=23</div>"
1100 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"ZZ£_id=23\"\n"
1102 name: "entities02.dat #23"
1103 html: "<div>ZZ∏_id=23</div>"
1105 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"ZZ∏_id=23\"\n"
1107 name: "entities02.dat #24"
1108 html: "<div>ZZ£=23</div>"
1110 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"ZZ£=23\"\n"
1112 name: "entities02.dat #25"
1113 html: "<div>ZZ&prod=23</div>"
1115 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"ZZ&prod=23\"\n"
1117 name: "entities02.dat #26"
1118 html: "<div>ZZÆ=</div>"
1119 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"ZZÆ=\"\n"
1121 name: "foreign-fragment.dat #1"
1123 errors: 3,"document-fragment":"svg path"
1124 expected: "| <svg nobr>\n| \"X\"\n"
1126 name: "foreign-fragment.dat #2"
1127 html: "<font color></font>X"
1128 errors: 1,"document-fragment":"svg path"
1129 expected: "| <svg font>\n| color=\"\"\n| \"X\"\n"
1131 name: "foreign-fragment.dat #3"
1132 html: "<font></font>X"
1133 fragment: "svg path"
1134 expected: "| <svg font>\n| \"X\"\n"
1136 name: "foreign-fragment.dat #4"
1138 errors: 3,"document-fragment":"svg path"
1139 expected: "| <svg g>\n| \"X\"\n"
1141 name: "foreign-fragment.dat #5"
1143 errors: 1,"document-fragment":"svg path"
1144 expected: "| \"X\"\n"
1146 name: "foreign-fragment.dat #6"
1147 html: "</foreignObject>X"
1148 errors: 1,"document-fragment":"svg foreignObject"
1149 expected: "| \"X\"\n"
1151 name: "foreign-fragment.dat #7"
1153 errors: 1,"document-fragment":"svg desc"
1154 expected: "| \"X\"\n"
1156 name: "foreign-fragment.dat #8"
1158 errors: 1,"document-fragment":"svg title"
1159 expected: "| \"X\"\n"
1161 name: "foreign-fragment.dat #9"
1163 errors: 1,"document-fragment":"svg svg"
1164 expected: "| \"X\"\n"
1166 name: "foreign-fragment.dat #10"
1168 errors: 1,"document-fragment":"math mfenced"
1169 expected: "| \"X\"\n"
1171 name: "foreign-fragment.dat #11"
1172 html: "</malignmark>X"
1173 errors: 1,"document-fragment":"math malignmark"
1174 expected: "| \"X\"\n"
1176 name: "foreign-fragment.dat #12"
1178 errors: 1,"document-fragment":"math math"
1179 expected: "| \"X\"\n"
1181 name: "foreign-fragment.dat #13"
1182 html: "</annotation-xml>X"
1183 errors: 1,"document-fragment":"math annotation-xml"
1184 expected: "| \"X\"\n"
1186 name: "foreign-fragment.dat #14"
1188 errors: 1,"document-fragment":"math mtext"
1189 expected: "| \"X\"\n"
1191 name: "foreign-fragment.dat #15"
1193 errors: 1,"document-fragment":"math mi"
1194 expected: "| \"X\"\n"
1196 name: "foreign-fragment.dat #16"
1198 errors: 1,"document-fragment":"math mo"
1199 expected: "| \"X\"\n"
1201 name: "foreign-fragment.dat #17"
1203 errors: 1,"document-fragment":"math mn"
1204 expected: "| \"X\"\n"
1206 name: "foreign-fragment.dat #18"
1208 errors: 1,"document-fragment":"math ms"
1209 expected: "| \"X\"\n"
1211 name: "foreign-fragment.dat #19"
1212 html: "<b></b><mglyph/><i></i><malignmark/><u></u><ms/>X"
1213 errors: 3,"document-fragment":"math ms"
1214 expected: "| <b>\n| <math mglyph>\n| <i>\n| <math malignmark>\n| <u>\n| <ms>\n| \"X\"\n"
1216 name: "foreign-fragment.dat #20"
1217 html: "<malignmark></malignmark>"
1219 expected: "| <math malignmark>\n"
1221 name: "foreign-fragment.dat #21"
1224 expected: "| <div>\n"
1226 name: "foreign-fragment.dat #22"
1227 html: "<figure></figure>"
1229 expected: "| <figure>\n"
1231 name: "foreign-fragment.dat #23"
1232 html: "<b></b><mglyph/><i></i><malignmark/><u></u><mn/>X"
1233 errors: 3,"document-fragment":"math mn"
1234 expected: "| <b>\n| <math mglyph>\n| <i>\n| <math malignmark>\n| <u>\n| <mn>\n| \"X\"\n"
1236 name: "foreign-fragment.dat #24"
1237 html: "<malignmark></malignmark>"
1239 expected: "| <math malignmark>\n"
1241 name: "foreign-fragment.dat #25"
1244 expected: "| <div>\n"
1246 name: "foreign-fragment.dat #26"
1247 html: "<figure></figure>"
1249 expected: "| <figure>\n"
1251 name: "foreign-fragment.dat #27"
1252 html: "<b></b><mglyph/><i></i><malignmark/><u></u><mo/>X"
1253 errors: 3,"document-fragment":"math mo"
1254 expected: "| <b>\n| <math mglyph>\n| <i>\n| <math malignmark>\n| <u>\n| <mo>\n| \"X\"\n"
1256 name: "foreign-fragment.dat #28"
1257 html: "<malignmark></malignmark>"
1259 expected: "| <math malignmark>\n"
1261 name: "foreign-fragment.dat #29"
1264 expected: "| <div>\n"
1266 name: "foreign-fragment.dat #30"
1267 html: "<figure></figure>"
1269 expected: "| <figure>\n"
1271 name: "foreign-fragment.dat #31"
1272 html: "<b></b><mglyph/><i></i><malignmark/><u></u><mi/>X"
1273 errors: 3,"document-fragment":"math mi"
1274 expected: "| <b>\n| <math mglyph>\n| <i>\n| <math malignmark>\n| <u>\n| <mi>\n| \"X\"\n"
1276 name: "foreign-fragment.dat #32"
1277 html: "<malignmark></malignmark>"
1279 expected: "| <math malignmark>\n"
1281 name: "foreign-fragment.dat #33"
1284 expected: "| <div>\n"
1286 name: "foreign-fragment.dat #34"
1287 html: "<figure></figure>"
1289 expected: "| <figure>\n"
1291 name: "foreign-fragment.dat #35"
1292 html: "<b></b><mglyph/><i></i><malignmark/><u></u><mtext/>X"
1293 errors: 3,"document-fragment":"math mtext"
1294 expected: "| <b>\n| <math mglyph>\n| <i>\n| <math malignmark>\n| <u>\n| <mtext>\n| \"X\"\n"
1296 name: "foreign-fragment.dat #36"
1297 html: "<malignmark></malignmark>"
1298 fragment: "math mtext"
1299 expected: "| <math malignmark>\n"
1301 name: "foreign-fragment.dat #37"
1303 fragment: "math mtext"
1304 expected: "| <div>\n"
1306 name: "foreign-fragment.dat #38"
1307 html: "<figure></figure>"
1308 fragment: "math mtext"
1309 expected: "| <figure>\n"
1311 name: "foreign-fragment.dat #39"
1313 errors: 1,"document-fragment":"math annotation-xml"
1314 expected: "| <math div>\n"
1316 name: "foreign-fragment.dat #40"
1317 html: "<figure></figure>"
1318 fragment: "math annotation-xml"
1319 expected: "| <math figure>\n"
1321 name: "foreign-fragment.dat #41"
1323 errors: 1,"document-fragment":"math math"
1324 expected: "| <math div>\n"
1326 name: "foreign-fragment.dat #42"
1327 html: "<figure></figure>"
1328 fragment: "math math"
1329 expected: "| <math figure>\n"
1331 name: "foreign-fragment.dat #43"
1333 fragment: "svg foreignObject"
1334 expected: "| <div>\n"
1336 name: "foreign-fragment.dat #44"
1337 html: "<figure></figure>"
1338 fragment: "svg foreignObject"
1339 expected: "| <figure>\n"
1341 name: "foreign-fragment.dat #45"
1343 fragment: "svg title"
1344 expected: "| <div>\n"
1346 name: "foreign-fragment.dat #46"
1347 html: "<figure></figure>"
1348 fragment: "svg title"
1349 expected: "| <figure>\n"
1351 name: "foreign-fragment.dat #47"
1352 html: "<figure></figure>"
1353 fragment: "svg desc"
1354 expected: "| <figure>\n"
1356 name: "foreign-fragment.dat #48"
1357 html: "<div><h1>X</h1></div>"
1358 errors: 2,"document-fragment":"svg svg"
1359 expected: "| <svg div>\n| <svg h1>\n| \"X\"\n"
1361 name: "foreign-fragment.dat #49"
1363 errors: 1,"document-fragment":"svg svg"
1364 expected: "| <svg div>\n"
1366 name: "foreign-fragment.dat #50"
1368 fragment: "svg desc"
1369 expected: "| <div>\n"
1371 name: "foreign-fragment.dat #51"
1372 html: "<figure></figure>"
1373 fragment: "svg desc"
1374 expected: "| <figure>\n"
1376 name: "foreign-fragment.dat #52"
1377 html: "<plaintext><foo>"
1378 errors: 2,"document-fragment":"svg desc"
1379 expected: "| <plaintext>\n| \"<foo>\"\n"
1381 name: "foreign-fragment.dat #53"
1383 errors: 1,"document-fragment":"svg desc"
1384 expected: "| \"X\"\n"
1386 name: "foreign-fragment.dat #54"
1388 errors: 1,"document-fragment":"svg desc"
1389 expected: "| \"X\"\n"
1391 name: "foreign-fragment.dat #55"
1393 errors: 1,"document-fragment":"svg desc"
1394 expected: "| \"X\"\n"
1396 name: "foreign-fragment.dat #56"
1398 errors: 1,"document-fragment":"svg desc"
1399 expected: "| \"X\"\n"
1401 name: "foreign-fragment.dat #57"
1402 html: "<html class=\"foo\">X"
1403 errors: 1,"document-fragment":"svg desc"
1404 expected: "| \"X\"\n"
1406 name: "foreign-fragment.dat #58"
1407 html: "<body class=\"foo\">X"
1408 errors: 1,"document-fragment":"svg desc"
1409 expected: "| \"X\"\n"
1411 name: "html5test-com.dat #1"
1414 expected: "| <html>\n| <head>\n| <body>\n| <div<div>\n"
1416 name: "html5test-com.dat #2"
1417 html: "<div foo<bar=''>"
1419 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| foo<bar=\"\"\n"
1421 name: "html5test-com.dat #3"
1422 html: "<div foo=`bar`>"
1424 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| foo=\"`bar`\"\n"
1426 name: "html5test-com.dat #4"
1427 html: "<div \\\"foo=''>"
1429 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \\\"foo=\"\"\n"
1431 name: "html5test-com.dat #5"
1432 html: "<a href='\\nbar'></a>"
1434 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| href=\"\\nbar\"\n"
1436 name: "html5test-com.dat #6"
1437 html: "<!DOCTYPE html>"
1438 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
1440 name: "html5test-com.dat #7"
1441 html: "⟨⟩"
1443 expected: "| <html>\n| <head>\n| <body>\n| \"⟨⟩\"\n"
1445 name: "html5test-com.dat #8"
1448 expected: "| <html>\n| <head>\n| <body>\n| \"'\"\n"
1450 name: "html5test-com.dat #9"
1451 html: "ⅈ"
1453 expected: "| <html>\n| <head>\n| <body>\n| \"ⅈ\"\n"
1455 name: "html5test-com.dat #10"
1458 expected: "| <html>\n| <head>\n| <body>\n| \"𝕂\"\n"
1460 name: "html5test-com.dat #11"
1463 expected: "| <html>\n| <head>\n| <body>\n| \"∉\"\n"
1465 name: "html5test-com.dat #12"
1466 html: "<?import namespace=\"foo\" implementation=\"#bar\">"
1468 expected: "| <!-- ?import namespace=\"foo\" implementation=\"#bar\" -->\n| <html>\n| <head>\n| <body>\n"
1470 name: "html5test-com.dat #13"
1471 html: "<!--foo--bar-->"
1473 expected: "| <!-- foo--bar -->\n| <html>\n| <head>\n| <body>\n"
1475 name: "html5test-com.dat #14"
1476 html: "<![CDATA[x]]>"
1478 expected: "| <!-- [CDATA[x]] -->\n| <html>\n| <head>\n| <body>\n"
1480 name: "html5test-com.dat #15"
1481 html: "<textarea><!--</textarea>--></textarea>"
1483 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \"<!--\"\n| \"-->\"\n"
1485 name: "html5test-com.dat #16"
1486 html: "<textarea><!--</textarea>-->"
1488 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \"<!--\"\n| \"-->\"\n"
1490 name: "html5test-com.dat #17"
1491 html: "<style><!--</style>--></style>"
1493 expected: "| <html>\n| <head>\n| <style>\n| \"<!--\"\n| <body>\n| \"-->\"\n"
1495 name: "html5test-com.dat #18"
1496 html: "<style><!--</style>-->"
1498 expected: "| <html>\n| <head>\n| <style>\n| \"<!--\"\n| <body>\n| \"-->\"\n"
1500 name: "html5test-com.dat #19"
1501 html: "<ul><li>A </li> <li>B</li></ul>"
1503 expected: "| <html>\n| <head>\n| <body>\n| <ul>\n| <li>\n| \"A \"\n| \" \"\n| <li>\n| \"B\"\n"
1505 name: "html5test-com.dat #20"
1506 html: "<table><form><input type=hidden><input></form><div></div></table>"
1508 expected: "| <html>\n| <head>\n| <body>\n| <input>\n| <div>\n| <table>\n| <form>\n| <input>\n| type=\"hidden\"\n"
1510 name: "html5test-com.dat #21"
1511 html: "<i>A<b>B<p></i>C</b>D"
1513 expected: "| <html>\n| <head>\n| <body>\n| <i>\n| \"A\"\n| <b>\n| \"B\"\n| <b>\n| <p>\n| <b>\n| <i>\n| \"C\"\n| \"D\"\n"
1515 name: "html5test-com.dat #22"
1518 expected: "| <html>\n| <head>\n| <body>\n| <div>\n"
1520 name: "html5test-com.dat #23"
1523 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n"
1525 name: "html5test-com.dat #24"
1526 html: "<math></math>"
1528 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n"
1530 name: "inbody01.dat #1"
1531 html: "<button>1</foo>"
1533 expected: "| <html>\n| <head>\n| <body>\n| <button>\n| \"1\"\n"
1535 name: "inbody01.dat #2"
1536 html: "<foo>1<p>2</foo>"
1538 expected: "| <html>\n| <head>\n| <body>\n| <foo>\n| \"1\"\n| <p>\n| \"2\"\n"
1540 name: "inbody01.dat #3"
1543 expected: "| <html>\n| <head>\n| <body>\n| <dd>\n| \"1\"\n"
1545 name: "inbody01.dat #4"
1546 html: "<foo>1<dd>2</foo>"
1548 expected: "| <html>\n| <head>\n| <body>\n| <foo>\n| \"1\"\n| <dd>\n| \"2\"\n"
1550 name: "isindex.dat #1"
1553 expected: "| <html>\n| <head>\n| <body>\n| <form>\n| <hr>\n| <label>\n| \"This is a searchable index. Enter search keywords: \"\n| <input>\n| name=\"isindex\"\n| <hr>\n"
1555 name: "isindex.dat #2"
1556 html: "<isindex name=\"A\" action=\"B\" prompt=\"C\" foo=\"D\">"
1558 expected: "| <html>\n| <head>\n| <body>\n| <form>\n| action=\"B\"\n| <hr>\n| <label>\n| \"C\"\n| <input>\n| foo=\"D\"\n| name=\"isindex\"\n| <hr>\n"
1560 name: "isindex.dat #3"
1561 html: "<form><isindex>"
1563 expected: "| <html>\n| <head>\n| <body>\n| <form>\n"
1565 name: "main-element.dat #1"
1566 html: "<!doctype html><p>foo<main>bar<p>baz"
1568 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| \"foo\"\n| <main>\n| \"bar\"\n| <p>\n| \"baz\"\n"
1570 name: "main-element.dat #2"
1571 html: "<!doctype html><main><p>foo</main>bar"
1572 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <main>\n| <p>\n| \"foo\"\n| \"bar\"\n"
1574 name: "main-element.dat #3"
1575 html: "<!DOCTYPE html>xxx<svg><x><g><a><main><b>"
1577 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"xxx\"\n| <svg svg>\n| <svg x>\n| <svg g>\n| <svg a>\n| <svg main>\n| <b>\n"
1580 html: "<math><tr><td><mo><tr>"
1582 expected: "| <math math>\n| <math tr>\n| <math td>\n| <math mo>\n"
1585 html: "<math><tr><td><mo><tr>"
1587 expected: "| <math math>\n| <math tr>\n| <math td>\n| <math mo>\n"
1590 html: "<math><thead><mo><tbody>"
1592 expected: "| <math math>\n| <math thead>\n| <math mo>\n"
1595 html: "<math><tfoot><mo><tbody>"
1597 expected: "| <math math>\n| <math tfoot>\n| <math mo>\n"
1600 html: "<math><tbody><mo><tfoot>"
1602 expected: "| <math math>\n| <math tbody>\n| <math mo>\n"
1605 html: "<math><tbody><mo></table>"
1607 expected: "| <math math>\n| <math tbody>\n| <math mo>\n"
1610 html: "<math><thead><mo></table>"
1612 expected: "| <math math>\n| <math thead>\n| <math mo>\n"
1615 html: "<math><tfoot><mo></table>"
1617 expected: "| <math math>\n| <math tfoot>\n| <math mo>\n"
1619 name: "namespace-sensitivity.dat #1"
1620 html: "<body><table><tr><td><svg><td><foreignObject><span></td>Foo"
1621 expected: "| <html>\n| <head>\n| <body>\n| \"Foo\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <svg svg>\n| <svg td>\n| <svg foreignObject>\n| <span>\n"
1623 name: "pending-spec-changes.dat #1"
1624 html: "<input type=\"hidden\"><frameset>"
1626 expected: "| <html>\n| <head>\n| <frameset>\n"
1628 name: "pending-spec-changes.dat #2"
1629 html: "<!DOCTYPE html><table><caption><svg>foo</table>bar"
1631 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <svg svg>\n| \"foo\"\n| \"bar\"\n"
1633 name: "pending-spec-changes.dat #3"
1634 html: "<table><tr><td><svg><desc><td></desc><circle>"
1636 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <svg svg>\n| <svg desc>\n| <td>\n| <circle>\n"
1638 name: "pending-spec-changes-plain-text-unsafe.dat #1"
1639 html: "<body><table>\u0000filler\u0000text\u0000"
1641 expected: "| <html>\n| <head>\n| <body>\n| \"fillertext\"\n| <table>\n"
1643 name: "plain-text-unsafe.dat #1"
1644 html: "FOO
ZOO"
1646 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\rZOO\"\n"
1648 name: "plain-text-unsafe.dat #2"
1649 html: "<html>\u0000<frameset></frameset>"
1651 expected: "| <html>\n| <head>\n| <frameset>\n"
1653 name: "plain-text-unsafe.dat #3"
1654 html: "<html> \u0000 <frameset></frameset>"
1656 expected: "| <html>\n| <head>\n| <frameset>\n"
1658 name: "plain-text-unsafe.dat #4"
1659 html: "<html>a\u0000a<frameset></frameset>"
1661 expected: "| <html>\n| <head>\n| <body>\n| \"aa\"\n"
1663 name: "plain-text-unsafe.dat #5"
1664 html: "<html>\u0000\u0000<frameset></frameset>"
1666 expected: "| <html>\n| <head>\n| <frameset>\n"
1668 name: "plain-text-unsafe.dat #6"
1669 html: "<html>\u0000\n <frameset></frameset>"
1671 expected: "| <html>\n| <head>\n| <frameset>\n"
1673 name: "plain-text-unsafe.dat #7"
1674 html: "<html><select>\u0000"
1676 expected: "| <html>\n| <head>\n| <body>\n| <select>\n"
1678 name: "plain-text-unsafe.dat #8"
1681 expected: "| <html>\n| <head>\n| <body>\n"
1683 name: "plain-text-unsafe.dat #9"
1684 html: "<body>\u0000"
1686 expected: "| <html>\n| <head>\n| <body>\n"
1688 name: "plain-text-unsafe.dat #10"
1689 html: "<plaintext>\u0000filler\u0000text\u0000"
1691 expected: "| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"�filler�text�\"\n"
1693 name: "plain-text-unsafe.dat #11"
1694 html: "<svg><![CDATA[\u0000filler\u0000text\u0000]]>"
1696 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"�filler�text�\"\n"
1698 name: "plain-text-unsafe.dat #12"
1699 html: "<body><!\u0000>"
1701 expected: "| <html>\n| <head>\n| <body>\n| <!-- � -->\n"
1703 name: "plain-text-unsafe.dat #13"
1704 html: "<body><!\u0000filler\u0000text>"
1706 expected: "| <html>\n| <head>\n| <body>\n| <!-- �filler�text -->\n"
1708 name: "plain-text-unsafe.dat #14"
1709 html: "<body><svg><foreignObject>\u0000filler\u0000text"
1711 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg foreignObject>\n| \"fillertext\"\n"
1713 name: "plain-text-unsafe.dat #15"
1714 html: "<svg>\u0000filler\u0000text"
1716 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"�filler�text\"\n"
1718 name: "plain-text-unsafe.dat #16"
1719 html: "<svg>\u0000<frameset>"
1721 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"�\"\n| <svg frameset>\n"
1723 name: "plain-text-unsafe.dat #17"
1724 html: "<svg>\u0000 <frameset>"
1726 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"� \"\n| <svg frameset>\n"
1728 name: "plain-text-unsafe.dat #18"
1729 html: "<svg>\u0000a<frameset>"
1731 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"�a\"\n| <svg frameset>\n"
1733 name: "plain-text-unsafe.dat #19"
1734 html: "<svg>\u0000</svg><frameset>"
1736 expected: "| <html>\n| <head>\n| <frameset>\n"
1738 name: "plain-text-unsafe.dat #20"
1739 html: "<svg>\u0000 </svg><frameset>"
1741 expected: "| <html>\n| <head>\n| <frameset>\n"
1743 name: "plain-text-unsafe.dat #21"
1744 html: "<svg>\u0000a</svg><frameset>"
1746 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"�a\"\n"
1748 name: "plain-text-unsafe.dat #22"
1749 html: "<svg><path></path></svg><frameset>"
1751 expected: "| <html>\n| <head>\n| <frameset>\n"
1753 name: "plain-text-unsafe.dat #23"
1754 html: "<svg><p><frameset>"
1756 expected: "| <html>\n| <head>\n| <frameset>\n"
1758 name: "plain-text-unsafe.dat #24"
1759 html: "<!DOCTYPE html><pre>\r\n\r\nA</pre>"
1760 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"\nA\"\n"
1762 name: "plain-text-unsafe.dat #25"
1763 html: "<!DOCTYPE html><pre>\r\rA</pre>"
1764 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"\nA\"\n"
1766 name: "plain-text-unsafe.dat #26"
1767 html: "<!DOCTYPE html><pre>\rA</pre>"
1768 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"A\"\n"
1770 name: "plain-text-unsafe.dat #27"
1771 html: "<!DOCTYPE html><table><tr><td><math><mtext>\u0000a"
1773 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <math math>\n| <math mtext>\n| \"a\"\n"
1775 name: "plain-text-unsafe.dat #28"
1776 html: "<!DOCTYPE html><table><tr><td><svg><foreignObject>\u0000a"
1778 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <svg svg>\n| <svg foreignObject>\n| \"a\"\n"
1780 name: "plain-text-unsafe.dat #29"
1781 html: "<!DOCTYPE html><math><mi>a\u0000b"
1783 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| \"ab\"\n"
1785 name: "plain-text-unsafe.dat #30"
1786 html: "<!DOCTYPE html><math><mo>a\u0000b"
1788 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mo>\n| \"ab\"\n"
1790 name: "plain-text-unsafe.dat #31"
1791 html: "<!DOCTYPE html><math><mn>a\u0000b"
1793 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mn>\n| \"ab\"\n"
1795 name: "plain-text-unsafe.dat #32"
1796 html: "<!DOCTYPE html><math><ms>a\u0000b"
1798 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math ms>\n| \"ab\"\n"
1800 name: "plain-text-unsafe.dat #33"
1801 html: "<!DOCTYPE html><math><mtext>a\u0000b"
1803 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mtext>\n| \"ab\"\n"
1806 html: "<html><ruby>a<rb>b<rb></ruby></html>"
1808 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rb>\n| \"b\"\n| <rb>\n"
1811 html: "<html><ruby>a<rb>b<rt></ruby></html>"
1813 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rb>\n| \"b\"\n| <rt>\n"
1816 html: "<html><ruby>a<rb>b<rtc></ruby></html>"
1818 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rb>\n| \"b\"\n| <rtc>\n"
1821 html: "<html><ruby>a<rb>b<rp></ruby></html>"
1823 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rb>\n| \"b\"\n| <rp>\n"
1826 html: "<html><ruby>a<rb>b<span></ruby></html>"
1828 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rb>\n| \"b\"\n| <span>\n"
1831 html: "<html><ruby>a<rt>b<rb></ruby></html>"
1833 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rt>\n| \"b\"\n| <rb>\n"
1836 html: "<html><ruby>a<rt>b<rt></ruby></html>"
1838 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rt>\n| \"b\"\n| <rt>\n"
1841 html: "<html><ruby>a<rt>b<rtc></ruby></html>"
1843 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rt>\n| \"b\"\n| <rtc>\n"
1846 html: "<html><ruby>a<rt>b<rp></ruby></html>"
1848 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rt>\n| \"b\"\n| <rp>\n"
1850 name: "ruby.dat #10"
1851 html: "<html><ruby>a<rt>b<span></ruby></html>"
1853 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rt>\n| \"b\"\n| <span>\n"
1855 name: "ruby.dat #11"
1856 html: "<html><ruby>a<rtc>b<rb></ruby></html>"
1858 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rtc>\n| \"b\"\n| <rb>\n"
1860 name: "ruby.dat #12"
1861 html: "<html><ruby>a<rtc>b<rt>c<rt>d</ruby></html>"
1863 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rtc>\n| \"b\"\n| <rt>\n| \"c\"\n| <rt>\n| \"d\"\n"
1865 name: "ruby.dat #13"
1866 html: "<html><ruby>a<rtc>b<rtc></ruby></html>"
1868 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rtc>\n| \"b\"\n| <rtc>\n"
1870 name: "ruby.dat #14"
1871 html: "<html><ruby>a<rtc>b<rp></ruby></html>"
1873 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rtc>\n| \"b\"\n| <rp>\n"
1875 name: "ruby.dat #15"
1876 html: "<html><ruby>a<rtc>b<span></ruby></html>"
1878 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rtc>\n| \"b\"\n| <span>\n"
1880 name: "ruby.dat #16"
1881 html: "<html><ruby>a<rp>b<rb></ruby></html>"
1883 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rp>\n| \"b\"\n| <rb>\n"
1885 name: "ruby.dat #17"
1886 html: "<html><ruby>a<rp>b<rt></ruby></html>"
1888 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rp>\n| \"b\"\n| <rt>\n"
1890 name: "ruby.dat #18"
1891 html: "<html><ruby>a<rp>b<rtc></ruby></html>"
1893 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rp>\n| \"b\"\n| <rtc>\n"
1895 name: "ruby.dat #19"
1896 html: "<html><ruby>a<rp>b<rp></ruby></html>"
1898 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rp>\n| \"b\"\n| <rp>\n"
1900 name: "ruby.dat #20"
1901 html: "<html><ruby>a<rp>b<span></ruby></html>"
1903 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rp>\n| \"b\"\n| <span>\n"
1905 name: "ruby.dat #21"
1906 html: "<html><ruby><rtc><ruby>a<rb>b<rt></ruby></ruby></html>"
1908 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| <rtc>\n| <ruby>\n| \"a\"\n| <rb>\n| \"b\"\n| <rt>\n"
1910 name: "scriptdata01.dat #1"
1911 html: "FOO<script>'Hello'</script>BAR"
1913 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"'Hello'\"\n| \"BAR\"\n"
1915 name: "scriptdata01.dat #2"
1916 html: "FOO<script></script>BAR"
1918 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"BAR\"\n"
1920 name: "scriptdata01.dat #3"
1921 html: "FOO<script></script >BAR"
1923 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"BAR\"\n"
1925 name: "scriptdata01.dat #4"
1926 html: "FOO<script></script/>BAR"
1928 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"BAR\"\n"
1930 name: "scriptdata01.dat #5"
1931 html: "FOO<script></script/ >BAR"
1933 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"BAR\"\n"
1935 name: "scriptdata01.dat #6"
1936 html: "FOO<script type=\"text/plain\"></scriptx>BAR"
1938 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| type=\"text/plain\"\n| \"</scriptx>BAR\"\n"
1940 name: "scriptdata01.dat #7"
1941 html: "FOO<script></script foo=\">\" dd>BAR"
1943 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"BAR\"\n"
1945 name: "scriptdata01.dat #8"
1946 html: "FOO<script>'<'</script>BAR"
1948 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"'<'\"\n| \"BAR\"\n"
1950 name: "scriptdata01.dat #9"
1951 html: "FOO<script>'<!'</script>BAR"
1953 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"'<!'\"\n| \"BAR\"\n"
1955 name: "scriptdata01.dat #10"
1956 html: "FOO<script>'<!-'</script>BAR"
1958 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"'<!-'\"\n| \"BAR\"\n"
1960 name: "scriptdata01.dat #11"
1961 html: "FOO<script>'<!--'</script>BAR"
1963 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"'<!--'\"\n| \"BAR\"\n"
1965 name: "scriptdata01.dat #12"
1966 html: "FOO<script>'<!---'</script>BAR"
1968 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"'<!---'\"\n| \"BAR\"\n"
1970 name: "scriptdata01.dat #13"
1971 html: "FOO<script>'<!-->'</script>BAR"
1973 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"'<!-->'\"\n| \"BAR\"\n"
1975 name: "scriptdata01.dat #14"
1976 html: "FOO<script>'<!-->'</script>BAR"
1978 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"'<!-->'\"\n| \"BAR\"\n"
1980 name: "scriptdata01.dat #15"
1981 html: "FOO<script>'<!-- potato'</script>BAR"
1983 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"'<!-- potato'\"\n| \"BAR\"\n"
1985 name: "scriptdata01.dat #16"
1986 html: "FOO<script>'<!-- <sCrIpt'</script>BAR"
1988 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"'<!-- <sCrIpt'\"\n| \"BAR\"\n"
1990 name: "scriptdata01.dat #17"
1991 html: "FOO<script type=\"text/plain\">'<!-- <sCrIpt>'</script>BAR"
1993 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| type=\"text/plain\"\n| \"'<!-- <sCrIpt>'</script>BAR\"\n"
1995 name: "scriptdata01.dat #18"
1996 html: "FOO<script type=\"text/plain\">'<!-- <sCrIpt> -'</script>BAR"
1998 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| type=\"text/plain\"\n| \"'<!-- <sCrIpt> -'</script>BAR\"\n"
2000 name: "scriptdata01.dat #19"
2001 html: "FOO<script type=\"text/plain\">'<!-- <sCrIpt> --'</script>BAR"
2003 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| type=\"text/plain\"\n| \"'<!-- <sCrIpt> --'</script>BAR\"\n"
2005 name: "scriptdata01.dat #20"
2006 html: "FOO<script>'<!-- <sCrIpt> -->'</script>BAR"
2008 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"'<!-- <sCrIpt> -->'\"\n| \"BAR\"\n"
2010 name: "scriptdata01.dat #21"
2011 html: "FOO<script type=\"text/plain\">'<!-- <sCrIpt> --!>'</script>BAR"
2013 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| type=\"text/plain\"\n| \"'<!-- <sCrIpt> --!>'</script>BAR\"\n"
2015 name: "scriptdata01.dat #22"
2016 html: "FOO<script type=\"text/plain\">'<!-- <sCrIpt> -- >'</script>BAR"
2018 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| type=\"text/plain\"\n| \"'<!-- <sCrIpt> -- >'</script>BAR\"\n"
2020 name: "scriptdata01.dat #23"
2021 html: "FOO<script type=\"text/plain\">'<!-- <sCrIpt '</script>BAR"
2023 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| type=\"text/plain\"\n| \"'<!-- <sCrIpt '</script>BAR\"\n"
2025 name: "scriptdata01.dat #24"
2026 html: "FOO<script type=\"text/plain\">'<!-- <sCrIpt/'</script>BAR"
2028 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| type=\"text/plain\"\n| \"'<!-- <sCrIpt/'</script>BAR\"\n"
2030 name: "scriptdata01.dat #25"
2031 html: "FOO<script type=\"text/plain\">'<!-- <sCrIpt\\'</script>BAR"
2033 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| type=\"text/plain\"\n| \"'<!-- <sCrIpt\\'\"\n| \"BAR\"\n"
2035 name: "scriptdata01.dat #26"
2036 html: "FOO<script type=\"text/plain\">'<!-- <sCrIpt/'</script>BAR</script>QUX"
2038 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| type=\"text/plain\"\n| \"'<!-- <sCrIpt/'</script>BAR\"\n| \"QUX\"\n"
2040 name: "scriptdata01.dat #27"
2041 html: "FOO<script><!--<script>-></script>--></script>QUX"
2043 expected: "| <html>\n| <head>\n| <body>\n| \"FOO\"\n| <script>\n| \"<!--<script>-></script>-->\"\n| \"QUX\"\n"
2045 name: "tables01.dat #1"
2048 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <th>\n"
2050 name: "tables01.dat #2"
2053 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
2055 name: "tables01.dat #3"
2056 html: "<table><col foo='bar'>"
2058 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <colgroup>\n| <col>\n| foo=\"bar\"\n"
2060 name: "tables01.dat #4"
2061 html: "<table><colgroup></html>foo"
2063 expected: "| <html>\n| <head>\n| <body>\n| \"foo\"\n| <table>\n| <colgroup>\n"
2065 name: "tables01.dat #5"
2066 html: "<table></table><p>foo"
2068 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <p>\n| \"foo\"\n"
2070 name: "tables01.dat #6"
2071 html: "<table></body></caption></col></colgroup></html></tbody></td></tfoot></th></thead></tr><td>"
2073 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
2075 name: "tables01.dat #7"
2076 html: "<table><select><option>3</select></table>"
2078 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| \"3\"\n| <table>\n"
2080 name: "tables01.dat #8"
2081 html: "<table><select><table></table></select></table>"
2083 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <table>\n| <table>\n"
2085 name: "tables01.dat #9"
2086 html: "<table><select></table>"
2088 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <table>\n"
2090 name: "tables01.dat #10"
2091 html: "<table><select><option>A<tr><td>B</td></tr></table>"
2093 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| \"A\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"B\"\n"
2095 name: "tables01.dat #11"
2096 html: "<table><td></body></caption></col></colgroup></html>foo"
2098 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"foo\"\n"
2100 name: "tables01.dat #12"
2101 html: "<table><td>A</table>B"
2103 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"A\"\n| \"B\"\n"
2105 name: "tables01.dat #13"
2106 html: "<table><tr><caption>"
2108 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <caption>\n"
2110 name: "tables01.dat #14"
2111 html: "<table><tr></body></caption></col></colgroup></html></td></th><td>foo"
2113 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"foo\"\n"
2115 name: "tables01.dat #15"
2116 html: "<table><td><tr>"
2118 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <tr>\n"
2120 name: "tables01.dat #16"
2121 html: "<table><td><button><td>"
2123 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <button>\n| <td>\n"
2125 name: "tables01.dat #17"
2126 html: "<table><tr><td><svg><desc><td>"
2128 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <svg svg>\n| <svg desc>\n| <td>\n"
2130 name: "template.dat #1"
2131 html: "<body><template>Hello</template>"
2133 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| \"Hello\"\n"
2135 name: "template.dat #2"
2136 html: "<template>Hello</template>"
2138 expected: "| <html>\n| <head>\n| <template>\n| content\n| \"Hello\"\n| <body>\n"
2140 name: "template.dat #3"
2141 html: "<template></template><div></div>"
2143 expected: "| <html>\n| <head>\n| <template>\n| content\n| <body>\n| <div>\n"
2145 name: "template.dat #4"
2146 html: "<html><template>Hello</template>"
2148 expected: "| <html>\n| <head>\n| <template>\n| content\n| \"Hello\"\n| <body>\n"
2150 name: "template.dat #5"
2151 html: "<head><template><div></div></template></head>"
2153 expected: "| <html>\n| <head>\n| <template>\n| content\n| <div>\n| <body>\n"
2155 name: "template.dat #6"
2156 html: "<div><template><div><span></template><b>"
2158 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <template>\n| content\n| <div>\n| <span>\n| <b>\n"
2160 name: "template.dat #7"
2161 html: "<div><template></div>Hello"
2163 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <template>\n| content\n| \"Hello\"\n"
2165 name: "template.dat #8"
2166 html: "<div></template></div>"
2168 expected: "| <html>\n| <head>\n| <body>\n| <div>\n"
2170 name: "template.dat #9"
2171 html: "<table><template></template></table>"
2173 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <template>\n| content\n"
2175 name: "template.dat #10"
2176 html: "<table><template></template></div>"
2178 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <template>\n| content\n"
2180 name: "template.dat #11"
2181 html: "<table><div><template></template></div>"
2183 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <template>\n| content\n| <table>\n"
2185 name: "template.dat #12"
2186 html: "<table><template></template><div></div>"
2188 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <table>\n| <template>\n| content\n"
2190 name: "template.dat #13"
2191 html: "<table> <template></template></table>"
2193 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| \" \"\n| <template>\n| content\n"
2195 name: "template.dat #14"
2196 html: "<table><tbody><template></template></tbody>"
2198 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <template>\n| content\n"
2200 name: "template.dat #15"
2201 html: "<table><tbody><template></tbody></template>"
2203 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <template>\n| content\n"
2205 name: "template.dat #16"
2206 html: "<table><tbody><template></template></tbody></table>"
2208 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <template>\n| content\n"
2210 name: "template.dat #17"
2211 html: "<table><thead><template></template></thead>"
2213 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <thead>\n| <template>\n| content\n"
2215 name: "template.dat #18"
2216 html: "<table><tfoot><template></template></tfoot>"
2218 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tfoot>\n| <template>\n| content\n"
2220 name: "template.dat #19"
2221 html: "<select><template></template></select>"
2223 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <template>\n| content\n"
2225 name: "template.dat #20"
2226 html: "<select><template><option></option></template></select>"
2228 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <template>\n| content\n| <option>\n"
2230 name: "template.dat #21"
2231 html: "<template><option></option></select><option></option></template>"
2233 expected: "| <html>\n| <head>\n| <template>\n| content\n| <option>\n| <option>\n| <body>\n"
2235 name: "template.dat #22"
2236 html: "<select><template></template><option></select>"
2238 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <template>\n| content\n| <option>\n"
2240 name: "template.dat #23"
2241 html: "<select><option><template></template></select>"
2243 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| <template>\n| content\n"
2245 name: "template.dat #24"
2246 html: "<select><template>"
2248 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <template>\n| content\n"
2250 name: "template.dat #25"
2251 html: "<select><option></option><template>"
2253 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| <template>\n| content\n"
2255 name: "template.dat #26"
2256 html: "<select><option></option><template><option>"
2258 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| <template>\n| content\n| <option>\n"
2260 name: "template.dat #27"
2261 html: "<table><thead><template><td></template></table>"
2263 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <thead>\n| <template>\n| content\n| <td>\n"
2265 name: "template.dat #28"
2266 html: "<table><template><thead></template></table>"
2268 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <template>\n| content\n| <thead>\n"
2270 name: "template.dat #29"
2271 html: "<body><table><template><td></tr><div></template></table>"
2273 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <template>\n| content\n| <td>\n| <div>\n"
2275 name: "template.dat #30"
2276 html: "<table><template><thead></template></thead></table>"
2278 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <template>\n| content\n| <thead>\n"
2280 name: "template.dat #31"
2281 html: "<table><thead><template><tr></template></table>"
2283 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <thead>\n| <template>\n| content\n| <tr>\n"
2285 name: "template.dat #32"
2286 html: "<table><template><tr></template></table>"
2288 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <template>\n| content\n| <tr>\n"
2290 name: "template.dat #33"
2291 html: "<table><tr><template><td>"
2293 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <template>\n| content\n| <td>\n"
2295 name: "template.dat #34"
2296 html: "<table><template><tr><template><td></template></tr></template></table>"
2298 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <template>\n| content\n| <tr>\n| <template>\n| content\n| <td>\n"
2300 name: "template.dat #35"
2301 html: "<table><template><tr><template><td></td></template></tr></template></table>"
2303 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <template>\n| content\n| <tr>\n| <template>\n| content\n| <td>\n"
2305 name: "template.dat #36"
2306 html: "<table><template><td></template>"
2308 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <template>\n| content\n| <td>\n"
2310 name: "template.dat #37"
2311 html: "<body><template><td></td></template>"
2313 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <td>\n"
2315 name: "template.dat #38"
2316 html: "<body><template><template><tr></tr></template><td></td></template>"
2318 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <template>\n| content\n| <tr>\n| <td>\n"
2320 name: "template.dat #39"
2321 html: "<table><colgroup><template><col>"
2323 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <colgroup>\n| <template>\n| content\n| <col>\n"
2325 name: "template.dat #40"
2326 html: "<frameset><template><frame></frame></template></frameset>"
2328 expected: "| <html>\n| <head>\n| <frameset>\n| <frame>\n"
2330 name: "template.dat #41"
2331 html: "<template><frame></frame></frameset><frame></frame></template>"
2333 expected: "| <html>\n| <head>\n| <template>\n| content\n| <body>\n"
2335 name: "template.dat #42"
2336 html: "<template><div><frameset><span></span></div><span></span></template>"
2338 expected: "| <html>\n| <head>\n| <template>\n| content\n| <div>\n| <span>\n| <span>\n| <body>\n"
2340 name: "template.dat #43"
2341 html: "<body><template><div><frameset><span></span></div><span></span></template></body>"
2343 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <div>\n| <span>\n| <span>\n"
2345 name: "template.dat #44"
2346 html: "<body><template><script>var i = 1;</script><td></td></template>"
2348 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <script>\n| \"var i = 1;\"\n| <td>\n"
2350 name: "template.dat #45"
2351 html: "<body><template><tr><div></div></tr></template>"
2353 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <tr>\n| <div>\n"
2355 name: "template.dat #46"
2356 html: "<body><template><tr></tr><td></td></template>"
2358 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <tr>\n| <tr>\n| <td>\n"
2360 name: "template.dat #47"
2361 html: "<body><template><td></td></tr><td></td></template>"
2363 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <td>\n| <td>\n"
2365 name: "template.dat #48"
2366 html: "<body><template><td></td><tbody><td></td></template>"
2368 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <td>\n| <td>\n"
2370 name: "template.dat #49"
2371 html: "<body><template><td></td><caption></caption><td></td></template>"
2373 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <td>\n| <td>\n"
2375 name: "template.dat #50"
2376 html: "<body><template><td></td><colgroup></caption><td></td></template>"
2378 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <td>\n| <td>\n"
2380 name: "template.dat #51"
2381 html: "<body><template><td></td></table><td></td></template>"
2383 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <td>\n| <td>\n"
2385 name: "template.dat #52"
2386 html: "<body><template><tr></tr><tbody><tr></tr></template>"
2388 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <tr>\n| <tr>\n"
2390 name: "template.dat #53"
2391 html: "<body><template><tr></tr><caption><tr></tr></template>"
2393 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <tr>\n| <tr>\n"
2395 name: "template.dat #54"
2396 html: "<body><template><tr></tr></table><tr></tr></template>"
2398 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <tr>\n| <tr>\n"
2400 name: "template.dat #55"
2401 html: "<body><template><thead></thead><caption></caption><tbody></tbody></template>"
2403 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <thead>\n| <caption>\n| <tbody>\n"
2405 name: "template.dat #56"
2406 html: "<body><template><thead></thead></table><tbody></tbody></template></body>"
2408 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <thead>\n| <tbody>\n"
2410 name: "template.dat #57"
2411 html: "<body><template><div><tr></tr></div></template>"
2413 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <div>\n"
2415 name: "template.dat #58"
2416 html: "<body><template><em>Hello</em></template>"
2418 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <em>\n| \"Hello\"\n"
2420 name: "template.dat #59"
2421 html: "<body><template><!--comment--></template>"
2423 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <!-- comment -->\n"
2425 name: "template.dat #60"
2426 html: "<body><template><style></style><td></td></template>"
2428 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <style>\n| <td>\n"
2430 name: "template.dat #61"
2431 html: "<body><template><meta><td></td></template>"
2433 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <meta>\n| <td>\n"
2435 name: "template.dat #62"
2436 html: "<body><template><link><td></td></template>"
2438 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <link>\n| <td>\n"
2440 name: "template.dat #63"
2441 html: "<body><template><template><tr></tr></template><td></td></template>"
2443 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <template>\n| content\n| <tr>\n| <td>\n"
2445 name: "template.dat #64"
2446 html: "<body><table><colgroup><template><col></col></template></colgroup></table></body>"
2448 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <colgroup>\n| <template>\n| content\n| <col>\n"
2450 name: "template.dat #65"
2451 html: "<body a=b><template><div></div><body c=d><div></div></body></template></body>"
2453 expected: "| <html>\n| <head>\n| <body>\n| a=\"b\"\n| <template>\n| content\n| <div>\n| <div>\n"
2455 name: "template.dat #66"
2456 html: "<html a=b><template><div><html b=c><span></template>"
2458 expected: "| <html>\n| a=\"b\"\n| <head>\n| <template>\n| content\n| <div>\n| <span>\n| <body>\n"
2460 name: "template.dat #67"
2461 html: "<html a=b><template><col></col><html b=c><col></col></template>"
2463 expected: "| <html>\n| a=\"b\"\n| <head>\n| <template>\n| content\n| <col>\n| <col>\n| <body>\n"
2465 name: "template.dat #68"
2466 html: "<html a=b><template><frame></frame><html b=c><frame></frame></template>"
2468 expected: "| <html>\n| a=\"b\"\n| <head>\n| <template>\n| content\n| <body>\n"
2470 name: "template.dat #69"
2471 html: "<body><template><tr></tr><template></template><td></td></template>"
2473 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <tr>\n| <template>\n| content\n| <tr>\n| <td>\n"
2475 name: "template.dat #70"
2476 html: "<body><template><thead></thead><template><tr></tr></template><tr></tr><tfoot></tfoot></template>"
2478 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <thead>\n| <template>\n| content\n| <tr>\n| <tbody>\n| <tr>\n| <tfoot>\n"
2480 name: "template.dat #71"
2481 html: "<body><template><template><b><template></template></template>text</template>"
2483 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <template>\n| content\n| <b>\n| <template>\n| content\n| \"text\"\n"
2485 name: "template.dat #72"
2486 html: "<body><template><col><colgroup>"
2488 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <col>\n"
2490 name: "template.dat #73"
2491 html: "<body><template><col></colgroup>"
2493 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <col>\n"
2495 name: "template.dat #74"
2496 html: "<body><template><col><colgroup></template></body>"
2498 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <col>\n"
2500 name: "template.dat #75"
2501 html: "<body><template><col><div>"
2503 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <col>\n"
2505 name: "template.dat #76"
2506 html: "<body><template><col></div>"
2508 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <col>\n"
2510 name: "template.dat #77"
2511 html: "<body><template><col>Hello"
2513 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <col>\n"
2515 name: "template.dat #78"
2516 html: "<body><template><i><menu>Foo</i>"
2518 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <i>\n| <menu>\n| <i>\n| \"Foo\"\n"
2520 name: "template.dat #79"
2521 html: "<body><template></div><div>Foo</div><template></template><tr></tr>"
2523 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n| <div>\n| \"Foo\"\n| <template>\n| content\n"
2525 name: "template.dat #80"
2526 html: "<body><div><template></div><tr><td>Foo</td></tr></template>"
2528 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <template>\n| content\n| <tr>\n| <td>\n| \"Foo\"\n"
2530 name: "template.dat #81"
2531 html: "<template></figcaption><sub><table></table>"
2533 expected: "| <html>\n| <head>\n| <template>\n| content\n| <sub>\n| <table>\n| <body>\n"
2535 name: "template.dat #82"
2536 html: "<template><template>"
2538 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <body>\n"
2540 name: "template.dat #83"
2541 html: "<template><div>"
2543 expected: "| <html>\n| <head>\n| <template>\n| content\n| <div>\n| <body>\n"
2545 name: "template.dat #84"
2546 html: "<template><template><div>"
2548 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <div>\n| <body>\n"
2550 name: "template.dat #85"
2551 html: "<template><template><table>"
2553 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <table>\n| <body>\n"
2555 name: "template.dat #86"
2556 html: "<template><template><tbody>"
2558 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <tbody>\n| <body>\n"
2560 name: "template.dat #87"
2561 html: "<template><template><tr>"
2563 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <tr>\n| <body>\n"
2565 name: "template.dat #88"
2566 html: "<template><template><td>"
2568 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <td>\n| <body>\n"
2570 name: "template.dat #89"
2571 html: "<template><template><caption>"
2573 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <caption>\n| <body>\n"
2575 name: "template.dat #90"
2576 html: "<template><template><colgroup>"
2578 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <colgroup>\n| <body>\n"
2580 name: "template.dat #91"
2581 html: "<template><template><col>"
2583 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <col>\n| <body>\n"
2585 name: "template.dat #92"
2586 html: "<template><template><tbody><select>"
2588 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <tbody>\n| <select>\n| <body>\n"
2590 name: "template.dat #93"
2591 html: "<template><template><table>Foo"
2593 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| \"Foo\"\n| <table>\n| <body>\n"
2595 name: "template.dat #94"
2596 html: "<template><template><frame>"
2598 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <body>\n"
2600 name: "template.dat #95"
2601 html: "<template><template><script>var i"
2603 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <script>\n| \"var i\"\n| <body>\n"
2605 name: "template.dat #96"
2606 html: "<template><template><style>var i"
2608 expected: "| <html>\n| <head>\n| <template>\n| content\n| <template>\n| content\n| <style>\n| \"var i\"\n| <body>\n"
2610 name: "template.dat #97"
2611 html: "<template><table></template><body><span>Foo"
2613 expected: "| <html>\n| <head>\n| <template>\n| content\n| <table>\n| <body>\n| <span>\n| \"Foo\"\n"
2615 name: "template.dat #98"
2616 html: "<template><td></template><body><span>Foo"
2618 expected: "| <html>\n| <head>\n| <template>\n| content\n| <td>\n| <body>\n| <span>\n| \"Foo\"\n"
2620 name: "template.dat #99"
2621 html: "<template><object></template><body><span>Foo"
2623 expected: "| <html>\n| <head>\n| <template>\n| content\n| <object>\n| <body>\n| <span>\n| \"Foo\"\n"
2625 name: "template.dat #100"
2626 html: "<template><svg><template>"
2628 expected: "| <html>\n| <head>\n| <template>\n| content\n| <svg svg>\n| <svg template>\n| <body>\n"
2630 name: "template.dat #101"
2631 html: "<template><svg><foo><template><foreignObject><div></template><div>"
2633 expected: "| <html>\n| <head>\n| <template>\n| content\n| <svg svg>\n| <svg foo>\n| <svg template>\n| <svg foreignObject>\n| <div>\n| <body>\n| <div>\n"
2635 name: "template.dat #102"
2636 html: "<dummy><template><span></dummy>"
2638 expected: "| <html>\n| <head>\n| <body>\n| <dummy>\n| <template>\n| content\n| <span>\n"
2640 name: "template.dat #103"
2641 html: "<body><table><tr><td><select><template>Foo</template><caption>A</table>"
2643 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <select>\n| <template>\n| content\n| \"Foo\"\n| <caption>\n| \"A\"\n"
2645 name: "template.dat #104"
2646 html: "<body></body><template>"
2648 expected: "| <html>\n| <head>\n| <body>\n| <template>\n| content\n"
2650 name: "template.dat #105"
2651 html: "<head></head><template>"
2653 expected: "| <html>\n| <head>\n| <template>\n| content\n| <body>\n"
2655 name: "template.dat #106"
2656 html: "<head></head><template>Foo</template>"
2658 expected: "| <html>\n| <head>\n| <template>\n| content\n| \"Foo\"\n| <body>\n"
2660 name: "template.dat #107"
2661 html: "<!DOCTYPE HTML><dummy><table><template><table><template><table><script>"
2663 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <dummy>\n| <table>\n| <template>\n| content\n| <table>\n| <template>\n| content\n| <table>\n| <script>\n"
2665 name: "template.dat #108"
2666 html: "<template><a><table><a>"
2667 expected: "| <html>\n| <head>\n| <template>\n| content\n| <a>\n| <a>\n| <table>\n| <body>"
2669 name: "tests10.dat #1"
2670 html: "<!DOCTYPE html><svg></svg>"
2671 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n"
2673 name: "tests10.dat #2"
2674 html: "<!DOCTYPE html><svg></svg><![CDATA[a]]>"
2676 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <!-- [CDATA[a]] -->\n"
2678 name: "tests10.dat #3"
2679 html: "<!DOCTYPE html><body><svg></svg>"
2680 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n"
2682 name: "tests10.dat #4"
2683 html: "<!DOCTYPE html><body><select><svg></svg></select>"
2685 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
2687 name: "tests10.dat #5"
2688 html: "<!DOCTYPE html><body><select><option><svg></svg></option></select>"
2690 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n"
2692 name: "tests10.dat #6"
2693 html: "<!DOCTYPE html><body><table><svg></svg></table>"
2695 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <table>\n"
2697 name: "tests10.dat #7"
2698 html: "<!DOCTYPE html><body><table><svg><g>foo</g></svg></table>"
2700 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg g>\n| \"foo\"\n| <table>\n"
2702 name: "tests10.dat #8"
2703 html: "<!DOCTYPE html><body><table><svg><g>foo</g><g>bar</g></svg></table>"
2705 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg g>\n| \"foo\"\n| <svg g>\n| \"bar\"\n| <table>\n"
2707 name: "tests10.dat #9"
2708 html: "<!DOCTYPE html><body><table><tbody><svg><g>foo</g><g>bar</g></svg></tbody></table>"
2710 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg g>\n| \"foo\"\n| <svg g>\n| \"bar\"\n| <table>\n| <tbody>\n"
2712 name: "tests10.dat #10"
2713 html: "<!DOCTYPE html><body><table><tbody><tr><svg><g>foo</g><g>bar</g></svg></tr></tbody></table>"
2715 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg g>\n| \"foo\"\n| <svg g>\n| \"bar\"\n| <table>\n| <tbody>\n| <tr>\n"
2717 name: "tests10.dat #11"
2718 html: "<!DOCTYPE html><body><table><tbody><tr><td><svg><g>foo</g><g>bar</g></svg></td></tr></tbody></table>"
2719 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <svg svg>\n| <svg g>\n| \"foo\"\n| <svg g>\n| \"bar\"\n"
2721 name: "tests10.dat #12"
2722 html: "<!DOCTYPE html><body><table><tbody><tr><td><svg><g>foo</g><g>bar</g></svg><p>baz</td></tr></tbody></table>"
2723 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <svg svg>\n| <svg g>\n| \"foo\"\n| <svg g>\n| \"bar\"\n| <p>\n| \"baz\"\n"
2725 name: "tests10.dat #13"
2726 html: "<!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g></svg><p>baz</caption></table>"
2727 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <svg svg>\n| <svg g>\n| \"foo\"\n| <svg g>\n| \"bar\"\n| <p>\n| \"baz\"\n"
2729 name: "tests10.dat #14"
2730 html: "<!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g><p>baz</table><p>quux"
2732 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <svg svg>\n| <svg g>\n| \"foo\"\n| <svg g>\n| \"bar\"\n| <p>\n| \"baz\"\n| <p>\n| \"quux\"\n"
2734 name: "tests10.dat #15"
2735 html: "<!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g>baz</table><p>quux"
2737 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <svg svg>\n| <svg g>\n| \"foo\"\n| <svg g>\n| \"bar\"\n| \"baz\"\n| <p>\n| \"quux\"\n"
2739 name: "tests10.dat #16"
2740 html: "<!DOCTYPE html><body><table><colgroup><svg><g>foo</g><g>bar</g><p>baz</table><p>quux"
2742 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg g>\n| \"foo\"\n| <svg g>\n| \"bar\"\n| <p>\n| \"baz\"\n| <table>\n| <colgroup>\n| <p>\n| \"quux\"\n"
2744 name: "tests10.dat #17"
2745 html: "<!DOCTYPE html><body><table><tr><td><select><svg><g>foo</g><g>bar</g><p>baz</table><p>quux"
2747 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <select>\n| \"foobarbaz\"\n| <p>\n| \"quux\"\n"
2749 name: "tests10.dat #18"
2750 html: "<!DOCTYPE html><body><table><select><svg><g>foo</g><g>bar</g><p>baz</table><p>quux"
2752 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| \"foobarbaz\"\n| <table>\n| <p>\n| \"quux\"\n"
2754 name: "tests10.dat #19"
2755 html: "<!DOCTYPE html><body></body></html><svg><g>foo</g><g>bar</g><p>baz"
2757 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg g>\n| \"foo\"\n| <svg g>\n| \"bar\"\n| <p>\n| \"baz\"\n"
2759 name: "tests10.dat #20"
2760 html: "<!DOCTYPE html><body></body><svg><g>foo</g><g>bar</g><p>baz"
2762 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg g>\n| \"foo\"\n| <svg g>\n| \"bar\"\n| <p>\n| \"baz\"\n"
2764 name: "tests10.dat #21"
2765 html: "<!DOCTYPE html><frameset><svg><g></g><g></g><p><span>"
2767 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
2769 name: "tests10.dat #22"
2770 html: "<!DOCTYPE html><frameset></frameset><svg><g></g><g></g><p><span>"
2772 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
2774 name: "tests10.dat #23"
2775 html: "<!DOCTYPE html><body xlink:href=foo><svg xlink:href=foo></svg>"
2776 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| xlink:href=\"foo\"\n| <svg svg>\n| xlink href=\"foo\"\n"
2778 name: "tests10.dat #24"
2779 html: "<!DOCTYPE html><body xlink:href=foo xml:lang=en><svg><g xml:lang=en xlink:href=foo></g></svg>"
2780 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| xlink:href=\"foo\"\n| xml:lang=\"en\"\n| <svg svg>\n| <svg g>\n| xlink href=\"foo\"\n| xml lang=\"en\"\n"
2782 name: "tests10.dat #25"
2783 html: "<!DOCTYPE html><body xlink:href=foo xml:lang=en><svg><g xml:lang=en xlink:href=foo /></svg>"
2784 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| xlink:href=\"foo\"\n| xml:lang=\"en\"\n| <svg svg>\n| <svg g>\n| xlink href=\"foo\"\n| xml lang=\"en\"\n"
2786 name: "tests10.dat #26"
2787 html: "<!DOCTYPE html><body xlink:href=foo xml:lang=en><svg><g xml:lang=en xlink:href=foo />bar</svg>"
2788 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| xlink:href=\"foo\"\n| xml:lang=\"en\"\n| <svg svg>\n| <svg g>\n| xlink href=\"foo\"\n| xml lang=\"en\"\n| \"bar\"\n"
2790 name: "tests10.dat #27"
2791 html: "<svg></path>"
2793 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n"
2795 name: "tests10.dat #28"
2796 html: "<div><svg></div>a"
2798 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <svg svg>\n| \"a\"\n"
2800 name: "tests10.dat #29"
2801 html: "<div><svg><path></div>a"
2803 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <svg svg>\n| <svg path>\n| \"a\"\n"
2805 name: "tests10.dat #30"
2806 html: "<div><svg><path></svg><path>"
2808 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <svg svg>\n| <svg path>\n| <path>\n"
2810 name: "tests10.dat #31"
2811 html: "<div><svg><path><foreignObject><math></div>a"
2813 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <svg svg>\n| <svg path>\n| <svg foreignObject>\n| <math math>\n| \"a\"\n"
2815 name: "tests10.dat #32"
2816 html: "<div><svg><path><foreignObject><p></div>a"
2818 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <svg svg>\n| <svg path>\n| <svg foreignObject>\n| <p>\n| \"a\"\n"
2820 name: "tests10.dat #33"
2821 html: "<!DOCTYPE html><svg><desc><div><svg><ul>a"
2823 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg desc>\n| <div>\n| <svg svg>\n| <ul>\n| \"a\"\n"
2825 name: "tests10.dat #34"
2826 html: "<!DOCTYPE html><svg><desc><svg><ul>a"
2828 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg desc>\n| <svg svg>\n| <ul>\n| \"a\"\n"
2830 name: "tests10.dat #35"
2831 html: "<!DOCTYPE html><p><svg><desc><p>"
2833 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <svg svg>\n| <svg desc>\n| <p>\n"
2835 name: "tests10.dat #36"
2836 html: "<!DOCTYPE html><p><svg><title><p>"
2838 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <svg svg>\n| <svg title>\n| <p>\n"
2840 name: "tests10.dat #37"
2841 html: "<div><svg><path><foreignObject><p></foreignObject><p>"
2843 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <svg svg>\n| <svg path>\n| <svg foreignObject>\n| <p>\n| <p>\n"
2845 name: "tests10.dat #38"
2846 html: "<math><mi><div><object><div><span></span></div></object></div></mi><mi>"
2848 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| <div>\n| <object>\n| <div>\n| <span>\n| <math mi>\n"
2850 name: "tests10.dat #39"
2851 html: "<math><mi><svg><foreignObject><div><div></div></div></foreignObject></svg></mi><mi>"
2853 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| <svg svg>\n| <svg foreignObject>\n| <div>\n| <div>\n| <math mi>\n"
2855 name: "tests10.dat #40"
2856 html: "<svg><script></script><path>"
2858 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg script>\n| <svg path>\n"
2860 name: "tests10.dat #41"
2861 html: "<table><svg></svg><tr>"
2863 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <table>\n| <tbody>\n| <tr>\n"
2865 name: "tests10.dat #42"
2866 html: "<math><mi><mglyph>"
2868 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| <math mglyph>\n"
2870 name: "tests10.dat #43"
2871 html: "<math><mi><malignmark>"
2873 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| <math malignmark>\n"
2875 name: "tests10.dat #44"
2876 html: "<math><mo><mglyph>"
2878 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math mo>\n| <math mglyph>\n"
2880 name: "tests10.dat #45"
2881 html: "<math><mo><malignmark>"
2883 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math mo>\n| <math malignmark>\n"
2885 name: "tests10.dat #46"
2886 html: "<math><mn><mglyph>"
2888 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math mn>\n| <math mglyph>\n"
2890 name: "tests10.dat #47"
2891 html: "<math><mn><malignmark>"
2893 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math mn>\n| <math malignmark>\n"
2895 name: "tests10.dat #48"
2896 html: "<math><ms><mglyph>"
2898 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math ms>\n| <math mglyph>\n"
2900 name: "tests10.dat #49"
2901 html: "<math><ms><malignmark>"
2903 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math ms>\n| <math malignmark>\n"
2905 name: "tests10.dat #50"
2906 html: "<math><mtext><mglyph>"
2908 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math mtext>\n| <math mglyph>\n"
2910 name: "tests10.dat #51"
2911 html: "<math><mtext><malignmark>"
2913 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math mtext>\n| <math malignmark>\n"
2915 name: "tests10.dat #52"
2916 html: "<math><annotation-xml><svg></svg></annotation-xml><mi>"
2918 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| <svg svg>\n| <math mi>\n"
2920 name: "tests10.dat #53"
2921 html: "<math><annotation-xml><svg><foreignObject><div><math><mi></mi></math><span></span></div></foreignObject><path></path></svg></annotation-xml><mi>"
2923 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| <svg svg>\n| <svg foreignObject>\n| <div>\n| <math math>\n| <math mi>\n| <span>\n| <svg path>\n| <math mi>\n"
2925 name: "tests10.dat #54"
2926 html: "<math><annotation-xml><svg><foreignObject><math><mi><svg></svg></mi><mo></mo></math><span></span></foreignObject><path></path></svg></annotation-xml><mi>"
2928 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| <svg svg>\n| <svg foreignObject>\n| <math math>\n| <math mi>\n| <svg svg>\n| <math mo>\n| <span>\n| <svg path>\n| <math mi>\n"
2930 name: "tests11.dat #1"
2931 html: "<!DOCTYPE html><body><svg attributeName='' attributeType='' baseFrequency='' baseProfile='' calcMode='' clipPathUnits='' diffuseConstant='' edgeMode='' filterUnits='' glyphRef='' gradientTransform='' gradientUnits='' kernelMatrix='' kernelUnitLength='' keyPoints='' keySplines='' keyTimes='' lengthAdjust='' limitingConeAngle='' markerHeight='' markerUnits='' markerWidth='' maskContentUnits='' maskUnits='' numOctaves='' pathLength='' patternContentUnits='' patternTransform='' patternUnits='' pointsAtX='' pointsAtY='' pointsAtZ='' preserveAlpha='' preserveAspectRatio='' primitiveUnits='' refX='' refY='' repeatCount='' repeatDur='' requiredExtensions='' requiredFeatures='' specularConstant='' specularExponent='' spreadMethod='' startOffset='' stdDeviation='' stitchTiles='' surfaceScale='' systemLanguage='' tableValues='' targetX='' targetY='' textLength='' viewBox='' viewTarget='' xChannelSelector='' yChannelSelector='' zoomAndPan=''></svg>"
2932 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| attributeName=\"\"\n| attributeType=\"\"\n| baseFrequency=\"\"\n| baseProfile=\"\"\n| calcMode=\"\"\n| clipPathUnits=\"\"\n| diffuseConstant=\"\"\n| edgeMode=\"\"\n| filterUnits=\"\"\n| glyphRef=\"\"\n| gradientTransform=\"\"\n| gradientUnits=\"\"\n| kernelMatrix=\"\"\n| kernelUnitLength=\"\"\n| keyPoints=\"\"\n| keySplines=\"\"\n| keyTimes=\"\"\n| lengthAdjust=\"\"\n| limitingConeAngle=\"\"\n| markerHeight=\"\"\n| markerUnits=\"\"\n| markerWidth=\"\"\n| maskContentUnits=\"\"\n| maskUnits=\"\"\n| numOctaves=\"\"\n| pathLength=\"\"\n| patternContentUnits=\"\"\n| patternTransform=\"\"\n| patternUnits=\"\"\n| pointsAtX=\"\"\n| pointsAtY=\"\"\n| pointsAtZ=\"\"\n| preserveAlpha=\"\"\n| preserveAspectRatio=\"\"\n| primitiveUnits=\"\"\n| refX=\"\"\n| refY=\"\"\n| repeatCount=\"\"\n| repeatDur=\"\"\n| requiredExtensions=\"\"\n| requiredFeatures=\"\"\n| specularConstant=\"\"\n| specularExponent=\"\"\n| spreadMethod=\"\"\n| startOffset=\"\"\n| stdDeviation=\"\"\n| stitchTiles=\"\"\n| surfaceScale=\"\"\n| systemLanguage=\"\"\n| tableValues=\"\"\n| targetX=\"\"\n| targetY=\"\"\n| textLength=\"\"\n| viewBox=\"\"\n| viewTarget=\"\"\n| xChannelSelector=\"\"\n| yChannelSelector=\"\"\n| zoomAndPan=\"\"\n"
2934 name: "tests11.dat #2"
2935 html: "<!DOCTYPE html><BODY><SVG ATTRIBUTENAME='' ATTRIBUTETYPE='' BASEFREQUENCY='' BASEPROFILE='' CALCMODE='' CLIPPATHUNITS='' DIFFUSECONSTANT='' EDGEMODE='' FILTERUNITS='' GLYPHREF='' GRADIENTTRANSFORM='' GRADIENTUNITS='' KERNELMATRIX='' KERNELUNITLENGTH='' KEYPOINTS='' KEYSPLINES='' KEYTIMES='' LENGTHADJUST='' LIMITINGCONEANGLE='' MARKERHEIGHT='' MARKERUNITS='' MARKERWIDTH='' MASKCONTENTUNITS='' MASKUNITS='' NUMOCTAVES='' PATHLENGTH='' PATTERNCONTENTUNITS='' PATTERNTRANSFORM='' PATTERNUNITS='' POINTSATX='' POINTSATY='' POINTSATZ='' PRESERVEALPHA='' PRESERVEASPECTRATIO='' PRIMITIVEUNITS='' REFX='' REFY='' REPEATCOUNT='' REPEATDUR='' REQUIREDEXTENSIONS='' REQUIREDFEATURES='' SPECULARCONSTANT='' SPECULAREXPONENT='' SPREADMETHOD='' STARTOFFSET='' STDDEVIATION='' STITCHTILES='' SURFACESCALE='' SYSTEMLANGUAGE='' TABLEVALUES='' TARGETX='' TARGETY='' TEXTLENGTH='' VIEWBOX='' VIEWTARGET='' XCHANNELSELECTOR='' YCHANNELSELECTOR='' ZOOMANDPAN=''></SVG>"
2936 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| attributeName=\"\"\n| attributeType=\"\"\n| baseFrequency=\"\"\n| baseProfile=\"\"\n| calcMode=\"\"\n| clipPathUnits=\"\"\n| diffuseConstant=\"\"\n| edgeMode=\"\"\n| filterUnits=\"\"\n| glyphRef=\"\"\n| gradientTransform=\"\"\n| gradientUnits=\"\"\n| kernelMatrix=\"\"\n| kernelUnitLength=\"\"\n| keyPoints=\"\"\n| keySplines=\"\"\n| keyTimes=\"\"\n| lengthAdjust=\"\"\n| limitingConeAngle=\"\"\n| markerHeight=\"\"\n| markerUnits=\"\"\n| markerWidth=\"\"\n| maskContentUnits=\"\"\n| maskUnits=\"\"\n| numOctaves=\"\"\n| pathLength=\"\"\n| patternContentUnits=\"\"\n| patternTransform=\"\"\n| patternUnits=\"\"\n| pointsAtX=\"\"\n| pointsAtY=\"\"\n| pointsAtZ=\"\"\n| preserveAlpha=\"\"\n| preserveAspectRatio=\"\"\n| primitiveUnits=\"\"\n| refX=\"\"\n| refY=\"\"\n| repeatCount=\"\"\n| repeatDur=\"\"\n| requiredExtensions=\"\"\n| requiredFeatures=\"\"\n| specularConstant=\"\"\n| specularExponent=\"\"\n| spreadMethod=\"\"\n| startOffset=\"\"\n| stdDeviation=\"\"\n| stitchTiles=\"\"\n| surfaceScale=\"\"\n| systemLanguage=\"\"\n| tableValues=\"\"\n| targetX=\"\"\n| targetY=\"\"\n| textLength=\"\"\n| viewBox=\"\"\n| viewTarget=\"\"\n| xChannelSelector=\"\"\n| yChannelSelector=\"\"\n| zoomAndPan=\"\"\n"
2938 name: "tests11.dat #3"
2939 html: "<!DOCTYPE html><body><svg attributename='' attributetype='' basefrequency='' baseprofile='' calcmode='' clippathunits='' diffuseconstant='' edgemode='' filterunits='' filterres='' glyphref='' gradienttransform='' gradientunits='' kernelmatrix='' kernelunitlength='' keypoints='' keysplines='' keytimes='' lengthadjust='' limitingconeangle='' markerheight='' markerunits='' markerwidth='' maskcontentunits='' maskunits='' numoctaves='' pathlength='' patterncontentunits='' patterntransform='' patternunits='' pointsatx='' pointsaty='' pointsatz='' preservealpha='' preserveaspectratio='' primitiveunits='' refx='' refy='' repeatcount='' repeatdur='' requiredextensions='' requiredfeatures='' specularconstant='' specularexponent='' spreadmethod='' startoffset='' stddeviation='' stitchtiles='' surfacescale='' systemlanguage='' tablevalues='' targetx='' targety='' textlength='' viewbox='' viewtarget='' xchannelselector='' ychannelselector='' zoomandpan=''></svg>"
2940 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| attributeName=\"\"\n| attributeType=\"\"\n| baseFrequency=\"\"\n| baseProfile=\"\"\n| calcMode=\"\"\n| clipPathUnits=\"\"\n| diffuseConstant=\"\"\n| edgeMode=\"\"\n| filterUnits=\"\"\n| filterres=\"\"\n| glyphRef=\"\"\n| gradientTransform=\"\"\n| gradientUnits=\"\"\n| kernelMatrix=\"\"\n| kernelUnitLength=\"\"\n| keyPoints=\"\"\n| keySplines=\"\"\n| keyTimes=\"\"\n| lengthAdjust=\"\"\n| limitingConeAngle=\"\"\n| markerHeight=\"\"\n| markerUnits=\"\"\n| markerWidth=\"\"\n| maskContentUnits=\"\"\n| maskUnits=\"\"\n| numOctaves=\"\"\n| pathLength=\"\"\n| patternContentUnits=\"\"\n| patternTransform=\"\"\n| patternUnits=\"\"\n| pointsAtX=\"\"\n| pointsAtY=\"\"\n| pointsAtZ=\"\"\n| preserveAlpha=\"\"\n| preserveAspectRatio=\"\"\n| primitiveUnits=\"\"\n| refX=\"\"\n| refY=\"\"\n| repeatCount=\"\"\n| repeatDur=\"\"\n| requiredExtensions=\"\"\n| requiredFeatures=\"\"\n| specularConstant=\"\"\n| specularExponent=\"\"\n| spreadMethod=\"\"\n| startOffset=\"\"\n| stdDeviation=\"\"\n| stitchTiles=\"\"\n| surfaceScale=\"\"\n| systemLanguage=\"\"\n| tableValues=\"\"\n| targetX=\"\"\n| targetY=\"\"\n| textLength=\"\"\n| viewBox=\"\"\n| viewTarget=\"\"\n| xChannelSelector=\"\"\n| yChannelSelector=\"\"\n| zoomAndPan=\"\"\n"
2942 name: "tests11.dat #4"
2943 html: "<!DOCTYPE html><body><math attributeName='' attributeType='' baseFrequency='' baseProfile='' calcMode='' clipPathUnits='' diffuseConstant='' edgeMode='' filterUnits='' glyphRef='' gradientTransform='' gradientUnits='' kernelMatrix='' kernelUnitLength='' keyPoints='' keySplines='' keyTimes='' lengthAdjust='' limitingConeAngle='' markerHeight='' markerUnits='' markerWidth='' maskContentUnits='' maskUnits='' numOctaves='' pathLength='' patternContentUnits='' patternTransform='' patternUnits='' pointsAtX='' pointsAtY='' pointsAtZ='' preserveAlpha='' preserveAspectRatio='' primitiveUnits='' refX='' refY='' repeatCount='' repeatDur='' requiredExtensions='' requiredFeatures='' specularConstant='' specularExponent='' spreadMethod='' startOffset='' stdDeviation='' stitchTiles='' surfaceScale='' systemLanguage='' tableValues='' targetX='' targetY='' textLength='' viewBox='' viewTarget='' xChannelSelector='' yChannelSelector='' zoomAndPan=''></math>"
2944 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| attributename=\"\"\n| attributetype=\"\"\n| basefrequency=\"\"\n| baseprofile=\"\"\n| calcmode=\"\"\n| clippathunits=\"\"\n| diffuseconstant=\"\"\n| edgemode=\"\"\n| filterunits=\"\"\n| glyphref=\"\"\n| gradienttransform=\"\"\n| gradientunits=\"\"\n| kernelmatrix=\"\"\n| kernelunitlength=\"\"\n| keypoints=\"\"\n| keysplines=\"\"\n| keytimes=\"\"\n| lengthadjust=\"\"\n| limitingconeangle=\"\"\n| markerheight=\"\"\n| markerunits=\"\"\n| markerwidth=\"\"\n| maskcontentunits=\"\"\n| maskunits=\"\"\n| numoctaves=\"\"\n| pathlength=\"\"\n| patterncontentunits=\"\"\n| patterntransform=\"\"\n| patternunits=\"\"\n| pointsatx=\"\"\n| pointsaty=\"\"\n| pointsatz=\"\"\n| preservealpha=\"\"\n| preserveaspectratio=\"\"\n| primitiveunits=\"\"\n| refx=\"\"\n| refy=\"\"\n| repeatcount=\"\"\n| repeatdur=\"\"\n| requiredextensions=\"\"\n| requiredfeatures=\"\"\n| specularconstant=\"\"\n| specularexponent=\"\"\n| spreadmethod=\"\"\n| startoffset=\"\"\n| stddeviation=\"\"\n| stitchtiles=\"\"\n| surfacescale=\"\"\n| systemlanguage=\"\"\n| tablevalues=\"\"\n| targetx=\"\"\n| targety=\"\"\n| textlength=\"\"\n| viewbox=\"\"\n| viewtarget=\"\"\n| xchannelselector=\"\"\n| ychannelselector=\"\"\n| zoomandpan=\"\"\n"
2946 name: "tests11.dat #5"
2947 html: "<!DOCTYPE html><body><svg><altGlyph /><altGlyphDef /><altGlyphItem /><animateColor /><animateMotion /><animateTransform /><clipPath /><feBlend /><feColorMatrix /><feComponentTransfer /><feComposite /><feConvolveMatrix /><feDiffuseLighting /><feDisplacementMap /><feDistantLight /><feFlood /><feFuncA /><feFuncB /><feFuncG /><feFuncR /><feGaussianBlur /><feImage /><feMerge /><feMergeNode /><feMorphology /><feOffset /><fePointLight /><feSpecularLighting /><feSpotLight /><feTile /><feTurbulence /><foreignObject /><glyphRef /><linearGradient /><radialGradient /><textPath /></svg>"
2948 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg altGlyph>\n| <svg altGlyphDef>\n| <svg altGlyphItem>\n| <svg animateColor>\n| <svg animateMotion>\n| <svg animateTransform>\n| <svg clipPath>\n| <svg feBlend>\n| <svg feColorMatrix>\n| <svg feComponentTransfer>\n| <svg feComposite>\n| <svg feConvolveMatrix>\n| <svg feDiffuseLighting>\n| <svg feDisplacementMap>\n| <svg feDistantLight>\n| <svg feFlood>\n| <svg feFuncA>\n| <svg feFuncB>\n| <svg feFuncG>\n| <svg feFuncR>\n| <svg feGaussianBlur>\n| <svg feImage>\n| <svg feMerge>\n| <svg feMergeNode>\n| <svg feMorphology>\n| <svg feOffset>\n| <svg fePointLight>\n| <svg feSpecularLighting>\n| <svg feSpotLight>\n| <svg feTile>\n| <svg feTurbulence>\n| <svg foreignObject>\n| <svg glyphRef>\n| <svg linearGradient>\n| <svg radialGradient>\n| <svg textPath>\n"
2950 name: "tests11.dat #6"
2951 html: "<!DOCTYPE html><body><svg><altglyph /><altglyphdef /><altglyphitem /><animatecolor /><animatemotion /><animatetransform /><clippath /><feblend /><fecolormatrix /><fecomponenttransfer /><fecomposite /><feconvolvematrix /><fediffuselighting /><fedisplacementmap /><fedistantlight /><feflood /><fefunca /><fefuncb /><fefuncg /><fefuncr /><fegaussianblur /><feimage /><femerge /><femergenode /><femorphology /><feoffset /><fepointlight /><fespecularlighting /><fespotlight /><fetile /><feturbulence /><foreignobject /><glyphref /><lineargradient /><radialgradient /><textpath /></svg>"
2952 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg altGlyph>\n| <svg altGlyphDef>\n| <svg altGlyphItem>\n| <svg animateColor>\n| <svg animateMotion>\n| <svg animateTransform>\n| <svg clipPath>\n| <svg feBlend>\n| <svg feColorMatrix>\n| <svg feComponentTransfer>\n| <svg feComposite>\n| <svg feConvolveMatrix>\n| <svg feDiffuseLighting>\n| <svg feDisplacementMap>\n| <svg feDistantLight>\n| <svg feFlood>\n| <svg feFuncA>\n| <svg feFuncB>\n| <svg feFuncG>\n| <svg feFuncR>\n| <svg feGaussianBlur>\n| <svg feImage>\n| <svg feMerge>\n| <svg feMergeNode>\n| <svg feMorphology>\n| <svg feOffset>\n| <svg fePointLight>\n| <svg feSpecularLighting>\n| <svg feSpotLight>\n| <svg feTile>\n| <svg feTurbulence>\n| <svg foreignObject>\n| <svg glyphRef>\n| <svg linearGradient>\n| <svg radialGradient>\n| <svg textPath>\n"
2954 name: "tests11.dat #7"
2955 html: "<!DOCTYPE html><BODY><SVG><ALTGLYPH /><ALTGLYPHDEF /><ALTGLYPHITEM /><ANIMATECOLOR /><ANIMATEMOTION /><ANIMATETRANSFORM /><CLIPPATH /><FEBLEND /><FECOLORMATRIX /><FECOMPONENTTRANSFER /><FECOMPOSITE /><FECONVOLVEMATRIX /><FEDIFFUSELIGHTING /><FEDISPLACEMENTMAP /><FEDISTANTLIGHT /><FEFLOOD /><FEFUNCA /><FEFUNCB /><FEFUNCG /><FEFUNCR /><FEGAUSSIANBLUR /><FEIMAGE /><FEMERGE /><FEMERGENODE /><FEMORPHOLOGY /><FEOFFSET /><FEPOINTLIGHT /><FESPECULARLIGHTING /><FESPOTLIGHT /><FETILE /><FETURBULENCE /><FOREIGNOBJECT /><GLYPHREF /><LINEARGRADIENT /><RADIALGRADIENT /><TEXTPATH /></SVG>"
2956 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg altGlyph>\n| <svg altGlyphDef>\n| <svg altGlyphItem>\n| <svg animateColor>\n| <svg animateMotion>\n| <svg animateTransform>\n| <svg clipPath>\n| <svg feBlend>\n| <svg feColorMatrix>\n| <svg feComponentTransfer>\n| <svg feComposite>\n| <svg feConvolveMatrix>\n| <svg feDiffuseLighting>\n| <svg feDisplacementMap>\n| <svg feDistantLight>\n| <svg feFlood>\n| <svg feFuncA>\n| <svg feFuncB>\n| <svg feFuncG>\n| <svg feFuncR>\n| <svg feGaussianBlur>\n| <svg feImage>\n| <svg feMerge>\n| <svg feMergeNode>\n| <svg feMorphology>\n| <svg feOffset>\n| <svg fePointLight>\n| <svg feSpecularLighting>\n| <svg feSpotLight>\n| <svg feTile>\n| <svg feTurbulence>\n| <svg foreignObject>\n| <svg glyphRef>\n| <svg linearGradient>\n| <svg radialGradient>\n| <svg textPath>\n"
2958 name: "tests11.dat #8"
2959 html: "<!DOCTYPE html><body><math><altGlyph /><altGlyphDef /><altGlyphItem /><animateColor /><animateMotion /><animateTransform /><clipPath /><feBlend /><feColorMatrix /><feComponentTransfer /><feComposite /><feConvolveMatrix /><feDiffuseLighting /><feDisplacementMap /><feDistantLight /><feFlood /><feFuncA /><feFuncB /><feFuncG /><feFuncR /><feGaussianBlur /><feImage /><feMerge /><feMergeNode /><feMorphology /><feOffset /><fePointLight /><feSpecularLighting /><feSpotLight /><feTile /><feTurbulence /><foreignObject /><glyphRef /><linearGradient /><radialGradient /><textPath /></math>"
2960 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math altglyph>\n| <math altglyphdef>\n| <math altglyphitem>\n| <math animatecolor>\n| <math animatemotion>\n| <math animatetransform>\n| <math clippath>\n| <math feblend>\n| <math fecolormatrix>\n| <math fecomponenttransfer>\n| <math fecomposite>\n| <math feconvolvematrix>\n| <math fediffuselighting>\n| <math fedisplacementmap>\n| <math fedistantlight>\n| <math feflood>\n| <math fefunca>\n| <math fefuncb>\n| <math fefuncg>\n| <math fefuncr>\n| <math fegaussianblur>\n| <math feimage>\n| <math femerge>\n| <math femergenode>\n| <math femorphology>\n| <math feoffset>\n| <math fepointlight>\n| <math fespecularlighting>\n| <math fespotlight>\n| <math fetile>\n| <math feturbulence>\n| <math foreignobject>\n| <math glyphref>\n| <math lineargradient>\n| <math radialgradient>\n| <math textpath>\n"
2962 name: "tests11.dat #9"
2963 html: "<!DOCTYPE html><body><svg><solidColor /></svg>"
2964 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg solidcolor>\n"
2966 name: "tests12.dat #1"
2967 html: "<!DOCTYPE html><body><p>foo<math><mtext><i>baz</i></mtext><annotation-xml><svg><desc><b>eggs</b></desc><g><foreignObject><P>spam<TABLE><tr><td><img></td></table></foreignObject></g><g>quux</g></svg></annotation-xml></math>bar"
2968 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| \"foo\"\n| <math math>\n| <math mtext>\n| <i>\n| \"baz\"\n| <math annotation-xml>\n| <svg svg>\n| <svg desc>\n| <b>\n| \"eggs\"\n| <svg g>\n| <svg foreignObject>\n| <p>\n| \"spam\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <img>\n| <svg g>\n| \"quux\"\n| \"bar\"\n"
2970 name: "tests12.dat #2"
2971 html: "<!DOCTYPE html><body>foo<math><mtext><i>baz</i></mtext><annotation-xml><svg><desc><b>eggs</b></desc><g><foreignObject><P>spam<TABLE><tr><td><img></td></table></foreignObject></g><g>quux</g></svg></annotation-xml></math>bar"
2972 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"foo\"\n| <math math>\n| <math mtext>\n| <i>\n| \"baz\"\n| <math annotation-xml>\n| <svg svg>\n| <svg desc>\n| <b>\n| \"eggs\"\n| <svg g>\n| <svg foreignObject>\n| <p>\n| \"spam\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <img>\n| <svg g>\n| \"quux\"\n| \"bar\"\n"
2974 name: "tests14.dat #1"
2975 html: "<!DOCTYPE html><html><body><xyz:abc></xyz:abc>"
2976 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <xyz:abc>\n"
2978 name: "tests14.dat #2"
2979 html: "<!DOCTYPE html><html><body><xyz:abc></xyz:abc><span></span>"
2980 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <xyz:abc>\n| <span>\n"
2982 name: "tests14.dat #3"
2983 html: "<!DOCTYPE html><html><html abc:def=gh><xyz:abc></xyz:abc>"
2985 expected: "| <!DOCTYPE html>\n| <html>\n| abc:def=\"gh\"\n| <head>\n| <body>\n| <xyz:abc>\n"
2987 name: "tests14.dat #4"
2988 html: "<!DOCTYPE html><html xml:lang=bar><html xml:lang=foo>"
2990 expected: "| <!DOCTYPE html>\n| <html>\n| xml:lang=\"bar\"\n| <head>\n| <body>\n"
2992 name: "tests14.dat #5"
2993 html: "<!DOCTYPE html><html 123=456>"
2994 expected: "| <!DOCTYPE html>\n| <html>\n| 123=\"456\"\n| <head>\n| <body>\n"
2996 name: "tests14.dat #6"
2997 html: "<!DOCTYPE html><html 123=456><html 789=012>"
2999 expected: "| <!DOCTYPE html>\n| <html>\n| 123=\"456\"\n| 789=\"012\"\n| <head>\n| <body>\n"
3001 name: "tests14.dat #7"
3002 html: "<!DOCTYPE html><html><body 789=012>"
3003 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| 789=\"012\"\n"
3005 name: "tests15.dat #1"
3006 html: "<!DOCTYPE html><p><b><i><u></p> <p>X"
3008 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <i>\n| <u>\n| <b>\n| <i>\n| <u>\n| \" \"\n| <p>\n| \"X\"\n"
3010 name: "tests15.dat #2"
3011 html: "<p><b><i><u></p>\n<p>X"
3013 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <i>\n| <u>\n| <b>\n| <i>\n| <u>\n| \"\n\"\n| <p>\n| \"X\"\n"
3015 name: "tests15.dat #3"
3016 html: "<!doctype html></html> <head>"
3018 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" \"\n"
3020 name: "tests15.dat #4"
3021 html: "<!doctype html></body><meta>"
3023 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <meta>\n"
3025 name: "tests15.dat #5"
3026 html: "<html></html><!-- foo -->"
3028 expected: "| <html>\n| <head>\n| <body>\n| <!-- foo -->\n"
3030 name: "tests15.dat #6"
3031 html: "<!doctype html></body><title>X</title>"
3033 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <title>\n| \"X\"\n"
3035 name: "tests15.dat #7"
3036 html: "<!doctype html><table> X<meta></table>"
3038 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" X\"\n| <meta>\n| <table>\n"
3040 name: "tests15.dat #8"
3041 html: "<!doctype html><table> x</table>"
3043 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" x\"\n| <table>\n"
3045 name: "tests15.dat #9"
3046 html: "<!doctype html><table> x </table>"
3048 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" x \"\n| <table>\n"
3050 name: "tests15.dat #10"
3051 html: "<!doctype html><table><tr> x</table>"
3053 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" x\"\n| <table>\n| <tbody>\n| <tr>\n"
3055 name: "tests15.dat #11"
3056 html: "<!doctype html><table>X<style> <tr>x </style> </table>"
3058 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"X\"\n| <table>\n| <style>\n| \" <tr>x \"\n| \" \"\n"
3060 name: "tests15.dat #12"
3061 html: "<!doctype html><div><table><a>foo</a> <tr><td>bar</td> </tr></table></div>"
3063 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <div>\n| <a>\n| \"foo\"\n| <table>\n| \" \"\n| <tbody>\n| <tr>\n| <td>\n| \"bar\"\n| \" \"\n"
3065 name: "tests15.dat #13"
3066 html: "<frame></frame></frame><frameset><frame><frameset><frame></frameset><noframes></frameset><noframes>"
3068 expected: "| <html>\n| <head>\n| <frameset>\n| <frame>\n| <frameset>\n| <frame>\n| <noframes>\n| \"</frameset><noframes>\"\n"
3070 name: "tests15.dat #14"
3071 html: "<!DOCTYPE html><object></html>"
3073 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <object>\n"
3075 name: "tests16.dat #1"
3076 html: "<!doctype html><script>"
3078 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| <body>\n"
3080 name: "tests16.dat #2"
3081 html: "<!doctype html><script>a"
3083 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"a\"\n| <body>\n"
3085 name: "tests16.dat #3"
3086 html: "<!doctype html><script><"
3088 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<\"\n| <body>\n"
3090 name: "tests16.dat #4"
3091 html: "<!doctype html><script></"
3093 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</\"\n| <body>\n"
3095 name: "tests16.dat #5"
3096 html: "<!doctype html><script></S"
3098 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</S\"\n| <body>\n"
3100 name: "tests16.dat #6"
3101 html: "<!doctype html><script></SC"
3103 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</SC\"\n| <body>\n"
3105 name: "tests16.dat #7"
3106 html: "<!doctype html><script></SCR"
3108 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</SCR\"\n| <body>\n"
3110 name: "tests16.dat #8"
3111 html: "<!doctype html><script></SCRI"
3113 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</SCRI\"\n| <body>\n"
3115 name: "tests16.dat #9"
3116 html: "<!doctype html><script></SCRIP"
3118 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</SCRIP\"\n| <body>\n"
3120 name: "tests16.dat #10"
3121 html: "<!doctype html><script></SCRIPT"
3123 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</SCRIPT\"\n| <body>\n"
3125 name: "tests16.dat #11"
3126 html: "<!doctype html><script></SCRIPT "
3128 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| <body>\n"
3130 name: "tests16.dat #12"
3131 html: "<!doctype html><script></s"
3133 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</s\"\n| <body>\n"
3135 name: "tests16.dat #13"
3136 html: "<!doctype html><script></sc"
3138 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</sc\"\n| <body>\n"
3140 name: "tests16.dat #14"
3141 html: "<!doctype html><script></scr"
3143 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</scr\"\n| <body>\n"
3145 name: "tests16.dat #15"
3146 html: "<!doctype html><script></scri"
3148 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</scri\"\n| <body>\n"
3150 name: "tests16.dat #16"
3151 html: "<!doctype html><script></scrip"
3153 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</scrip\"\n| <body>\n"
3155 name: "tests16.dat #17"
3156 html: "<!doctype html><script></script"
3158 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"</script\"\n| <body>\n"
3160 name: "tests16.dat #18"
3161 html: "<!doctype html><script></script "
3163 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| <body>\n"
3165 name: "tests16.dat #19"
3166 html: "<!doctype html><script><!"
3168 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!\"\n| <body>\n"
3170 name: "tests16.dat #20"
3171 html: "<!doctype html><script><!a"
3173 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!a\"\n| <body>\n"
3175 name: "tests16.dat #21"
3176 html: "<!doctype html><script><!-"
3178 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!-\"\n| <body>\n"
3180 name: "tests16.dat #22"
3181 html: "<!doctype html><script><!-a"
3183 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!-a\"\n| <body>\n"
3185 name: "tests16.dat #23"
3186 html: "<!doctype html><script><!--"
3188 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--\"\n| <body>\n"
3190 name: "tests16.dat #24"
3191 html: "<!doctype html><script><!--a"
3193 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--a\"\n| <body>\n"
3195 name: "tests16.dat #25"
3196 html: "<!doctype html><script><!--<"
3198 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<\"\n| <body>\n"
3200 name: "tests16.dat #26"
3201 html: "<!doctype html><script><!--<a"
3203 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<a\"\n| <body>\n"
3205 name: "tests16.dat #27"
3206 html: "<!doctype html><script><!--</"
3208 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--</\"\n| <body>\n"
3210 name: "tests16.dat #28"
3211 html: "<!doctype html><script><!--</script"
3213 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--</script\"\n| <body>\n"
3215 name: "tests16.dat #29"
3216 html: "<!doctype html><script><!--</script "
3218 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--\"\n| <body>\n"
3220 name: "tests16.dat #30"
3221 html: "<!doctype html><script><!--<s"
3223 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<s\"\n| <body>\n"
3225 name: "tests16.dat #31"
3226 html: "<!doctype html><script><!--<script"
3228 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script\"\n| <body>\n"
3230 name: "tests16.dat #32"
3231 html: "<!doctype html><script><!--<script "
3233 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script \"\n| <body>\n"
3235 name: "tests16.dat #33"
3236 html: "<!doctype html><script><!--<script <"
3238 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script <\"\n| <body>\n"
3240 name: "tests16.dat #34"
3241 html: "<!doctype html><script><!--<script <a"
3243 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script <a\"\n| <body>\n"
3245 name: "tests16.dat #35"
3246 html: "<!doctype html><script><!--<script </"
3248 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </\"\n| <body>\n"
3250 name: "tests16.dat #36"
3251 html: "<!doctype html><script><!--<script </s"
3253 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </s\"\n| <body>\n"
3255 name: "tests16.dat #37"
3256 html: "<!doctype html><script><!--<script </script"
3258 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </script\"\n| <body>\n"
3260 name: "tests16.dat #38"
3261 html: "<!doctype html><script><!--<script </scripta"
3263 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </scripta\"\n| <body>\n"
3265 name: "tests16.dat #39"
3266 html: "<!doctype html><script><!--<script </script "
3268 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </script \"\n| <body>\n"
3270 name: "tests16.dat #40"
3271 html: "<!doctype html><script><!--<script </script>"
3273 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </script>\"\n| <body>\n"
3275 name: "tests16.dat #41"
3276 html: "<!doctype html><script><!--<script </script/"
3278 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </script/\"\n| <body>\n"
3280 name: "tests16.dat #42"
3281 html: "<!doctype html><script><!--<script </script <"
3283 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </script <\"\n| <body>\n"
3285 name: "tests16.dat #43"
3286 html: "<!doctype html><script><!--<script </script <a"
3288 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </script <a\"\n| <body>\n"
3290 name: "tests16.dat #44"
3291 html: "<!doctype html><script><!--<script </script </"
3293 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </script </\"\n| <body>\n"
3295 name: "tests16.dat #45"
3296 html: "<!doctype html><script><!--<script </script </script"
3298 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </script </script\"\n| <body>\n"
3300 name: "tests16.dat #46"
3301 html: "<!doctype html><script><!--<script </script </script "
3303 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </script \"\n| <body>\n"
3305 name: "tests16.dat #47"
3306 html: "<!doctype html><script><!--<script </script </script/"
3308 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </script \"\n| <body>\n"
3310 name: "tests16.dat #48"
3311 html: "<!doctype html><script><!--<script </script </script>"
3312 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script </script \"\n| <body>\n"
3314 name: "tests16.dat #49"
3315 html: "<!doctype html><script><!--<script -"
3317 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script -\"\n| <body>\n"
3319 name: "tests16.dat #50"
3320 html: "<!doctype html><script><!--<script -a"
3322 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script -a\"\n| <body>\n"
3324 name: "tests16.dat #51"
3325 html: "<!doctype html><script><!--<script -<"
3327 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script -<\"\n| <body>\n"
3329 name: "tests16.dat #52"
3330 html: "<!doctype html><script><!--<script --"
3332 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script --\"\n| <body>\n"
3334 name: "tests16.dat #53"
3335 html: "<!doctype html><script><!--<script --a"
3337 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script --a\"\n| <body>\n"
3339 name: "tests16.dat #54"
3340 html: "<!doctype html><script><!--<script --<"
3342 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script --<\"\n| <body>\n"
3344 name: "tests16.dat #55"
3345 html: "<!doctype html><script><!--<script -->"
3347 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script -->\"\n| <body>\n"
3349 name: "tests16.dat #56"
3350 html: "<!doctype html><script><!--<script --><"
3352 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script --><\"\n| <body>\n"
3354 name: "tests16.dat #57"
3355 html: "<!doctype html><script><!--<script --></"
3357 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script --></\"\n| <body>\n"
3359 name: "tests16.dat #58"
3360 html: "<!doctype html><script><!--<script --></script"
3362 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script --></script\"\n| <body>\n"
3364 name: "tests16.dat #59"
3365 html: "<!doctype html><script><!--<script --></script "
3367 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script -->\"\n| <body>\n"
3369 name: "tests16.dat #60"
3370 html: "<!doctype html><script><!--<script --></script/"
3372 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script -->\"\n| <body>\n"
3374 name: "tests16.dat #61"
3375 html: "<!doctype html><script><!--<script --></script>"
3376 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script -->\"\n| <body>\n"
3378 name: "tests16.dat #62"
3379 html: "<!doctype html><script><!--<script><\\/script>--></script>"
3380 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script><\\/script>-->\"\n| <body>\n"
3382 name: "tests16.dat #63"
3383 html: "<!doctype html><script><!--<script></scr'+'ipt>--></script>"
3384 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script></scr'+'ipt>-->\"\n| <body>\n"
3386 name: "tests16.dat #64"
3387 html: "<!doctype html><script><!--<script></script><script></script></script>"
3388 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>\"\n| <body>\n"
3390 name: "tests16.dat #65"
3391 html: "<!doctype html><script><!--<script></script><script></script>--><!--</script>"
3392 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>--><!--\"\n| <body>\n"
3394 name: "tests16.dat #66"
3395 html: "<!doctype html><script><!--<script></script><script></script>-- ></script>"
3396 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>-- >\"\n| <body>\n"
3398 name: "tests16.dat #67"
3399 html: "<!doctype html><script><!--<script></script><script></script>- -></script>"
3400 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>- ->\"\n| <body>\n"
3402 name: "tests16.dat #68"
3403 html: "<!doctype html><script><!--<script></script><script></script>- - ></script>"
3404 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>- - >\"\n| <body>\n"
3406 name: "tests16.dat #69"
3407 html: "<!doctype html><script><!--<script></script><script></script>-></script>"
3408 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>->\"\n| <body>\n"
3410 name: "tests16.dat #70"
3411 html: "<!doctype html><script><!--<script>--!></script>X"
3413 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script>--!></script>X\"\n| <body>\n"
3415 name: "tests16.dat #71"
3416 html: "<!doctype html><script><!--<scr'+'ipt></script>--></script>"
3418 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<scr'+'ipt>\"\n| <body>\n| \"-->\"\n"
3420 name: "tests16.dat #72"
3421 html: "<!doctype html><script><!--<script></scr'+'ipt></script>X"
3423 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"<!--<script></scr'+'ipt></script>X\"\n| <body>\n"
3425 name: "tests16.dat #73"
3426 html: "<!doctype html><style><!--<style></style>--></style>"
3428 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <style>\n| \"<!--<style>\"\n| <body>\n| \"-->\"\n"
3430 name: "tests16.dat #74"
3431 html: "<!doctype html><style><!--</style>X"
3432 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <style>\n| \"<!--\"\n| <body>\n| \"X\"\n"
3434 name: "tests16.dat #75"
3435 html: "<!doctype html><style><!--...</style>...--></style>"
3437 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <style>\n| \"<!--...\"\n| <body>\n| \"...-->\"\n"
3439 name: "tests16.dat #76"
3440 html: "<!doctype html><style><!--<br><html xmlns:v=\"urn:schemas-microsoft-com:vml\"><!--[if !mso]><style></style>X"
3441 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <style>\n| \"<!--<br><html xmlns:v=\"urn:schemas-microsoft-com:vml\"><!--[if !mso]><style>\"\n| <body>\n| \"X\"\n"
3443 name: "tests16.dat #77"
3444 html: "<!doctype html><style><!--...<style><!--...--!></style>--></style>"
3446 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <style>\n| \"<!--...<style><!--...--!>\"\n| <body>\n| \"-->\"\n"
3448 name: "tests16.dat #78"
3449 html: "<!doctype html><style><!--...</style><!-- --><style>@import ...</style>"
3450 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <style>\n| \"<!--...\"\n| <!-- -->\n| <style>\n| \"@import ...\"\n| <body>\n"
3452 name: "tests16.dat #79"
3453 html: "<!doctype html><style>...<style><!--...</style><!-- --></style>"
3455 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <style>\n| \"...<style><!--...\"\n| <!-- -->\n| <body>\n"
3457 name: "tests16.dat #80"
3458 html: "<!doctype html><style>...<!--[if IE]><style>...</style>X"
3459 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <style>\n| \"...<!--[if IE]><style>...\"\n| <body>\n| \"X\"\n"
3461 name: "tests16.dat #81"
3462 html: "<!doctype html><title><!--<title></title>--></title>"
3464 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"<!--<title>\"\n| <body>\n| \"-->\"\n"
3466 name: "tests16.dat #82"
3467 html: "<!doctype html><title></title></title>"
3468 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"</title>\"\n| <body>\n"
3470 name: "tests16.dat #83"
3471 html: "<!doctype html><title>foo/title><link></head><body>X"
3473 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"foo/title><link></head><body>X\"\n| <body>\n"
3475 name: "tests16.dat #84"
3476 html: "<!doctype html><noscript><!--<noscript></noscript>--></noscript>"
3478 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noscript>\n| \"<!--<noscript>\"\n| <body>\n| \"-->\"\n"
3480 name: "tests16.dat #85"
3481 html: "<!doctype html><noscript><!--<noscript></noscript>--></noscript>"
3482 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noscript>\n| <!-- <noscript></noscript> -->\n| <body>\n"
3484 name: "tests16.dat #86"
3485 html: "<!doctype html><noscript><!--</noscript>X<noscript>--></noscript>"
3486 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noscript>\n| \"<!--\"\n| <body>\n| \"X\"\n| <noscript>\n| \"-->\"\n"
3488 name: "tests16.dat #87"
3489 html: "<!doctype html><noscript><!--</noscript>X<noscript>--></noscript>"
3490 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noscript>\n| <!-- </noscript>X<noscript> -->\n| <body>\n"
3492 name: "tests16.dat #88"
3493 html: "<!doctype html><noscript><iframe></noscript>X"
3494 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noscript>\n| \"<iframe>\"\n| <body>\n| \"X\"\n"
3496 name: "tests16.dat #89"
3497 html: "<!doctype html><noscript><iframe></noscript>X"
3499 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noscript>\n| <body>\n| <iframe>\n| \"</noscript>X\"\n"
3501 name: "tests16.dat #90"
3502 html: "<!doctype html><noframes><!--<noframes></noframes>--></noframes>"
3504 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noframes>\n| \"<!--<noframes>\"\n| <body>\n| \"-->\"\n"
3506 name: "tests16.dat #91"
3507 html: "<!doctype html><noframes><body><script><!--...</script></body></noframes></html>"
3508 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noframes>\n| \"<body><script><!--...</script></body>\"\n| <body>\n"
3510 name: "tests16.dat #92"
3511 html: "<!doctype html><textarea><!--<textarea></textarea>--></textarea>"
3513 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"<!--<textarea>\"\n| \"-->\"\n"
3515 name: "tests16.dat #93"
3516 html: "<!doctype html><textarea></textarea></textarea>"
3517 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"</textarea>\"\n"
3519 name: "tests16.dat #94"
3520 html: "<!doctype html><textarea><</textarea>"
3521 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"<\"\n"
3523 name: "tests16.dat #95"
3524 html: "<!doctype html><textarea>a<b</textarea>"
3525 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"a<b\"\n"
3527 name: "tests16.dat #96"
3528 html: "<!doctype html><iframe><!--<iframe></iframe>--></iframe>"
3530 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <iframe>\n| \"<!--<iframe>\"\n| \"-->\"\n"
3532 name: "tests16.dat #97"
3533 html: "<!doctype html><iframe>...<!--X->...<!--/X->...</iframe>"
3534 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <iframe>\n| \"...<!--X->...<!--/X->...\"\n"
3536 name: "tests16.dat #98"
3537 html: "<!doctype html><xmp><!--<xmp></xmp>--></xmp>"
3539 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <xmp>\n| \"<!--<xmp>\"\n| \"-->\"\n"
3541 name: "tests16.dat #99"
3542 html: "<!doctype html><noembed><!--<noembed></noembed>--></noembed>"
3544 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <noembed>\n| \"<!--<noembed>\"\n| \"-->\"\n"
3546 name: "tests16.dat #100"
3549 expected: "| <html>\n| <head>\n| <script>\n| <body>\n"
3551 name: "tests16.dat #101"
3554 expected: "| <html>\n| <head>\n| <script>\n| \"a\"\n| <body>\n"
3556 name: "tests16.dat #102"
3559 expected: "| <html>\n| <head>\n| <script>\n| \"<\"\n| <body>\n"
3561 name: "tests16.dat #103"
3564 expected: "| <html>\n| <head>\n| <script>\n| \"</\"\n| <body>\n"
3566 name: "tests16.dat #104"
3569 expected: "| <html>\n| <head>\n| <script>\n| \"</S\"\n| <body>\n"
3571 name: "tests16.dat #105"
3572 html: "<script></SC"
3574 expected: "| <html>\n| <head>\n| <script>\n| \"</SC\"\n| <body>\n"
3576 name: "tests16.dat #106"
3577 html: "<script></SCR"
3579 expected: "| <html>\n| <head>\n| <script>\n| \"</SCR\"\n| <body>\n"
3581 name: "tests16.dat #107"
3582 html: "<script></SCRI"
3584 expected: "| <html>\n| <head>\n| <script>\n| \"</SCRI\"\n| <body>\n"
3586 name: "tests16.dat #108"
3587 html: "<script></SCRIP"
3589 expected: "| <html>\n| <head>\n| <script>\n| \"</SCRIP\"\n| <body>\n"
3591 name: "tests16.dat #109"
3592 html: "<script></SCRIPT"
3594 expected: "| <html>\n| <head>\n| <script>\n| \"</SCRIPT\"\n| <body>\n"
3596 name: "tests16.dat #110"
3597 html: "<script></SCRIPT "
3599 expected: "| <html>\n| <head>\n| <script>\n| <body>\n"
3601 name: "tests16.dat #111"
3604 expected: "| <html>\n| <head>\n| <script>\n| \"</s\"\n| <body>\n"
3606 name: "tests16.dat #112"
3607 html: "<script></sc"
3609 expected: "| <html>\n| <head>\n| <script>\n| \"</sc\"\n| <body>\n"
3611 name: "tests16.dat #113"
3612 html: "<script></scr"
3614 expected: "| <html>\n| <head>\n| <script>\n| \"</scr\"\n| <body>\n"
3616 name: "tests16.dat #114"
3617 html: "<script></scri"
3619 expected: "| <html>\n| <head>\n| <script>\n| \"</scri\"\n| <body>\n"
3621 name: "tests16.dat #115"
3622 html: "<script></scrip"
3624 expected: "| <html>\n| <head>\n| <script>\n| \"</scrip\"\n| <body>\n"
3626 name: "tests16.dat #116"
3627 html: "<script></script"
3629 expected: "| <html>\n| <head>\n| <script>\n| \"</script\"\n| <body>\n"
3631 name: "tests16.dat #117"
3632 html: "<script></script "
3634 expected: "| <html>\n| <head>\n| <script>\n| <body>\n"
3636 name: "tests16.dat #118"
3639 expected: "| <html>\n| <head>\n| <script>\n| \"<!\"\n| <body>\n"
3641 name: "tests16.dat #119"
3644 expected: "| <html>\n| <head>\n| <script>\n| \"<!a\"\n| <body>\n"
3646 name: "tests16.dat #120"
3649 expected: "| <html>\n| <head>\n| <script>\n| \"<!-\"\n| <body>\n"
3651 name: "tests16.dat #121"
3652 html: "<script><!-a"
3654 expected: "| <html>\n| <head>\n| <script>\n| \"<!-a\"\n| <body>\n"
3656 name: "tests16.dat #122"
3657 html: "<script><!--"
3659 expected: "| <html>\n| <head>\n| <script>\n| \"<!--\"\n| <body>\n"
3661 name: "tests16.dat #123"
3662 html: "<script><!--a"
3664 expected: "| <html>\n| <head>\n| <script>\n| \"<!--a\"\n| <body>\n"
3666 name: "tests16.dat #124"
3667 html: "<script><!--<"
3669 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<\"\n| <body>\n"
3671 name: "tests16.dat #125"
3672 html: "<script><!--<a"
3674 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<a\"\n| <body>\n"
3676 name: "tests16.dat #126"
3677 html: "<script><!--</"
3679 expected: "| <html>\n| <head>\n| <script>\n| \"<!--</\"\n| <body>\n"
3681 name: "tests16.dat #127"
3682 html: "<script><!--</script"
3684 expected: "| <html>\n| <head>\n| <script>\n| \"<!--</script\"\n| <body>\n"
3686 name: "tests16.dat #128"
3687 html: "<script><!--</script "
3689 expected: "| <html>\n| <head>\n| <script>\n| \"<!--\"\n| <body>\n"
3691 name: "tests16.dat #129"
3692 html: "<script><!--<s"
3694 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<s\"\n| <body>\n"
3696 name: "tests16.dat #130"
3697 html: "<script><!--<script"
3699 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script\"\n| <body>\n"
3701 name: "tests16.dat #131"
3702 html: "<script><!--<script "
3704 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script \"\n| <body>\n"
3706 name: "tests16.dat #132"
3707 html: "<script><!--<script <"
3709 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script <\"\n| <body>\n"
3711 name: "tests16.dat #133"
3712 html: "<script><!--<script <a"
3714 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script <a\"\n| <body>\n"
3716 name: "tests16.dat #134"
3717 html: "<script><!--<script </"
3719 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </\"\n| <body>\n"
3721 name: "tests16.dat #135"
3722 html: "<script><!--<script </s"
3724 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </s\"\n| <body>\n"
3726 name: "tests16.dat #136"
3727 html: "<script><!--<script </script"
3729 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script\"\n| <body>\n"
3731 name: "tests16.dat #137"
3732 html: "<script><!--<script </scripta"
3734 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </scripta\"\n| <body>\n"
3736 name: "tests16.dat #138"
3737 html: "<script><!--<script </script "
3739 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script \"\n| <body>\n"
3741 name: "tests16.dat #139"
3742 html: "<script><!--<script </script>"
3744 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script>\"\n| <body>\n"
3746 name: "tests16.dat #140"
3747 html: "<script><!--<script </script/"
3749 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script/\"\n| <body>\n"
3751 name: "tests16.dat #141"
3752 html: "<script><!--<script </script <"
3754 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script <\"\n| <body>\n"
3756 name: "tests16.dat #142"
3757 html: "<script><!--<script </script <a"
3759 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script <a\"\n| <body>\n"
3761 name: "tests16.dat #143"
3762 html: "<script><!--<script </script </"
3764 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script </\"\n| <body>\n"
3766 name: "tests16.dat #144"
3767 html: "<script><!--<script </script </script"
3769 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script </script\"\n| <body>\n"
3771 name: "tests16.dat #145"
3772 html: "<script><!--<script </script </script "
3774 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script \"\n| <body>\n"
3776 name: "tests16.dat #146"
3777 html: "<script><!--<script </script </script/"
3779 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script \"\n| <body>\n"
3781 name: "tests16.dat #147"
3782 html: "<script><!--<script </script </script>"
3784 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script \"\n| <body>\n"
3786 name: "tests16.dat #148"
3787 html: "<script><!--<script -"
3789 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script -\"\n| <body>\n"
3791 name: "tests16.dat #149"
3792 html: "<script><!--<script -a"
3794 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script -a\"\n| <body>\n"
3796 name: "tests16.dat #150"
3797 html: "<script><!--<script --"
3799 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script --\"\n| <body>\n"
3801 name: "tests16.dat #151"
3802 html: "<script><!--<script --a"
3804 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script --a\"\n| <body>\n"
3806 name: "tests16.dat #152"
3807 html: "<script><!--<script -->"
3809 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script -->\"\n| <body>\n"
3811 name: "tests16.dat #153"
3812 html: "<script><!--<script --><"
3814 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script --><\"\n| <body>\n"
3816 name: "tests16.dat #154"
3817 html: "<script><!--<script --></"
3819 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script --></\"\n| <body>\n"
3821 name: "tests16.dat #155"
3822 html: "<script><!--<script --></script"
3824 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script --></script\"\n| <body>\n"
3826 name: "tests16.dat #156"
3827 html: "<script><!--<script --></script "
3829 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script -->\"\n| <body>\n"
3831 name: "tests16.dat #157"
3832 html: "<script><!--<script --></script/"
3834 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script -->\"\n| <body>\n"
3836 name: "tests16.dat #158"
3837 html: "<script><!--<script --></script>"
3839 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script -->\"\n| <body>\n"
3841 name: "tests16.dat #159"
3842 html: "<script><!--<script><\\/script>--></script>"
3844 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script><\\/script>-->\"\n| <body>\n"
3846 name: "tests16.dat #160"
3847 html: "<script><!--<script></scr'+'ipt>--></script>"
3849 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></scr'+'ipt>-->\"\n| <body>\n"
3851 name: "tests16.dat #161"
3852 html: "<script><!--<script></script><script></script></script>"
3854 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>\"\n| <body>\n"
3856 name: "tests16.dat #162"
3857 html: "<script><!--<script></script><script></script>--><!--</script>"
3859 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>--><!--\"\n| <body>\n"
3861 name: "tests16.dat #163"
3862 html: "<script><!--<script></script><script></script>-- ></script>"
3864 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>-- >\"\n| <body>\n"
3866 name: "tests16.dat #164"
3867 html: "<script><!--<script></script><script></script>- -></script>"
3869 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>- ->\"\n| <body>\n"
3871 name: "tests16.dat #165"
3872 html: "<script><!--<script></script><script></script>- - ></script>"
3874 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>- - >\"\n| <body>\n"
3876 name: "tests16.dat #166"
3877 html: "<script><!--<script></script><script></script>-></script>"
3879 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>->\"\n| <body>\n"
3881 name: "tests16.dat #167"
3882 html: "<script><!--<script>--!></script>X"
3884 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script>--!></script>X\"\n| <body>\n"
3886 name: "tests16.dat #168"
3887 html: "<script><!--<scr'+'ipt></script>--></script>"
3889 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<scr'+'ipt>\"\n| <body>\n| \"-->\"\n"
3891 name: "tests16.dat #169"
3892 html: "<script><!--<script></scr'+'ipt></script>X"
3894 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></scr'+'ipt></script>X\"\n| <body>\n"
3896 name: "tests16.dat #170"
3897 html: "<style><!--<style></style>--></style>"
3899 expected: "| <html>\n| <head>\n| <style>\n| \"<!--<style>\"\n| <body>\n| \"-->\"\n"
3901 name: "tests16.dat #171"
3902 html: "<style><!--</style>X"
3904 expected: "| <html>\n| <head>\n| <style>\n| \"<!--\"\n| <body>\n| \"X\"\n"
3906 name: "tests16.dat #172"
3907 html: "<style><!--...</style>...--></style>"
3909 expected: "| <html>\n| <head>\n| <style>\n| \"<!--...\"\n| <body>\n| \"...-->\"\n"
3911 name: "tests16.dat #173"
3912 html: "<style><!--<br><html xmlns:v=\"urn:schemas-microsoft-com:vml\"><!--[if !mso]><style></style>X"
3914 expected: "| <html>\n| <head>\n| <style>\n| \"<!--<br><html xmlns:v=\"urn:schemas-microsoft-com:vml\"><!--[if !mso]><style>\"\n| <body>\n| \"X\"\n"
3916 name: "tests16.dat #174"
3917 html: "<style><!--...<style><!--...--!></style>--></style>"
3919 expected: "| <html>\n| <head>\n| <style>\n| \"<!--...<style><!--...--!>\"\n| <body>\n| \"-->\"\n"
3921 name: "tests16.dat #175"
3922 html: "<style><!--...</style><!-- --><style>@import ...</style>"
3924 expected: "| <html>\n| <head>\n| <style>\n| \"<!--...\"\n| <!-- -->\n| <style>\n| \"@import ...\"\n| <body>\n"
3926 name: "tests16.dat #176"
3927 html: "<style>...<style><!--...</style><!-- --></style>"
3929 expected: "| <html>\n| <head>\n| <style>\n| \"...<style><!--...\"\n| <!-- -->\n| <body>\n"
3931 name: "tests16.dat #177"
3932 html: "<style>...<!--[if IE]><style>...</style>X"
3934 expected: "| <html>\n| <head>\n| <style>\n| \"...<!--[if IE]><style>...\"\n| <body>\n| \"X\"\n"
3936 name: "tests16.dat #178"
3937 html: "<title><!--<title></title>--></title>"
3939 expected: "| <html>\n| <head>\n| <title>\n| \"<!--<title>\"\n| <body>\n| \"-->\"\n"
3941 name: "tests16.dat #179"
3942 html: "<title></title></title>"
3944 expected: "| <html>\n| <head>\n| <title>\n| \"</title>\"\n| <body>\n"
3946 name: "tests16.dat #180"
3947 html: "<title>foo/title><link></head><body>X"
3949 expected: "| <html>\n| <head>\n| <title>\n| \"foo/title><link></head><body>X\"\n| <body>\n"
3951 name: "tests16.dat #181"
3952 html: "<noscript><!--<noscript></noscript>--></noscript>"
3954 expected: "| <html>\n| <head>\n| <noscript>\n| \"<!--<noscript>\"\n| <body>\n| \"-->\"\n"
3956 name: "tests16.dat #182"
3957 html: "<noscript><!--<noscript></noscript>--></noscript>"
3959 expected: "| <html>\n| <head>\n| <noscript>\n| <!-- <noscript></noscript> -->\n| <body>\n"
3961 name: "tests16.dat #183"
3962 html: "<noscript><!--</noscript>X<noscript>--></noscript>"
3964 expected: "| <html>\n| <head>\n| <noscript>\n| \"<!--\"\n| <body>\n| \"X\"\n| <noscript>\n| \"-->\"\n"
3966 name: "tests16.dat #184"
3967 html: "<noscript><!--</noscript>X<noscript>--></noscript>"
3969 expected: "| <html>\n| <head>\n| <noscript>\n| <!-- </noscript>X<noscript> -->\n| <body>\n"
3971 name: "tests16.dat #185"
3972 html: "<noscript><iframe></noscript>X"
3974 expected: "| <html>\n| <head>\n| <noscript>\n| \"<iframe>\"\n| <body>\n| \"X\"\n"
3976 name: "tests16.dat #186"
3977 html: "<noscript><iframe></noscript>X"
3979 expected: "| <html>\n| <head>\n| <noscript>\n| <body>\n| <iframe>\n| \"</noscript>X\"\n"
3981 name: "tests16.dat #187"
3982 html: "<noframes><!--<noframes></noframes>--></noframes>"
3984 expected: "| <html>\n| <head>\n| <noframes>\n| \"<!--<noframes>\"\n| <body>\n| \"-->\"\n"
3986 name: "tests16.dat #188"
3987 html: "<noframes><body><script><!--...</script></body></noframes></html>"
3989 expected: "| <html>\n| <head>\n| <noframes>\n| \"<body><script><!--...</script></body>\"\n| <body>\n"
3991 name: "tests16.dat #189"
3992 html: "<textarea><!--<textarea></textarea>--></textarea>"
3994 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \"<!--<textarea>\"\n| \"-->\"\n"
3996 name: "tests16.dat #190"
3997 html: "<textarea></textarea></textarea>"
3999 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \"</textarea>\"\n"
4001 name: "tests16.dat #191"
4002 html: "<iframe><!--<iframe></iframe>--></iframe>"
4004 expected: "| <html>\n| <head>\n| <body>\n| <iframe>\n| \"<!--<iframe>\"\n| \"-->\"\n"
4006 name: "tests16.dat #192"
4007 html: "<iframe>...<!--X->...<!--/X->...</iframe>"
4009 expected: "| <html>\n| <head>\n| <body>\n| <iframe>\n| \"...<!--X->...<!--/X->...\"\n"
4011 name: "tests16.dat #193"
4012 html: "<xmp><!--<xmp></xmp>--></xmp>"
4014 expected: "| <html>\n| <head>\n| <body>\n| <xmp>\n| \"<!--<xmp>\"\n| \"-->\"\n"
4016 name: "tests16.dat #194"
4017 html: "<noembed><!--<noembed></noembed>--></noembed>"
4019 expected: "| <html>\n| <head>\n| <body>\n| <noembed>\n| \"<!--<noembed>\"\n| \"-->\"\n"
4021 name: "tests16.dat #195"
4022 html: "<!doctype html><table>\n"
4024 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| \"\n\"\n"
4026 name: "tests16.dat #196"
4027 html: "<!doctype html><table><td><span><font></span><span>"
4029 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <span>\n| <font>\n| <font>\n| <span>\n"
4031 name: "tests16.dat #197"
4032 html: "<!doctype html><form><table></form><form></table></form>"
4034 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <form>\n| <table>\n| <form>\n"
4036 name: "tests17.dat #1"
4037 html: "<!doctype html><table><tbody><select><tr>"
4039 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <table>\n| <tbody>\n| <tr>\n"
4041 name: "tests17.dat #2"
4042 html: "<!doctype html><table><tr><select><td>"
4044 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
4046 name: "tests17.dat #3"
4047 html: "<!doctype html><table><tr><td><select><td>"
4049 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <select>\n| <td>\n"
4051 name: "tests17.dat #4"
4052 html: "<!doctype html><table><tr><th><select><td>"
4054 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <th>\n| <select>\n| <td>\n"
4056 name: "tests17.dat #5"
4057 html: "<!doctype html><table><caption><select><tr>"
4059 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <select>\n| <tbody>\n| <tr>\n"
4061 name: "tests17.dat #6"
4062 html: "<!doctype html><select><tr>"
4064 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4066 name: "tests17.dat #7"
4067 html: "<!doctype html><select><td>"
4069 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4071 name: "tests17.dat #8"
4072 html: "<!doctype html><select><th>"
4074 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4076 name: "tests17.dat #9"
4077 html: "<!doctype html><select><tbody>"
4079 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4081 name: "tests17.dat #10"
4082 html: "<!doctype html><select><thead>"
4084 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4086 name: "tests17.dat #11"
4087 html: "<!doctype html><select><tfoot>"
4089 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4091 name: "tests17.dat #12"
4092 html: "<!doctype html><select><caption>"
4094 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4096 name: "tests17.dat #13"
4097 html: "<!doctype html><table><tr></table>a"
4098 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| \"a\"\n"
4100 name: "tests18.dat #1"
4101 html: "<!doctype html><plaintext></plaintext>"
4103 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"</plaintext>\"\n"
4105 name: "tests18.dat #2"
4106 html: "<!doctype html><table><plaintext></plaintext>"
4108 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"</plaintext>\"\n| <table>\n"
4110 name: "tests18.dat #3"
4111 html: "<!doctype html><table><tbody><plaintext></plaintext>"
4113 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"</plaintext>\"\n| <table>\n| <tbody>\n"
4115 name: "tests18.dat #4"
4116 html: "<!doctype html><table><tbody><tr><plaintext></plaintext>"
4118 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"</plaintext>\"\n| <table>\n| <tbody>\n| <tr>\n"
4120 name: "tests18.dat #5"
4121 html: "<!doctype html><table><td><plaintext></plaintext>"
4123 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <plaintext>\n| \"</plaintext>\"\n"
4125 name: "tests18.dat #6"
4126 html: "<!doctype html><table><caption><plaintext></plaintext>"
4128 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <plaintext>\n| \"</plaintext>\"\n"
4130 name: "tests18.dat #7"
4131 html: "<!doctype html><table><tr><style></script></style>abc"
4133 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"abc\"\n| <table>\n| <tbody>\n| <tr>\n| <style>\n| \"</script>\"\n"
4135 name: "tests18.dat #8"
4136 html: "<!doctype html><table><tr><script></style></script>abc"
4138 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"abc\"\n| <table>\n| <tbody>\n| <tr>\n| <script>\n| \"</style>\"\n"
4140 name: "tests18.dat #9"
4141 html: "<!doctype html><table><caption><style></script></style>abc"
4143 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <style>\n| \"</script>\"\n| \"abc\"\n"
4145 name: "tests18.dat #10"
4146 html: "<!doctype html><table><td><style></script></style>abc"
4148 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <style>\n| \"</script>\"\n| \"abc\"\n"
4150 name: "tests18.dat #11"
4151 html: "<!doctype html><select><script></style></script>abc"
4153 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <script>\n| \"</style>\"\n| \"abc\"\n"
4155 name: "tests18.dat #12"
4156 html: "<!doctype html><table><select><script></style></script>abc"
4158 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <script>\n| \"</style>\"\n| \"abc\"\n| <table>\n"
4160 name: "tests18.dat #13"
4161 html: "<!doctype html><table><tr><select><script></style></script>abc"
4163 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <script>\n| \"</style>\"\n| \"abc\"\n| <table>\n| <tbody>\n| <tr>\n"
4165 name: "tests18.dat #14"
4166 html: "<!doctype html><frameset></frameset><noframes>abc"
4168 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <noframes>\n| \"abc\"\n"
4170 name: "tests18.dat #15"
4171 html: "<!doctype html><frameset></frameset><noframes>abc</noframes><!--abc-->"
4172 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <noframes>\n| \"abc\"\n| <!-- abc -->\n"
4174 name: "tests18.dat #16"
4175 html: "<!doctype html><frameset></frameset></html><noframes>abc"
4177 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <noframes>\n| \"abc\"\n"
4179 name: "tests18.dat #17"
4180 html: "<!doctype html><frameset></frameset></html><noframes>abc</noframes><!--abc-->"
4181 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <noframes>\n| \"abc\"\n| <!-- abc -->\n"
4183 name: "tests18.dat #18"
4184 html: "<!doctype html><table><tr></tbody><tfoot>"
4186 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <tfoot>\n"
4188 name: "tests18.dat #19"
4189 html: "<!doctype html><table><td><svg></svg>abc<td>"
4191 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <svg svg>\n| \"abc\"\n| <td>\n"
4193 name: "tests19.dat #1"
4194 html: "<!doctype html><math><mn DefinitionUrl=\"foo\">"
4196 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mn>\n| definitionURL=\"foo\"\n"
4198 name: "tests19.dat #2"
4199 html: "<!doctype html><html></p><!--foo-->"
4201 expected: "| <!DOCTYPE html>\n| <html>\n| <!-- foo -->\n| <head>\n| <body>\n"
4203 name: "tests19.dat #3"
4204 html: "<!doctype html><head></head></p><!--foo-->"
4206 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <!-- foo -->\n| <body>\n"
4208 name: "tests19.dat #4"
4209 html: "<!doctype html><body><p><pre>"
4211 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <pre>\n"
4213 name: "tests19.dat #5"
4214 html: "<!doctype html><body><p><listing>"
4216 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <listing>\n"
4218 name: "tests19.dat #6"
4219 html: "<!doctype html><p><plaintext>"
4221 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <plaintext>\n"
4223 name: "tests19.dat #7"
4224 html: "<!doctype html><p><h1>"
4226 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <h1>\n"
4228 name: "tests19.dat #8"
4229 html: "<!doctype html><form><isindex>"
4231 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <form>\n"
4233 name: "tests19.dat #9"
4234 html: "<!doctype html><isindex action=\"POST\">"
4236 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <form>\n| action=\"POST\"\n| <hr>\n| <label>\n| \"This is a searchable index. Enter search keywords: \"\n| <input>\n| name=\"isindex\"\n| <hr>\n"
4238 name: "tests19.dat #10"
4239 html: "<!doctype html><isindex prompt=\"this is isindex\">"
4241 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <form>\n| <hr>\n| <label>\n| \"this is isindex\"\n| <input>\n| name=\"isindex\"\n| <hr>\n"
4243 name: "tests19.dat #11"
4244 html: "<!doctype html><isindex type=\"hidden\">"
4246 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <form>\n| <hr>\n| <label>\n| \"This is a searchable index. Enter search keywords: \"\n| <input>\n| name=\"isindex\"\n| type=\"hidden\"\n| <hr>\n"
4248 name: "tests19.dat #12"
4249 html: "<!doctype html><isindex name=\"foo\">"
4251 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <form>\n| <hr>\n| <label>\n| \"This is a searchable index. Enter search keywords: \"\n| <input>\n| name=\"isindex\"\n| <hr>\n"
4253 name: "tests19.dat #13"
4254 html: "<!doctype html><ruby><p><rp>"
4256 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ruby>\n| <p>\n| <rp>\n"
4258 name: "tests19.dat #14"
4259 html: "<!doctype html><ruby><div><span><rp>"
4261 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ruby>\n| <div>\n| <span>\n| <rp>\n"
4263 name: "tests19.dat #15"
4264 html: "<!doctype html><ruby><div><p><rp>"
4266 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ruby>\n| <div>\n| <p>\n| <rp>\n"
4268 name: "tests19.dat #16"
4269 html: "<!doctype html><ruby><p><rt>"
4271 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ruby>\n| <p>\n| <rt>\n"
4273 name: "tests19.dat #17"
4274 html: "<!doctype html><ruby><div><span><rt>"
4276 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ruby>\n| <div>\n| <span>\n| <rt>\n"
4278 name: "tests19.dat #18"
4279 html: "<!doctype html><ruby><div><p><rt>"
4281 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ruby>\n| <div>\n| <p>\n| <rt>\n"
4283 name: "tests19.dat #19"
4284 html: "<html><ruby>a<rb>b<rt></ruby></html>"
4286 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rb>\n| \"b\"\n| <rt>\n"
4288 name: "tests19.dat #20"
4289 html: "<html><ruby>a<rp>b<rt></ruby></html>"
4291 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rp>\n| \"b\"\n| <rt>\n"
4293 name: "tests19.dat #21"
4294 html: "<html><ruby>a<rt>b<rt></ruby></html>"
4296 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rt>\n| \"b\"\n| <rt>\n"
4298 name: "tests19.dat #22"
4299 html: "<html><ruby>a<rtc>b<rt>c<rb>d</ruby></html>"
4301 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rtc>\n| \"b\"\n| <rt>\n| \"c\"\n| <rb>\n| \"d\"\n"
4303 name: "tests19.dat #23"
4304 html: "<!doctype html><math/><foo>"
4306 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <foo>\n"
4308 name: "tests19.dat #24"
4309 html: "<!doctype html><svg/><foo>"
4311 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <foo>\n"
4313 name: "tests19.dat #25"
4314 html: "<!doctype html><div></body><!--foo-->"
4316 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <div>\n| <!-- foo -->\n"
4318 name: "tests19.dat #26"
4319 html: "<!doctype html><h1><div><h3><span></h1>foo"
4321 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <h1>\n| <div>\n| <h3>\n| <span>\n| \"foo\"\n"
4323 name: "tests19.dat #27"
4324 html: "<!doctype html><p></h3>foo"
4326 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| \"foo\"\n"
4328 name: "tests19.dat #28"
4329 html: "<!doctype html><h3><li>abc</h2>foo"
4331 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <h3>\n| <li>\n| \"abc\"\n| \"foo\"\n"
4333 name: "tests19.dat #29"
4334 html: "<!doctype html><table>abc<!--foo-->"
4336 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"abc\"\n| <table>\n| <!-- foo -->\n"
4338 name: "tests19.dat #30"
4339 html: "<!doctype html><table> <!--foo-->"
4341 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| \" \"\n| <!-- foo -->\n"
4343 name: "tests19.dat #31"
4344 html: "<!doctype html><table> b <!--foo-->"
4346 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" b \"\n| <table>\n| <!-- foo -->\n"
4348 name: "tests19.dat #32"
4349 html: "<!doctype html><select><option><option>"
4351 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| <option>\n"
4353 name: "tests19.dat #33"
4354 html: "<!doctype html><select><option></optgroup>"
4356 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n"
4358 name: "tests19.dat #34"
4359 html: "<!doctype html><select><option></optgroup>"
4361 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n"
4363 name: "tests19.dat #35"
4364 html: "<!doctype html><dd><optgroup><dd>"
4365 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <dd>\n| <optgroup>\n| <dd>\n"
4367 name: "tests19.dat #36"
4368 html: "<!doctype html><p><math><mi><p><h1>"
4370 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| <math mi>\n| <p>\n| <h1>\n"
4372 name: "tests19.dat #37"
4373 html: "<!doctype html><p><math><mo><p><h1>"
4375 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| <math mo>\n| <p>\n| <h1>\n"
4377 name: "tests19.dat #38"
4378 html: "<!doctype html><p><math><mn><p><h1>"
4380 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| <math mn>\n| <p>\n| <h1>\n"
4382 name: "tests19.dat #39"
4383 html: "<!doctype html><p><math><ms><p><h1>"
4385 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| <math ms>\n| <p>\n| <h1>\n"
4387 name: "tests19.dat #40"
4388 html: "<!doctype html><p><math><mtext><p><h1>"
4390 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| <math mtext>\n| <p>\n| <h1>\n"
4392 name: "tests19.dat #41"
4393 html: "<!doctype html><frameset></noframes>"
4395 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
4397 name: "tests19.dat #42"
4398 html: "<!doctype html><html c=d><body></html><html a=b>"
4400 expected: "| <!DOCTYPE html>\n| <html>\n| a=\"b\"\n| c=\"d\"\n| <head>\n| <body>\n"
4402 name: "tests19.dat #43"
4403 html: "<!doctype html><html c=d><frameset></frameset></html><html a=b>"
4405 expected: "| <!DOCTYPE html>\n| <html>\n| a=\"b\"\n| c=\"d\"\n| <head>\n| <frameset>\n"
4407 name: "tests19.dat #44"
4408 html: "<!doctype html><html><frameset></frameset></html><!--foo-->"
4409 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <!-- foo -->\n"
4411 name: "tests19.dat #45"
4412 html: "<!doctype html><html><frameset></frameset></html> "
4413 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| \" \"\n"
4415 name: "tests19.dat #46"
4416 html: "<!doctype html><html><frameset></frameset></html>abc"
4418 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
4420 name: "tests19.dat #47"
4421 html: "<!doctype html><html><frameset></frameset></html><p>"
4423 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
4425 name: "tests19.dat #48"
4426 html: "<!doctype html><html><frameset></frameset></html></p>"
4428 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
4430 name: "tests19.dat #49"
4431 html: "<html><frameset></frameset></html><!doctype html>"
4433 expected: "| <html>\n| <head>\n| <frameset>\n"
4435 name: "tests19.dat #50"
4436 html: "<!doctype html><body><frameset>"
4438 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
4440 name: "tests19.dat #51"
4441 html: "<!doctype html><p><frameset><frame>"
4443 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <frame>\n"
4445 name: "tests19.dat #52"
4446 html: "<!doctype html><p>a<frameset>"
4448 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| \"a\"\n"
4450 name: "tests19.dat #53"
4451 html: "<!doctype html><p> <frameset><frame>"
4453 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <frame>\n"
4455 name: "tests19.dat #54"
4456 html: "<!doctype html><pre><frameset>"
4458 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n"
4460 name: "tests19.dat #55"
4461 html: "<!doctype html><listing><frameset>"
4463 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <listing>\n"
4465 name: "tests19.dat #56"
4466 html: "<!doctype html><li><frameset>"
4468 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <li>\n"
4470 name: "tests19.dat #57"
4471 html: "<!doctype html><dd><frameset>"
4473 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <dd>\n"
4475 name: "tests19.dat #58"
4476 html: "<!doctype html><dt><frameset>"
4478 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <dt>\n"
4480 name: "tests19.dat #59"
4481 html: "<!doctype html><button><frameset>"
4483 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <button>\n"
4485 name: "tests19.dat #60"
4486 html: "<!doctype html><applet><frameset>"
4488 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <applet>\n"
4490 name: "tests19.dat #61"
4491 html: "<!doctype html><marquee><frameset>"
4493 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <marquee>\n"
4495 name: "tests19.dat #62"
4496 html: "<!doctype html><object><frameset>"
4498 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <object>\n"
4500 name: "tests19.dat #63"
4501 html: "<!doctype html><table><frameset>"
4503 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n"
4505 name: "tests19.dat #64"
4506 html: "<!doctype html><area><frameset>"
4508 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <area>\n"
4510 name: "tests19.dat #65"
4511 html: "<!doctype html><basefont><frameset>"
4513 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <basefont>\n| <frameset>\n"
4515 name: "tests19.dat #66"
4516 html: "<!doctype html><bgsound><frameset>"
4518 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <bgsound>\n| <frameset>\n"
4520 name: "tests19.dat #67"
4521 html: "<!doctype html><br><frameset>"
4523 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <br>\n"
4525 name: "tests19.dat #68"
4526 html: "<!doctype html><embed><frameset>"
4528 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <embed>\n"
4530 name: "tests19.dat #69"
4531 html: "<!doctype html><img><frameset>"
4533 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <img>\n"
4535 name: "tests19.dat #70"
4536 html: "<!doctype html><input><frameset>"
4538 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <input>\n"
4540 name: "tests19.dat #71"
4541 html: "<!doctype html><keygen><frameset>"
4543 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <keygen>\n"
4545 name: "tests19.dat #72"
4546 html: "<!doctype html><wbr><frameset>"
4548 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <wbr>\n"
4550 name: "tests19.dat #73"
4551 html: "<!doctype html><hr><frameset>"
4553 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <hr>\n"
4555 name: "tests19.dat #74"
4556 html: "<!doctype html><textarea></textarea><frameset>"
4558 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n"
4560 name: "tests19.dat #75"
4561 html: "<!doctype html><xmp></xmp><frameset>"
4563 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <xmp>\n"
4565 name: "tests19.dat #76"
4566 html: "<!doctype html><iframe></iframe><frameset>"
4568 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <iframe>\n"
4570 name: "tests19.dat #77"
4571 html: "<!doctype html><select></select><frameset>"
4573 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4575 name: "tests19.dat #78"
4576 html: "<!doctype html><svg></svg><frameset><frame>"
4578 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <frame>\n"
4580 name: "tests19.dat #79"
4581 html: "<!doctype html><math></math><frameset><frame>"
4583 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <frame>\n"
4585 name: "tests19.dat #80"
4586 html: "<!doctype html><svg><foreignObject><div> <frameset><frame>"
4588 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <frame>\n"
4590 name: "tests19.dat #81"
4591 html: "<!doctype html><svg>a</svg><frameset><frame>"
4593 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"a\"\n"
4595 name: "tests19.dat #82"
4596 html: "<!doctype html><svg> </svg><frameset><frame>"
4598 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <frame>\n"
4600 name: "tests19.dat #83"
4601 html: "<html>aaa<frameset></frameset>"
4603 expected: "| <html>\n| <head>\n| <body>\n| \"aaa\"\n"
4605 name: "tests19.dat #84"
4606 html: "<html> a <frameset></frameset>"
4608 expected: "| <html>\n| <head>\n| <body>\n| \"a \"\n"
4610 name: "tests19.dat #85"
4611 html: "<!doctype html><div><frameset>"
4613 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
4615 name: "tests19.dat #86"
4616 html: "<!doctype html><div><body><frameset>"
4618 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <div>\n"
4620 name: "tests19.dat #87"
4621 html: "<!doctype html><p><math></p>a"
4623 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| \"a\"\n"
4625 name: "tests19.dat #88"
4626 html: "<!doctype html><p><math><mn><span></p>a"
4628 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| <math mn>\n| <span>\n| <p>\n| \"a\"\n"
4630 name: "tests19.dat #89"
4631 html: "<!doctype html><math></html>"
4633 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n"
4635 name: "tests19.dat #90"
4636 html: "<!doctype html><meta charset=\"ascii\">"
4637 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <meta>\n| charset=\"ascii\"\n| <body>\n"
4639 name: "tests19.dat #91"
4640 html: "<!doctype html><meta http-equiv=\"content-type\" content=\"text/html;charset=ascii\">"
4641 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <meta>\n| content=\"text/html;charset=ascii\"\n| http-equiv=\"content-type\"\n| <body>\n"
4643 name: "tests19.dat #92"
4644 html: "<!doctype html><head><!--aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa--><meta charset=\"utf8\">"
4645 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <!-- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -->\n| <meta>\n| charset=\"utf8\"\n| <body>\n"
4647 name: "tests19.dat #93"
4648 html: "<!doctype html><html a=b><head></head><html c=d>"
4650 expected: "| <!DOCTYPE html>\n| <html>\n| a=\"b\"\n| c=\"d\"\n| <head>\n| <body>\n"
4652 name: "tests19.dat #94"
4653 html: "<!doctype html><image/>"
4655 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <img>\n"
4657 name: "tests19.dat #95"
4658 html: "<!doctype html>a<i>b<table>c<b>d</i>e</b>f"
4660 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"a\"\n| <i>\n| \"bc\"\n| <b>\n| \"de\"\n| \"f\"\n| <table>\n"
4662 name: "tests19.dat #96"
4663 html: "<!doctype html><table><i>a<b>b<div>c<a>d</i>e</b>f"
4665 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <i>\n| \"a\"\n| <b>\n| \"b\"\n| <b>\n| <div>\n| <b>\n| <i>\n| \"c\"\n| <a>\n| \"d\"\n| <a>\n| \"e\"\n| <a>\n| \"f\"\n| <table>\n"
4667 name: "tests19.dat #97"
4668 html: "<!doctype html><i>a<b>b<div>c<a>d</i>e</b>f"
4670 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <i>\n| \"a\"\n| <b>\n| \"b\"\n| <b>\n| <div>\n| <b>\n| <i>\n| \"c\"\n| <a>\n| \"d\"\n| <a>\n| \"e\"\n| <a>\n| \"f\"\n"
4672 name: "tests19.dat #98"
4673 html: "<!doctype html><table><i>a<b>b<div>c</i>"
4675 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <i>\n| \"a\"\n| <b>\n| \"b\"\n| <b>\n| <div>\n| <i>\n| \"c\"\n| <table>\n"
4677 name: "tests19.dat #99"
4678 html: "<!doctype html><table><i>a<b>b<div>c<a>d</i>e</b>f"
4680 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <i>\n| \"a\"\n| <b>\n| \"b\"\n| <b>\n| <div>\n| <b>\n| <i>\n| \"c\"\n| <a>\n| \"d\"\n| <a>\n| \"e\"\n| <a>\n| \"f\"\n| <table>\n"
4682 name: "tests19.dat #100"
4683 html: "<!doctype html><table><i>a<div>b<tr>c<b>d</i>e"
4685 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <i>\n| \"a\"\n| <div>\n| \"b\"\n| <i>\n| \"c\"\n| <b>\n| \"d\"\n| <b>\n| \"e\"\n| <table>\n| <tbody>\n| <tr>\n"
4687 name: "tests19.dat #101"
4688 html: "<!doctype html><table><td><table><i>a<div>b<b>c</i>d"
4690 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <i>\n| \"a\"\n| <div>\n| <i>\n| \"b\"\n| <b>\n| \"c\"\n| <b>\n| \"d\"\n| <table>\n"
4692 name: "tests19.dat #102"
4693 html: "<!doctype html><body><bgsound>"
4694 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <bgsound>\n"
4696 name: "tests19.dat #103"
4697 html: "<!doctype html><body><basefont>"
4698 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <basefont>\n"
4700 name: "tests19.dat #104"
4701 html: "<!doctype html><a><b></a><basefont>"
4703 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <a>\n| <b>\n| <basefont>\n"
4705 name: "tests19.dat #105"
4706 html: "<!doctype html><a><b></a><bgsound>"
4708 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <a>\n| <b>\n| <bgsound>\n"
4710 name: "tests19.dat #106"
4711 html: "<!doctype html><figcaption><article></figcaption>a"
4713 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <figcaption>\n| <article>\n| \"a\"\n"
4715 name: "tests19.dat #107"
4716 html: "<!doctype html><summary><article></summary>a"
4718 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <summary>\n| <article>\n| \"a\"\n"
4720 name: "tests19.dat #108"
4721 html: "<!doctype html><p><a><plaintext>b"
4723 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <a>\n| <plaintext>\n| <a>\n| \"b\"\n"
4725 name: "tests19.dat #109"
4726 html: "<!DOCTYPE html><div>a<a></div>b<p>c</p>d"
4728 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <div>\n| \"a\"\n| <a>\n| <a>\n| \"b\"\n| <p>\n| \"c\"\n| \"d\"\n"
4730 name: "tests1.dat #1"
4733 expected: "| <html>\n| <head>\n| <body>\n| \"Test\"\n"
4735 name: "tests1.dat #2"
4736 html: "<p>One<p>Two"
4738 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| \"One\"\n| <p>\n| \"Two\"\n"
4740 name: "tests1.dat #3"
4741 html: "Line1<br>Line2<br>Line3<br>Line4"
4743 expected: "| <html>\n| <head>\n| <body>\n| \"Line1\"\n| <br>\n| \"Line2\"\n| <br>\n| \"Line3\"\n| <br>\n| \"Line4\"\n"
4745 name: "tests1.dat #4"
4748 expected: "| <html>\n| <head>\n| <body>\n"
4750 name: "tests1.dat #5"
4753 expected: "| <html>\n| <head>\n| <body>\n"
4755 name: "tests1.dat #6"
4758 expected: "| <html>\n| <head>\n| <body>\n"
4760 name: "tests1.dat #7"
4761 html: "<html><head>"
4763 expected: "| <html>\n| <head>\n| <body>\n"
4765 name: "tests1.dat #8"
4766 html: "<html><head></head>"
4768 expected: "| <html>\n| <head>\n| <body>\n"
4770 name: "tests1.dat #9"
4771 html: "<html><head></head><body>"
4773 expected: "| <html>\n| <head>\n| <body>\n"
4775 name: "tests1.dat #10"
4776 html: "<html><head></head><body></body>"
4778 expected: "| <html>\n| <head>\n| <body>\n"
4780 name: "tests1.dat #11"
4781 html: "<html><head><body></body></html>"
4783 expected: "| <html>\n| <head>\n| <body>\n"
4785 name: "tests1.dat #12"
4786 html: "<html><head></body></html>"
4788 expected: "| <html>\n| <head>\n| <body>\n"
4790 name: "tests1.dat #13"
4791 html: "<html><head><body></html>"
4793 expected: "| <html>\n| <head>\n| <body>\n"
4795 name: "tests1.dat #14"
4796 html: "<html><body></html>"
4798 expected: "| <html>\n| <head>\n| <body>\n"
4800 name: "tests1.dat #15"
4801 html: "<body></html>"
4803 expected: "| <html>\n| <head>\n| <body>\n"
4805 name: "tests1.dat #16"
4806 html: "<head></html>"
4808 expected: "| <html>\n| <head>\n| <body>\n"
4810 name: "tests1.dat #17"
4813 expected: "| <html>\n| <head>\n| <body>\n"
4815 name: "tests1.dat #18"
4818 expected: "| <html>\n| <head>\n| <body>\n"
4820 name: "tests1.dat #19"
4823 expected: "| <html>\n| <head>\n| <body>\n"
4825 name: "tests1.dat #20"
4826 html: "<b><table><td><i></table>"
4828 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <i>\n"
4830 name: "tests1.dat #21"
4831 html: "<b><table><td></b><i></table>X"
4833 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <i>\n| \"X\"\n"
4835 name: "tests1.dat #22"
4836 html: "<h1>Hello<h2>World"
4838 expected: "| <html>\n| <head>\n| <body>\n| <h1>\n| \"Hello\"\n| <h2>\n| \"World\"\n"
4840 name: "tests1.dat #23"
4841 html: "<a><p>X<a>Y</a>Z</p></a>"
4843 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <p>\n| <a>\n| \"X\"\n| <a>\n| \"Y\"\n| \"Z\"\n"
4845 name: "tests1.dat #24"
4846 html: "<b><button>foo</b>bar"
4848 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <button>\n| <b>\n| \"foo\"\n| \"bar\"\n"
4850 name: "tests1.dat #25"
4851 html: "<!DOCTYPE html><span><button>foo</span>bar"
4853 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <span>\n| <button>\n| \"foobar\"\n"
4855 name: "tests1.dat #26"
4856 html: "<p><b><div><marquee></p></b></div>X"
4858 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <div>\n| <b>\n| <marquee>\n| <p>\n| \"X\"\n"
4860 name: "tests1.dat #27"
4861 html: "<script><div></script></div><title><p></title><p><p>"
4863 expected: "| <html>\n| <head>\n| <script>\n| \"<div>\"\n| <title>\n| \"<p>\"\n| <body>\n| <p>\n| <p>\n"
4865 name: "tests1.dat #28"
4866 html: "<!--><div>--<!-->"
4868 expected: "| <!-- -->\n| <html>\n| <head>\n| <body>\n| <div>\n| \"--\"\n| <!-- -->\n"
4870 name: "tests1.dat #29"
4873 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <hr>\n| <p>\n"
4875 name: "tests1.dat #30"
4876 html: "<select><b><option><select><option></b></select>X"
4878 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| <option>\n| \"X\"\n"
4880 name: "tests1.dat #31"
4881 html: "<a><table><td><a><table></table><a></tr><a></table><b>X</b>C<a>Y"
4883 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <a>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <a>\n| <table>\n| <a>\n| <a>\n| <b>\n| \"X\"\n| \"C\"\n| <a>\n| \"Y\"\n"
4885 name: "tests1.dat #32"
4886 html: "<a X>0<b>1<a Y>2"
4888 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| x=\"\"\n| \"0\"\n| <b>\n| \"1\"\n| <b>\n| <a>\n| y=\"\"\n| \"2\"\n"
4890 name: "tests1.dat #33"
4891 html: "<!-----><font><div>hello<table>excite!<b>me!<th><i>please!</tr><!--X-->"
4893 expected: "| <!-- - -->\n| <html>\n| <head>\n| <body>\n| <font>\n| <div>\n| \"helloexcite!\"\n| <b>\n| \"me!\"\n| <table>\n| <tbody>\n| <tr>\n| <th>\n| <i>\n| \"please!\"\n| <!-- X -->\n"
4895 name: "tests1.dat #34"
4896 html: "<!DOCTYPE html><li>hello<li>world<ul>how<li>do</ul>you</body><!--do-->"
4897 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <li>\n| \"hello\"\n| <li>\n| \"world\"\n| <ul>\n| \"how\"\n| <li>\n| \"do\"\n| \"you\"\n| <!-- do -->\n"
4899 name: "tests1.dat #35"
4900 html: "<!DOCTYPE html>A<option>B<optgroup>C<select>D</option>E"
4902 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"A\"\n| <option>\n| \"B\"\n| <optgroup>\n| \"C\"\n| <select>\n| \"DE\"\n"
4904 name: "tests1.dat #36"
4907 expected: "| <html>\n| <head>\n| <body>\n| \"<\"\n"
4909 name: "tests1.dat #37"
4912 expected: "| <html>\n| <head>\n| <body>\n| \"<#\"\n"
4914 name: "tests1.dat #38"
4917 expected: "| <html>\n| <head>\n| <body>\n| \"</\"\n"
4919 name: "tests1.dat #39"
4922 expected: "| <!-- # -->\n| <html>\n| <head>\n| <body>\n"
4924 name: "tests1.dat #40"
4927 expected: "| <!-- ? -->\n| <html>\n| <head>\n| <body>\n"
4929 name: "tests1.dat #41"
4932 expected: "| <!-- ?# -->\n| <html>\n| <head>\n| <body>\n"
4934 name: "tests1.dat #42"
4937 expected: "| <!-- -->\n| <html>\n| <head>\n| <body>\n"
4939 name: "tests1.dat #43"
4942 expected: "| <!-- # -->\n| <html>\n| <head>\n| <body>\n"
4944 name: "tests1.dat #44"
4947 expected: "| <!-- ?COMMENT? -->\n| <html>\n| <head>\n| <body>\n"
4949 name: "tests1.dat #45"
4952 expected: "| <!-- COMMENT -->\n| <html>\n| <head>\n| <body>\n"
4954 name: "tests1.dat #46"
4955 html: "</ COMMENT >"
4957 expected: "| <!-- COMMENT -->\n| <html>\n| <head>\n| <body>\n"
4959 name: "tests1.dat #47"
4960 html: "<?COM--MENT?>"
4962 expected: "| <!-- ?COM--MENT? -->\n| <html>\n| <head>\n| <body>\n"
4964 name: "tests1.dat #48"
4965 html: "<!COM--MENT>"
4967 expected: "| <!-- COM--MENT -->\n| <html>\n| <head>\n| <body>\n"
4969 name: "tests1.dat #49"
4970 html: "</ COM--MENT >"
4972 expected: "| <!-- COM--MENT -->\n| <html>\n| <head>\n| <body>\n"
4974 name: "tests1.dat #50"
4975 html: "<!DOCTYPE html><style> EOF"
4977 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <style>\n| \" EOF\"\n| <body>\n"
4979 name: "tests1.dat #51"
4980 html: "<!DOCTYPE html><script> <!-- </script> --> </script> EOF"
4982 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \" <!-- \"\n| \" \"\n| <body>\n| \"--> EOF\"\n"
4984 name: "tests1.dat #52"
4985 html: "<b><p></b>TEST"
4987 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <p>\n| <b>\n| \"TEST\"\n"
4989 name: "tests1.dat #53"
4990 html: "<p id=a><b><p id=b></b>TEST"
4992 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| id=\"a\"\n| <b>\n| <p>\n| id=\"b\"\n| \"TEST\"\n"
4994 name: "tests1.dat #54"
4995 html: "<b id=a><p><b id=b></p></b>TEST"
4997 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| id=\"a\"\n| <p>\n| <b>\n| id=\"b\"\n| \"TEST\"\n"
4999 name: "tests1.dat #55"
5000 html: "<!DOCTYPE html><title>U-test</title><body><div><p>Test<u></p></div></body>"
5002 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"U-test\"\n| <body>\n| <div>\n| <p>\n| \"Test\"\n| <u>\n"
5004 name: "tests1.dat #56"
5005 html: "<!DOCTYPE html><font><table></font></table></font>"
5007 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <font>\n| <table>\n"
5009 name: "tests1.dat #57"
5010 html: "<font><p>hello<b>cruel</font>world"
5012 expected: "| <html>\n| <head>\n| <body>\n| <font>\n| <p>\n| <font>\n| \"hello\"\n| <b>\n| \"cruel\"\n| <b>\n| \"world\"\n"
5014 name: "tests1.dat #58"
5015 html: "<b>Test</i>Test"
5017 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| \"TestTest\"\n"
5019 name: "tests1.dat #59"
5020 html: "<b>A<cite>B<div>C"
5022 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| \"A\"\n| <cite>\n| \"B\"\n| <div>\n| \"C\"\n"
5024 name: "tests1.dat #60"
5025 html: "<b>A<cite>B<div>C</cite>D"
5027 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| \"A\"\n| <cite>\n| \"B\"\n| <div>\n| \"CD\"\n"
5029 name: "tests1.dat #61"
5030 html: "<b>A<cite>B<div>C</b>D"
5032 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| \"A\"\n| <cite>\n| \"B\"\n| <div>\n| <b>\n| \"C\"\n| \"D\"\n"
5034 name: "tests1.dat #62"
5037 expected: "| <html>\n| <head>\n| <body>\n"
5039 name: "tests1.dat #63"
5042 expected: "| <html>\n| <head>\n| <body>\n| <div>\n"
5044 name: "tests1.dat #64"
5047 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc\"\n"
5049 name: "tests1.dat #65"
5050 html: "<DIV> abc <B>"
5052 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n"
5054 name: "tests1.dat #66"
5055 html: "<DIV> abc <B> def"
5057 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def\"\n"
5059 name: "tests1.dat #67"
5060 html: "<DIV> abc <B> def <I>"
5062 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n"
5064 name: "tests1.dat #68"
5065 html: "<DIV> abc <B> def <I> ghi"
5067 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n| \" ghi\"\n"
5069 name: "tests1.dat #69"
5070 html: "<DIV> abc <B> def <I> ghi <P>"
5072 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n| \" ghi \"\n| <p>\n"
5074 name: "tests1.dat #70"
5075 html: "<DIV> abc <B> def <I> ghi <P> jkl"
5077 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n| \" ghi \"\n| <p>\n| \" jkl\"\n"
5079 name: "tests1.dat #71"
5080 html: "<DIV> abc <B> def <I> ghi <P> jkl </B>"
5082 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n| \" ghi \"\n| <i>\n| <p>\n| <b>\n| \" jkl \"\n"
5084 name: "tests1.dat #72"
5085 html: "<DIV> abc <B> def <I> ghi <P> jkl </B> mno"
5087 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n| \" ghi \"\n| <i>\n| <p>\n| <b>\n| \" jkl \"\n| \" mno\"\n"
5089 name: "tests1.dat #73"
5090 html: "<DIV> abc <B> def <I> ghi <P> jkl </B> mno </I>"
5092 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n| \" ghi \"\n| <i>\n| <p>\n| <i>\n| <b>\n| \" jkl \"\n| \" mno \"\n"
5094 name: "tests1.dat #74"
5095 html: "<DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> pqr"
5097 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n| \" ghi \"\n| <i>\n| <p>\n| <i>\n| <b>\n| \" jkl \"\n| \" mno \"\n| \" pqr\"\n"
5099 name: "tests1.dat #75"
5100 html: "<DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> pqr </P>"
5102 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n| \" ghi \"\n| <i>\n| <p>\n| <i>\n| <b>\n| \" jkl \"\n| \" mno \"\n| \" pqr \"\n"
5104 name: "tests1.dat #76"
5105 html: "<DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> pqr </P> stu"
5107 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n| \" ghi \"\n| <i>\n| <p>\n| <i>\n| <b>\n| \" jkl \"\n| \" mno \"\n| \" pqr \"\n| \" stu\"\n"
5109 name: "tests1.dat #77"
5110 html: "<test attribute---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->"
5112 expected: "| <html>\n| <head>\n| <body>\n| <test>\n| attribute----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------=\"\"\n"
5114 name: "tests1.dat #78"
5115 html: "<a href=\"blah\">aba<table><a href=\"foo\">br<tr><td></td></tr>x</table>aoe"
5117 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| href=\"blah\"\n| \"aba\"\n| <a>\n| href=\"foo\"\n| \"br\"\n| <a>\n| href=\"foo\"\n| \"x\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <a>\n| href=\"foo\"\n| \"aoe\"\n"
5119 name: "tests1.dat #79"
5120 html: "<a href=\"blah\">aba<table><tr><td><a href=\"foo\">br</td></tr>x</table>aoe"
5122 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| href=\"blah\"\n| \"abax\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <a>\n| href=\"foo\"\n| \"br\"\n| \"aoe\"\n"
5124 name: "tests1.dat #80"
5125 html: "<table><a href=\"blah\">aba<tr><td><a href=\"foo\">br</td></tr>x</table>aoe"
5127 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| href=\"blah\"\n| \"aba\"\n| <a>\n| href=\"blah\"\n| \"x\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <a>\n| href=\"foo\"\n| \"br\"\n| <a>\n| href=\"blah\"\n| \"aoe\"\n"
5129 name: "tests1.dat #81"
5130 html: "<a href=a>aa<marquee>aa<a href=b>bb</marquee>aa"
5132 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| href=\"a\"\n| \"aa\"\n| <marquee>\n| \"aa\"\n| <a>\n| href=\"b\"\n| \"bb\"\n| \"aa\"\n"
5134 name: "tests1.dat #82"
5135 html: "<wbr><strike><code></strike><code><strike></code>"
5137 expected: "| <html>\n| <head>\n| <body>\n| <wbr>\n| <strike>\n| <code>\n| <code>\n| <code>\n| <strike>\n"
5139 name: "tests1.dat #83"
5140 html: "<!DOCTYPE html><spacer>foo"
5142 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <spacer>\n| \"foo\"\n"
5144 name: "tests1.dat #84"
5145 html: "<title><meta></title><link><title><meta></title>"
5147 expected: "| <html>\n| <head>\n| <title>\n| \"<meta>\"\n| <link>\n| <title>\n| \"<meta>\"\n| <body>\n"
5149 name: "tests1.dat #85"
5150 html: "<style><!--</style><meta><script>--><link></script>"
5152 expected: "| <html>\n| <head>\n| <style>\n| \"<!--\"\n| <meta>\n| <script>\n| \"--><link>\"\n| <body>\n"
5154 name: "tests1.dat #86"
5155 html: "<head><meta></head><link>"
5157 expected: "| <html>\n| <head>\n| <meta>\n| <link>\n| <body>\n"
5159 name: "tests1.dat #87"
5160 html: "<table><tr><tr><td><td><span><th><span>X</table>"
5162 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <tr>\n| <td>\n| <td>\n| <span>\n| <th>\n| <span>\n| \"X\"\n"
5164 name: "tests1.dat #88"
5165 html: "<body><body><base><link><meta><title><p></title><body><p></body>"
5167 expected: "| <html>\n| <head>\n| <body>\n| <base>\n| <link>\n| <meta>\n| <title>\n| \"<p>\"\n| <p>\n"
5169 name: "tests1.dat #89"
5170 html: "<textarea><p></textarea>"
5172 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \"<p>\"\n"
5174 name: "tests1.dat #90"
5175 html: "<p><image></p>"
5177 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <img>\n"
5179 name: "tests1.dat #91"
5180 html: "<a><table><a></table><p><a><div><a>"
5182 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <a>\n| <table>\n| <p>\n| <a>\n| <div>\n| <a>\n"
5184 name: "tests1.dat #92"
5185 html: "<head></p><meta><p>"
5187 expected: "| <html>\n| <head>\n| <meta>\n| <body>\n| <p>\n"
5189 name: "tests1.dat #93"
5190 html: "<head></html><meta><p>"
5192 expected: "| <html>\n| <head>\n| <body>\n| <meta>\n| <p>\n"
5194 name: "tests1.dat #94"
5195 html: "<b><table><td><i></table>"
5197 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <i>\n"
5199 name: "tests1.dat #95"
5200 html: "<b><table><td></b><i></table>"
5202 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <i>\n"
5204 name: "tests1.dat #96"
5207 expected: "| <html>\n| <head>\n| <body>\n| <h1>\n| <h2>\n"
5209 name: "tests1.dat #97"
5210 html: "<a><p><a></a></p></a>"
5212 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <p>\n| <a>\n| <a>\n"
5214 name: "tests1.dat #98"
5215 html: "<b><button></b></button></b>"
5217 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <button>\n| <b>\n"
5219 name: "tests1.dat #99"
5220 html: "<p><b><div><marquee></p></b></div>"
5222 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <div>\n| <b>\n| <marquee>\n| <p>\n"
5224 name: "tests1.dat #100"
5225 html: "<script></script></div><title></title><p><p>"
5227 expected: "| <html>\n| <head>\n| <script>\n| <title>\n| <body>\n| <p>\n| <p>\n"
5229 name: "tests1.dat #101"
5232 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <hr>\n| <p>\n"
5234 name: "tests1.dat #102"
5235 html: "<select><b><option><select><option></b></select>"
5237 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| <option>\n"
5239 name: "tests1.dat #103"
5240 html: "<html><head><title></title><body></body></html>"
5242 expected: "| <html>\n| <head>\n| <title>\n| <body>\n"
5244 name: "tests1.dat #104"
5245 html: "<a><table><td><a><table></table><a></tr><a></table><a>"
5247 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <a>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <a>\n| <table>\n| <a>\n| <a>\n"
5249 name: "tests1.dat #105"
5250 html: "<ul><li></li><div><li></div><li><li><div><li><address><li><b><em></b><li></ul>"
5252 expected: "| <html>\n| <head>\n| <body>\n| <ul>\n| <li>\n| <div>\n| <li>\n| <li>\n| <li>\n| <div>\n| <li>\n| <address>\n| <li>\n| <b>\n| <em>\n| <li>\n"
5254 name: "tests1.dat #106"
5255 html: "<ul><li><ul></li><li>a</li></ul></li></ul>"
5257 expected: "| <html>\n| <head>\n| <body>\n| <ul>\n| <li>\n| <ul>\n| <li>\n| \"a\"\n"
5259 name: "tests1.dat #107"
5260 html: "<frameset><frame><frameset><frame></frameset><noframes></noframes></frameset>"
5262 expected: "| <html>\n| <head>\n| <frameset>\n| <frame>\n| <frameset>\n| <frame>\n| <noframes>\n"
5264 name: "tests1.dat #108"
5265 html: "<h1><table><td><h3></table><h3></h1>"
5267 expected: "| <html>\n| <head>\n| <body>\n| <h1>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <h3>\n| <h3>\n"
5269 name: "tests1.dat #109"
5270 html: "<table><colgroup><col><colgroup><col><col><col><colgroup><col><col><thead><tr><td></table>"
5272 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <colgroup>\n| <col>\n| <colgroup>\n| <col>\n| <col>\n| <col>\n| <colgroup>\n| <col>\n| <col>\n| <thead>\n| <tr>\n| <td>\n"
5274 name: "tests1.dat #110"
5275 html: "<table><col><tbody><col><tr><col><td><col></table><col>"
5277 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <colgroup>\n| <col>\n| <tbody>\n| <colgroup>\n| <col>\n| <tbody>\n| <tr>\n| <colgroup>\n| <col>\n| <tbody>\n| <tr>\n| <td>\n| <colgroup>\n| <col>\n"
5279 name: "tests1.dat #111"
5280 html: "<table><colgroup><tbody><colgroup><tr><colgroup><td><colgroup></table><colgroup>"
5282 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <colgroup>\n| <tbody>\n| <colgroup>\n| <tbody>\n| <tr>\n| <colgroup>\n| <tbody>\n| <tr>\n| <td>\n| <colgroup>\n"
5284 name: "tests1.dat #112"
5285 html: "</strong></b></em></i></u></strike></s></blink></tt></pre></big></small></font></select></h1></h2></h3></h4></h5></h6></body></br></a></img></title></span></style></script></table></th></td></tr></frame></area></link></param></hr></input></col></base></meta></basefont></bgsound></embed></spacer></p></dd></dt></caption></colgroup></tbody></tfoot></thead></address></blockquote></center></dir></div></dl></fieldset></listing></menu></ol></ul></li></nobr></wbr></form></button></marquee></object></html></frameset></head></iframe></image></isindex></noembed></noframes></noscript></optgroup></option></plaintext></textarea>"
5287 expected: "| <html>\n| <head>\n| <body>\n| <br>\n| <p>\n"
5289 name: "tests1.dat #113"
5290 html: "<table><tr></strong></b></em></i></u></strike></s></blink></tt></pre></big></small></font></select></h1></h2></h3></h4></h5></h6></body></br></a></img></title></span></style></script></table></th></td></tr></frame></area></link></param></hr></input></col></base></meta></basefont></bgsound></embed></spacer></p></dd></dt></caption></colgroup></tbody></tfoot></thead></address></blockquote></center></dir></div></dl></fieldset></listing></menu></ol></ul></li></nobr></wbr></form></button></marquee></object></html></frameset></head></iframe></image></isindex></noembed></noframes></noscript></optgroup></option></plaintext></textarea>"
5292 expected: "| <html>\n| <head>\n| <body>\n| <br>\n| <table>\n| <tbody>\n| <tr>\n| <p>\n"
5294 name: "tests1.dat #114"
5297 expected: "| <html>\n| <head>\n| <frameset>\n"
5299 name: "tests20.dat #1"
5300 html: "<!doctype html><p><button><button>"
5302 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <button>\n"
5304 name: "tests20.dat #2"
5305 html: "<!doctype html><p><button><address>"
5307 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <address>\n"
5309 name: "tests20.dat #3"
5310 html: "<!doctype html><p><button><blockquote>"
5312 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <blockquote>\n"
5314 name: "tests20.dat #4"
5315 html: "<!doctype html><p><button><menu>"
5317 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <menu>\n"
5319 name: "tests20.dat #5"
5320 html: "<!doctype html><p><button><p>"
5322 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <p>\n"
5324 name: "tests20.dat #6"
5325 html: "<!doctype html><p><button><ul>"
5327 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <ul>\n"
5329 name: "tests20.dat #7"
5330 html: "<!doctype html><p><button><h1>"
5332 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <h1>\n"
5334 name: "tests20.dat #8"
5335 html: "<!doctype html><p><button><h6>"
5337 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <h6>\n"
5339 name: "tests20.dat #9"
5340 html: "<!doctype html><p><button><listing>"
5342 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <listing>\n"
5344 name: "tests20.dat #10"
5345 html: "<!doctype html><p><button><pre>"
5347 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <pre>\n"
5349 name: "tests20.dat #11"
5350 html: "<!doctype html><p><button><form>"
5352 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <form>\n"
5354 name: "tests20.dat #12"
5355 html: "<!doctype html><p><button><li>"
5357 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <li>\n"
5359 name: "tests20.dat #13"
5360 html: "<!doctype html><p><button><dd>"
5362 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <dd>\n"
5364 name: "tests20.dat #14"
5365 html: "<!doctype html><p><button><dt>"
5367 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <dt>\n"
5369 name: "tests20.dat #15"
5370 html: "<!doctype html><p><button><plaintext>"
5372 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <plaintext>\n"
5374 name: "tests20.dat #16"
5375 html: "<!doctype html><p><button><table>"
5377 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <table>\n"
5379 name: "tests20.dat #17"
5380 html: "<!doctype html><p><button><hr>"
5382 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <hr>\n"
5384 name: "tests20.dat #18"
5385 html: "<!doctype html><p><button><xmp>"
5387 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <xmp>\n"
5389 name: "tests20.dat #19"
5390 html: "<!doctype html><p><button></p>"
5392 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <p>\n"
5394 name: "tests20.dat #20"
5395 html: "<!doctype html><address><button></address>a"
5397 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <address>\n| <button>\n| \"a\"\n"
5399 name: "tests20.dat #21"
5400 html: "<!doctype html><address><button></address>a"
5402 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <address>\n| <button>\n| \"a\"\n"
5404 name: "tests20.dat #22"
5405 html: "<p><table></p>"
5407 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <p>\n| <table>\n"
5409 name: "tests20.dat #23"
5410 html: "<!doctype html><svg>"
5412 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n"
5414 name: "tests20.dat #24"
5415 html: "<!doctype html><p><figcaption>"
5417 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <figcaption>\n"
5419 name: "tests20.dat #25"
5420 html: "<!doctype html><p><summary>"
5422 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <summary>\n"
5424 name: "tests20.dat #26"
5425 html: "<!doctype html><form><table><form>"
5427 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <form>\n| <table>\n"
5429 name: "tests20.dat #27"
5430 html: "<!doctype html><table><form><form>"
5432 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <form>\n"
5434 name: "tests20.dat #28"
5435 html: "<!doctype html><table><form></table><form>"
5437 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <form>\n"
5439 name: "tests20.dat #29"
5440 html: "<!doctype html><svg><foreignObject><p>"
5442 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg foreignObject>\n| <p>\n"
5444 name: "tests20.dat #30"
5445 html: "<!doctype html><svg><title>abc"
5447 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg title>\n| \"abc\"\n"
5449 name: "tests20.dat #31"
5450 html: "<option><span><option>"
5452 expected: "| <html>\n| <head>\n| <body>\n| <option>\n| <span>\n| <option>\n"
5454 name: "tests20.dat #32"
5455 html: "<option><option>"
5457 expected: "| <html>\n| <head>\n| <body>\n| <option>\n| <option>\n"
5459 name: "tests20.dat #33"
5460 html: "<math><annotation-xml><div>"
5462 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| <div>\n"
5464 name: "tests20.dat #34"
5465 html: "<math><annotation-xml encoding=\"application/svg+xml\"><div>"
5467 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| encoding=\"application/svg+xml\"\n| <div>\n"
5469 name: "tests20.dat #35"
5470 html: "<math><annotation-xml encoding=\"application/xhtml+xml\"><div>"
5472 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| encoding=\"application/xhtml+xml\"\n| <div>\n"
5474 name: "tests20.dat #36"
5475 html: "<math><annotation-xml encoding=\"aPPlication/xhtmL+xMl\"><div>"
5477 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| encoding=\"aPPlication/xhtmL+xMl\"\n| <div>\n"
5479 name: "tests20.dat #37"
5480 html: "<math><annotation-xml encoding=\"text/html\"><div>"
5482 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| encoding=\"text/html\"\n| <div>\n"
5484 name: "tests20.dat #38"
5485 html: "<math><annotation-xml encoding=\"Text/htmL\"><div>"
5487 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| encoding=\"Text/htmL\"\n| <div>\n"
5489 name: "tests20.dat #39"
5490 html: "<math><annotation-xml encoding=\" text/html \"><div>"
5492 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| encoding=\" text/html \"\n| <div>\n"
5494 name: "tests21.dat #1"
5495 html: "<svg><![CDATA[foo]]>"
5497 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo\"\n"
5499 name: "tests21.dat #2"
5500 html: "<math><![CDATA[foo]]>"
5502 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| \"foo\"\n"
5504 name: "tests21.dat #3"
5505 html: "<div><![CDATA[foo]]>"
5507 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <!-- [CDATA[foo]] -->\n"
5509 name: "tests21.dat #4"
5510 html: "<svg><![CDATA[foo"
5512 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo\"\n"
5514 name: "tests21.dat #5"
5515 html: "<svg><![CDATA[foo"
5517 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo\"\n"
5519 name: "tests21.dat #6"
5520 html: "<svg><![CDATA["
5522 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n"
5524 name: "tests21.dat #7"
5525 html: "<svg><![CDATA[]]>"
5527 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n"
5529 name: "tests21.dat #8"
5530 html: "<svg><![CDATA[]] >]]>"
5532 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"]] >\"\n"
5534 name: "tests21.dat #9"
5535 html: "<svg><![CDATA[]] >]]>"
5537 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"]] >\"\n"
5539 name: "tests21.dat #10"
5540 html: "<svg><![CDATA[]]"
5542 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"]]\"\n"
5544 name: "tests21.dat #11"
5545 html: "<svg><![CDATA[]"
5547 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"]\"\n"
5549 name: "tests21.dat #12"
5550 html: "<svg><![CDATA[]>a"
5552 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"]>a\"\n"
5554 name: "tests21.dat #13"
5555 html: "<!DOCTYPE html><svg><![CDATA[foo]]]>"
5557 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo]\"\n"
5559 name: "tests21.dat #14"
5560 html: "<!DOCTYPE html><svg><![CDATA[foo]]]]>"
5562 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo]]\"\n"
5564 name: "tests21.dat #15"
5565 html: "<!DOCTYPE html><svg><![CDATA[foo]]]]]>"
5567 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo]]]\"\n"
5569 name: "tests21.dat #16"
5570 html: "<svg><foreignObject><div><![CDATA[foo]]>"
5572 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg foreignObject>\n| <div>\n| <!-- [CDATA[foo]] -->\n"
5574 name: "tests21.dat #17"
5575 html: "<svg><![CDATA[<svg>]]>"
5577 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<svg>\"\n"
5579 name: "tests21.dat #18"
5580 html: "<svg><![CDATA[</svg>a]]>"
5582 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"</svg>a\"\n"
5584 name: "tests21.dat #19"
5585 html: "<svg><![CDATA[<svg>a"
5587 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<svg>a\"\n"
5589 name: "tests21.dat #20"
5590 html: "<svg><![CDATA[</svg>a"
5592 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"</svg>a\"\n"
5594 name: "tests21.dat #21"
5595 html: "<svg><![CDATA[<svg>]]><path>"
5597 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<svg>\"\n| <svg path>\n"
5599 name: "tests21.dat #22"
5600 html: "<svg><![CDATA[<svg>]]></path>"
5602 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<svg>\"\n"
5604 name: "tests21.dat #23"
5605 html: "<svg><![CDATA[<svg>]]><!--path-->"
5607 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<svg>\"\n| <!-- path -->\n"
5609 name: "tests21.dat #24"
5610 html: "<svg><![CDATA[<svg>]]>path"
5612 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<svg>path\"\n"
5614 name: "tests21.dat #25"
5615 html: "<svg><![CDATA[<!--svg-->]]>"
5617 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<!--svg-->\"\n"
5619 name: "tests22.dat #1"
5620 html: "<a><b><big><em><strong><div>X</a>"
5622 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <b>\n| <big>\n| <em>\n| <strong>\n| <big>\n| <em>\n| <strong>\n| <div>\n| <a>\n| \"X\"\n"
5624 name: "tests22.dat #2"
5625 html: "<a><b><div id=1><div id=2><div id=3><div id=4><div id=5><div id=6><div id=7><div id=8>A</a>"
5627 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <b>\n| <b>\n| <div>\n| id=\"1\"\n| <a>\n| <div>\n| id=\"2\"\n| <a>\n| <div>\n| id=\"3\"\n| <a>\n| <div>\n| id=\"4\"\n| <a>\n| <div>\n| id=\"5\"\n| <a>\n| <div>\n| id=\"6\"\n| <a>\n| <div>\n| id=\"7\"\n| <a>\n| <div>\n| id=\"8\"\n| <a>\n| \"A\"\n"
5629 name: "tests22.dat #3"
5630 html: "<a><b><div id=1><div id=2><div id=3><div id=4><div id=5><div id=6><div id=7><div id=8><div id=9>A</a>"
5632 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <b>\n| <b>\n| <div>\n| id=\"1\"\n| <a>\n| <div>\n| id=\"2\"\n| <a>\n| <div>\n| id=\"3\"\n| <a>\n| <div>\n| id=\"4\"\n| <a>\n| <div>\n| id=\"5\"\n| <a>\n| <div>\n| id=\"6\"\n| <a>\n| <div>\n| id=\"7\"\n| <a>\n| <div>\n| id=\"8\"\n| <a>\n| <div>\n| id=\"9\"\n| \"A\"\n"
5634 name: "tests22.dat #4"
5635 html: "<a><b><div id=1><div id=2><div id=3><div id=4><div id=5><div id=6><div id=7><div id=8><div id=9><div id=10>A</a>"
5637 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <b>\n| <b>\n| <div>\n| id=\"1\"\n| <a>\n| <div>\n| id=\"2\"\n| <a>\n| <div>\n| id=\"3\"\n| <a>\n| <div>\n| id=\"4\"\n| <a>\n| <div>\n| id=\"5\"\n| <a>\n| <div>\n| id=\"6\"\n| <a>\n| <div>\n| id=\"7\"\n| <a>\n| <div>\n| id=\"8\"\n| <a>\n| <div>\n| id=\"9\"\n| <div>\n| id=\"10\"\n| \"A\"\n"
5639 name: "tests22.dat #5"
5640 html: "<cite><b><cite><i><cite><i><cite><i><div>X</b>TEST"
5642 expected: "| <html>\n| <head>\n| <body>\n| <cite>\n| <b>\n| <cite>\n| <i>\n| <cite>\n| <i>\n| <cite>\n| <i>\n| <i>\n| <i>\n| <div>\n| <b>\n| \"X\"\n| \"TEST\"\n"
5644 name: "tests23.dat #1"
5645 html: "<p><font size=4><font color=red><font size=4><font size=4><font size=4><font size=4><font size=4><font color=red><p>X"
5647 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <font>\n| size=\"4\"\n| <font>\n| color=\"red\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| color=\"red\"\n| <p>\n| <font>\n| color=\"red\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| color=\"red\"\n| \"X\"\n"
5649 name: "tests23.dat #2"
5650 html: "<p><font size=4><font size=4><font size=4><font size=4><p>X"
5652 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <p>\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| \"X\"\n"
5654 name: "tests23.dat #3"
5655 html: "<p><font size=4><font size=4><font size=4><font size=\"5\"><font size=4><p>X"
5657 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"5\"\n| <font>\n| size=\"4\"\n| <p>\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"5\"\n| <font>\n| size=\"4\"\n| \"X\"\n"
5659 name: "tests23.dat #4"
5660 html: "<p><font size=4 id=a><font size=4 id=b><font size=4><font size=4><p>X"
5662 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <font>\n| id=\"a\"\n| size=\"4\"\n| <font>\n| id=\"b\"\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <p>\n| <font>\n| id=\"a\"\n| size=\"4\"\n| <font>\n| id=\"b\"\n| size=\"4\"\n| <font>\n| size=\"4\"\n| <font>\n| size=\"4\"\n| \"X\"\n"
5664 name: "tests23.dat #5"
5665 html: "<p><b id=a><b id=a><b id=a><b><object><b id=a><b id=a>X</object><p>Y"
5667 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| id=\"a\"\n| <b>\n| id=\"a\"\n| <b>\n| id=\"a\"\n| <b>\n| <object>\n| <b>\n| id=\"a\"\n| <b>\n| id=\"a\"\n| \"X\"\n| <p>\n| <b>\n| id=\"a\"\n| <b>\n| id=\"a\"\n| <b>\n| id=\"a\"\n| <b>\n| \"Y\"\n"
5669 name: "tests24.dat #1"
5670 html: "<!DOCTYPE html>≂̸"
5671 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"≂̸\"\n"
5673 name: "tests24.dat #2"
5674 html: "<!DOCTYPE html>≂̸A"
5675 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"≂̸A\"\n"
5677 name: "tests24.dat #3"
5678 html: "<!DOCTYPE html>  "
5679 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" \"\n"
5681 name: "tests24.dat #4"
5682 html: "<!DOCTYPE html>  A"
5683 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" A\"\n"
5685 name: "tests24.dat #5"
5686 html: "<!DOCTYPE html>⊂⃒"
5687 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"⊂⃒\"\n"
5689 name: "tests24.dat #6"
5690 html: "<!DOCTYPE html>⊂⃒A"
5691 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"⊂⃒A\"\n"
5693 name: "tests24.dat #7"
5694 html: "<!DOCTYPE html>𝔾"
5695 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"𝔾\"\n"
5697 name: "tests24.dat #8"
5698 html: "<!DOCTYPE html>𝔾A"
5699 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"𝔾A\"\n"
5701 name: "tests25.dat #1"
5702 html: "<!DOCTYPE html><body><foo>A"
5704 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <foo>\n| \"A\"\n"
5706 name: "tests25.dat #2"
5707 html: "<!DOCTYPE html><body><area>A"
5708 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <area>\n| \"A\"\n"
5710 name: "tests25.dat #3"
5711 html: "<!DOCTYPE html><body><base>A"
5712 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <base>\n| \"A\"\n"
5714 name: "tests25.dat #4"
5715 html: "<!DOCTYPE html><body><basefont>A"
5716 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <basefont>\n| \"A\"\n"
5718 name: "tests25.dat #5"
5719 html: "<!DOCTYPE html><body><bgsound>A"
5720 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <bgsound>\n| \"A\"\n"
5722 name: "tests25.dat #6"
5723 html: "<!DOCTYPE html><body><br>A"
5724 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <br>\n| \"A\"\n"
5726 name: "tests25.dat #7"
5727 html: "<!DOCTYPE html><body><col>A"
5729 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"A\"\n"
5731 name: "tests25.dat #8"
5732 html: "<!DOCTYPE html><body><command>A"
5734 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <command>\n| \"A\"\n"
5736 name: "tests25.dat #9"
5737 html: "<!DOCTYPE html><body><menuitem>A"
5738 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <menuitem>\n| \"A\"\n"
5740 name: "tests25.dat #10"
5741 html: "<!DOCTYPE html><body><embed>A"
5742 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <embed>\n| \"A\"\n"
5744 name: "tests25.dat #11"
5745 html: "<!DOCTYPE html><body><frame>A"
5747 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"A\"\n"
5749 name: "tests25.dat #12"
5750 html: "<!DOCTYPE html><body><hr>A"
5751 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <hr>\n| \"A\"\n"
5753 name: "tests25.dat #13"
5754 html: "<!DOCTYPE html><body><img>A"
5755 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <img>\n| \"A\"\n"
5757 name: "tests25.dat #14"
5758 html: "<!DOCTYPE html><body><input>A"
5759 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <input>\n| \"A\"\n"
5761 name: "tests25.dat #15"
5762 html: "<!DOCTYPE html><body><keygen>A"
5763 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <keygen>\n| \"A\"\n"
5765 name: "tests25.dat #16"
5766 html: "<!DOCTYPE html><body><link>A"
5767 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <link>\n| \"A\"\n"
5769 name: "tests25.dat #17"
5770 html: "<!DOCTYPE html><body><meta>A"
5771 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <meta>\n| \"A\"\n"
5773 name: "tests25.dat #18"
5774 html: "<!DOCTYPE html><body><param>A"
5775 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <param>\n| \"A\"\n"
5777 name: "tests25.dat #19"
5778 html: "<!DOCTYPE html><body><source>A"
5779 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <source>\n| \"A\"\n"
5781 name: "tests25.dat #20"
5782 html: "<!DOCTYPE html><body><track>A"
5783 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <track>\n| \"A\"\n"
5785 name: "tests25.dat #21"
5786 html: "<!DOCTYPE html><body><wbr>A"
5787 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <wbr>\n| \"A\"\n"
5789 name: "tests26.dat #1"
5790 html: "<!DOCTYPE html><body><a href='#1'><nobr>1<nobr></a><br><a href='#2'><nobr>2<nobr></a><br><a href='#3'><nobr>3<nobr></a>"
5792 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <a>\n| href=\"#1\"\n| <nobr>\n| \"1\"\n| <nobr>\n| <nobr>\n| <br>\n| <a>\n| href=\"#2\"\n| <a>\n| href=\"#2\"\n| <nobr>\n| \"2\"\n| <nobr>\n| <nobr>\n| <br>\n| <a>\n| href=\"#3\"\n| <a>\n| href=\"#3\"\n| <nobr>\n| \"3\"\n| <nobr>\n"
5794 name: "tests26.dat #2"
5795 html: "<!DOCTYPE html><body><b><nobr>1<nobr></b><i><nobr>2<nobr></i>3"
5797 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <b>\n| <nobr>\n| \"1\"\n| <nobr>\n| <nobr>\n| <i>\n| <i>\n| <nobr>\n| \"2\"\n| <nobr>\n| <nobr>\n| \"3\"\n"
5799 name: "tests26.dat #3"
5800 html: "<!DOCTYPE html><body><b><nobr>1<table><nobr></b><i><nobr>2<nobr></i>3"
5802 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <b>\n| <nobr>\n| \"1\"\n| <nobr>\n| <i>\n| <i>\n| <nobr>\n| \"2\"\n| <nobr>\n| <nobr>\n| \"3\"\n| <table>\n"
5804 name: "tests26.dat #4"
5805 html: "<!DOCTYPE html><body><b><nobr>1<table><tr><td><nobr></b><i><nobr>2<nobr></i>3"
5807 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <b>\n| <nobr>\n| \"1\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <nobr>\n| <i>\n| <i>\n| <nobr>\n| \"2\"\n| <nobr>\n| <nobr>\n| \"3\"\n"
5809 name: "tests26.dat #5"
5810 html: "<!DOCTYPE html><body><b><nobr>1<div><nobr></b><i><nobr>2<nobr></i>3"
5812 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <b>\n| <nobr>\n| \"1\"\n| <div>\n| <b>\n| <nobr>\n| <nobr>\n| <nobr>\n| <i>\n| <i>\n| <nobr>\n| \"2\"\n| <nobr>\n| <nobr>\n| \"3\"\n"
5814 name: "tests26.dat #6"
5815 html: "<!DOCTYPE html><body><b><nobr>1<nobr></b><div><i><nobr>2<nobr></i>3"
5817 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <b>\n| <nobr>\n| \"1\"\n| <nobr>\n| <div>\n| <nobr>\n| <i>\n| <i>\n| <nobr>\n| \"2\"\n| <nobr>\n| <nobr>\n| \"3\"\n"
5819 name: "tests26.dat #7"
5820 html: "<!DOCTYPE html><body><b><nobr>1<nobr><ins></b><i><nobr>"
5822 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <b>\n| <nobr>\n| \"1\"\n| <nobr>\n| <ins>\n| <nobr>\n| <i>\n| <i>\n| <nobr>\n"
5824 name: "tests26.dat #8"
5825 html: "<!DOCTYPE html><body><b><nobr>1<ins><nobr></b><i>2"
5827 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <b>\n| <nobr>\n| \"1\"\n| <ins>\n| <nobr>\n| <nobr>\n| <i>\n| \"2\"\n"
5829 name: "tests26.dat #9"
5830 html: "<!DOCTYPE html><body><b>1<nobr></b><i><nobr>2</i>"
5832 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <b>\n| \"1\"\n| <nobr>\n| <nobr>\n| <i>\n| <i>\n| <nobr>\n| \"2\"\n"
5834 name: "tests26.dat #10"
5835 html: "<p><code x</code></p>\n"
5837 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <code>\n| code=\"\"\n| x<=\"\"\n| <code>\n| code=\"\"\n| x<=\"\"\n| \"\n\"\n"
5839 name: "tests26.dat #11"
5840 html: "<!DOCTYPE html><svg><foreignObject><p><i></p>a"
5842 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg foreignObject>\n| <p>\n| <i>\n| <i>\n| \"a\"\n"
5844 name: "tests26.dat #12"
5845 html: "<!DOCTYPE html><table><tr><td><svg><foreignObject><p><i></p>a"
5847 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <svg svg>\n| <svg foreignObject>\n| <p>\n| <i>\n| <i>\n| \"a\"\n"
5849 name: "tests26.dat #13"
5850 html: "<!DOCTYPE html><math><mtext><p><i></p>a"
5852 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mtext>\n| <p>\n| <i>\n| <i>\n| \"a\"\n"
5854 name: "tests26.dat #14"
5855 html: "<!DOCTYPE html><table><tr><td><math><mtext><p><i></p>a"
5857 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <math math>\n| <math mtext>\n| <p>\n| <i>\n| <i>\n| \"a\"\n"
5859 name: "tests26.dat #15"
5860 html: "<!DOCTYPE html><body><div><!/div>a"
5862 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <div>\n| <!-- /div -->\n| \"a\"\n"
5864 name: "tests26.dat #16"
5865 html: "<button><p><button>"
5867 expected: "| <html>\n| <head>\n| <body>\n| <button>\n| <p>\n| <button>\n"
5869 name: "tests2.dat #1"
5870 html: "<!DOCTYPE html>Test"
5871 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"Test\"\n"
5873 name: "tests2.dat #2"
5874 html: "<textarea>test</div>test"
5876 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \"test</div>test\"\n"
5878 name: "tests2.dat #3"
5881 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
5883 name: "tests2.dat #4"
5884 html: "<table><td>test</tbody></table>"
5886 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"test\"\n"
5888 name: "tests2.dat #5"
5891 expected: "| <html>\n| <head>\n| <body>\n| \"test\"\n"
5893 name: "tests2.dat #6"
5894 html: "<!DOCTYPE html><frameset>test"
5896 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
5898 name: "tests2.dat #7"
5899 html: "<!DOCTYPE html><frameset> te st"
5901 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| \" \"\n"
5903 name: "tests2.dat #8"
5904 html: "<!DOCTYPE html><frameset></frameset> te st"
5906 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| \" \"\n"
5908 name: "tests2.dat #9"
5909 html: "<!DOCTYPE html><frameset><!DOCTYPE html>"
5911 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
5913 name: "tests2.dat #10"
5914 html: "<!DOCTYPE html><font><p><b>test</font>"
5916 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <font>\n| <p>\n| <font>\n| <b>\n| \"test\"\n"
5918 name: "tests2.dat #11"
5919 html: "<!DOCTYPE html><dt><div><dd>"
5921 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <dt>\n| <div>\n| <dd>\n"
5923 name: "tests2.dat #12"
5926 expected: "| <html>\n| <head>\n| <script>\n| \"</x\"\n| <body>\n"
5928 name: "tests2.dat #13"
5929 html: "<table><plaintext><td>"
5931 expected: "| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"<td>\"\n| <table>\n"
5933 name: "tests2.dat #14"
5934 html: "<plaintext></plaintext>"
5936 expected: "| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"</plaintext>\"\n"
5938 name: "tests2.dat #15"
5939 html: "<!DOCTYPE html><table><tr>TEST"
5941 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"TEST\"\n| <table>\n| <tbody>\n| <tr>\n"
5943 name: "tests2.dat #16"
5944 html: "<!DOCTYPE html><body t1=1><body t2=2><body t3=3 t4=4>"
5946 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| t1=\"1\"\n| t2=\"2\"\n| t3=\"3\"\n| t4=\"4\"\n"
5948 name: "tests2.dat #17"
5951 expected: "| <html>\n| <head>\n| <body>\n"
5953 name: "tests2.dat #18"
5954 html: "<!DOCTYPE html></b test<b &=&>X"
5956 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"X\"\n"
5958 name: "tests2.dat #19"
5959 html: "<!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt"
5961 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| type=\"text/x-foobar;baz\"\n| \"X</SCRipt\"\n| <body>\n"
5963 name: "tests2.dat #20"
5966 expected: "| <html>\n| <head>\n| <body>\n| \"&\"\n"
5968 name: "tests2.dat #21"
5971 expected: "| <html>\n| <head>\n| <body>\n| \"&#\"\n"
5973 name: "tests2.dat #22"
5976 expected: "| <html>\n| <head>\n| <body>\n| \"&#X\"\n"
5978 name: "tests2.dat #23"
5981 expected: "| <html>\n| <head>\n| <body>\n| \"&#x\"\n"
5983 name: "tests2.dat #24"
5986 expected: "| <html>\n| <head>\n| <body>\n| \"-\"\n"
5988 name: "tests2.dat #25"
5991 expected: "| <html>\n| <head>\n| <body>\n| \"&x-test\"\n"
5993 name: "tests2.dat #26"
5994 html: "<!doctypehtml><p><li>"
5996 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <li>\n"
5998 name: "tests2.dat #27"
5999 html: "<!doctypehtml><p><dt>"
6001 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <dt>\n"
6003 name: "tests2.dat #28"
6004 html: "<!doctypehtml><p><dd>"
6006 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <dd>\n"
6008 name: "tests2.dat #29"
6009 html: "<!doctypehtml><p><form>"
6011 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <form>\n"
6013 name: "tests2.dat #30"
6014 html: "<!DOCTYPE html><p></P>X"
6015 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| \"X\"\n"
6017 name: "tests2.dat #31"
6020 expected: "| <html>\n| <head>\n| <body>\n| \"&\"\n"
6022 name: "tests2.dat #32"
6025 expected: "| <html>\n| <head>\n| <body>\n| \"&AMp;\"\n"
6027 name: "tests2.dat #33"
6028 html: "<!DOCTYPE html><html><head></head><body><thisISasillyTESTelementNameToMakeSureCrazyTagNamesArePARSEDcorrectLY>"
6030 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <thisisasillytestelementnametomakesurecrazytagnamesareparsedcorrectly>\n"
6032 name: "tests2.dat #34"
6033 html: "<!DOCTYPE html>X</body>X"
6035 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"XX\"\n"
6037 name: "tests2.dat #35"
6038 html: "<!DOCTYPE html><!-- X"
6040 expected: "| <!DOCTYPE html>\n| <!-- X -->\n| <html>\n| <head>\n| <body>\n"
6042 name: "tests2.dat #36"
6043 html: "<!DOCTYPE html><table><caption>test TEST</caption><td>test"
6045 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| \"test TEST\"\n| <tbody>\n| <tr>\n| <td>\n| \"test\"\n"
6047 name: "tests2.dat #37"
6048 html: "<!DOCTYPE html><select><option><optgroup>"
6050 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| <optgroup>\n"
6052 name: "tests2.dat #38"
6053 html: "<!DOCTYPE html><select><optgroup><option></optgroup><option><select><option>"
6055 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <optgroup>\n| <option>\n| <option>\n| <option>\n"
6057 name: "tests2.dat #39"
6058 html: "<!DOCTYPE html><select><optgroup><option><optgroup>"
6060 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <optgroup>\n| <option>\n| <optgroup>\n"
6062 name: "tests2.dat #40"
6063 html: "<!DOCTYPE html><datalist><option>foo</datalist>bar"
6064 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <datalist>\n| <option>\n| \"foo\"\n| \"bar\"\n"
6066 name: "tests2.dat #41"
6067 html: "<!DOCTYPE html><font><input><input></font>"
6068 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <font>\n| <input>\n| <input>\n"
6070 name: "tests2.dat #42"
6071 html: "<!DOCTYPE html><!-- XXX - XXX -->"
6072 expected: "| <!DOCTYPE html>\n| <!-- XXX - XXX -->\n| <html>\n| <head>\n| <body>\n"
6074 name: "tests2.dat #43"
6075 html: "<!DOCTYPE html><!-- XXX - XXX"
6077 expected: "| <!DOCTYPE html>\n| <!-- XXX - XXX -->\n| <html>\n| <head>\n| <body>\n"
6079 name: "tests2.dat #44"
6080 html: "<!DOCTYPE html><!-- XXX - XXX - XXX -->"
6081 expected: "| <!DOCTYPE html>\n| <!-- XXX - XXX - XXX -->\n| <html>\n| <head>\n| <body>\n"
6083 name: "tests2.dat #45"
6084 html: "<isindex test=x name=x>"
6086 expected: "| <html>\n| <head>\n| <body>\n| <form>\n| <hr>\n| <label>\n| \"This is a searchable index. Enter search keywords: \"\n| <input>\n| name=\"isindex\"\n| test=\"x\"\n| <hr>\n"
6088 name: "tests2.dat #46"
6091 expected: "| <html>\n| <head>\n| <body>\n| \"test\ntest\"\n"
6093 name: "tests2.dat #47"
6094 html: "<!DOCTYPE html><body><title>test</body></title>"
6095 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <title>\n| \"test</body>\"\n"
6097 name: "tests2.dat #48"
6098 html: "<!DOCTYPE html><body><title>X</title><meta name=z><link rel=foo><style>\nx { content:\"</style\" } </style>"
6099 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <title>\n| \"X\"\n| <meta>\n| name=\"z\"\n| <link>\n| rel=\"foo\"\n| <style>\n| \"\nx { content:\"</style\" } \"\n"
6101 name: "tests2.dat #49"
6102 html: "<!DOCTYPE html><select><optgroup></optgroup></select>"
6103 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <optgroup>\n"
6105 name: "tests2.dat #50"
6108 expected: "| <html>\n| <head>\n| <body>\n"
6110 name: "tests2.dat #51"
6111 html: "<!DOCTYPE html> <html>"
6112 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
6114 name: "tests2.dat #52"
6115 html: "<!DOCTYPE html><script>\n</script> <title>x</title> </head>"
6116 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"\n\"\n| \" \"\n| <title>\n| \"x\"\n| \" \"\n| <body>\n"
6118 name: "tests2.dat #53"
6119 html: "<!DOCTYPE html><html><body><html id=x>"
6121 expected: "| <!DOCTYPE html>\n| <html>\n| id=\"x\"\n| <head>\n| <body>\n"
6123 name: "tests2.dat #54"
6124 html: "<!DOCTYPE html>X</body><html id=\"x\">"
6126 expected: "| <!DOCTYPE html>\n| <html>\n| id=\"x\"\n| <head>\n| <body>\n| \"X\"\n"
6128 name: "tests2.dat #55"
6129 html: "<!DOCTYPE html><head><html id=x>"
6131 expected: "| <!DOCTYPE html>\n| <html>\n| id=\"x\"\n| <head>\n| <body>\n"
6133 name: "tests2.dat #56"
6134 html: "<!DOCTYPE html>X</html>X"
6136 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"XX\"\n"
6138 name: "tests2.dat #57"
6139 html: "<!DOCTYPE html>X</html> "
6140 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"X \"\n"
6142 name: "tests2.dat #58"
6143 html: "<!DOCTYPE html>X</html><p>X"
6145 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"X\"\n| <p>\n| \"X\"\n"
6147 name: "tests2.dat #59"
6148 html: "<!DOCTYPE html>X<p/x/y/z>"
6150 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"X\"\n| <p>\n| x=\"\"\n| y=\"\"\n| z=\"\"\n"
6152 name: "tests2.dat #60"
6153 html: "<!DOCTYPE html><!--x--"
6155 expected: "| <!DOCTYPE html>\n| <!-- x -->\n| <html>\n| <head>\n| <body>\n"
6157 name: "tests2.dat #61"
6158 html: "<!DOCTYPE html><table><tr><td></p></table>"
6160 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <p>\n"
6162 name: "tests2.dat #62"
6163 html: "<!DOCTYPE <!DOCTYPE HTML>><!--<!--x-->-->"
6165 expected: "| <!DOCTYPE <!doctype>\n| <html>\n| <head>\n| <body>\n| \">\"\n| <!-- <!--x -->\n| \"-->\"\n"
6167 name: "tests2.dat #63"
6168 html: "<!doctype html><div><form></form><div></div></div>"
6169 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <div>\n| <form>\n| <div>\n"
6171 name: "tests3.dat #1"
6172 html: "<head></head><style></style>"
6174 expected: "| <html>\n| <head>\n| <style>\n| <body>\n"
6176 name: "tests3.dat #2"
6177 html: "<head></head><script></script>"
6179 expected: "| <html>\n| <head>\n| <script>\n| <body>\n"
6181 name: "tests3.dat #3"
6182 html: "<head></head><!-- --><style></style><!-- --><script></script>"
6184 expected: "| <html>\n| <head>\n| <style>\n| <script>\n| <!-- -->\n| <!-- -->\n| <body>\n"
6186 name: "tests3.dat #4"
6187 html: "<head></head><!-- -->x<style></style><!-- --><script></script>"
6189 expected: "| <html>\n| <head>\n| <!-- -->\n| <body>\n| \"x\"\n| <style>\n| <!-- -->\n| <script>\n"
6191 name: "tests3.dat #5"
6192 html: "<!DOCTYPE html><html><head></head><body><pre>\n</pre></body></html>"
6193 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n"
6195 name: "tests3.dat #6"
6196 html: "<!DOCTYPE html><html><head></head><body><pre>\nfoo</pre></body></html>"
6197 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"foo\"\n"
6199 name: "tests3.dat #7"
6200 html: "<!DOCTYPE html><html><head></head><body><pre>\n\nfoo</pre></body></html>"
6201 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"\nfoo\"\n"
6203 name: "tests3.dat #8"
6204 html: "<!DOCTYPE html><html><head></head><body><pre>\nfoo\n</pre></body></html>"
6205 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"foo\n\"\n"
6207 name: "tests3.dat #9"
6208 html: "<!DOCTYPE html><html><head></head><body><pre>x</pre><span>\n</span></body></html>"
6209 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\"\n| <span>\n| \"\n\"\n"
6211 name: "tests3.dat #10"
6212 html: "<!DOCTYPE html><html><head></head><body><pre>x\ny</pre></body></html>"
6213 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\ny\"\n"
6215 name: "tests3.dat #11"
6216 html: "<!DOCTYPE html><html><head></head><body><pre>x<div>\ny</pre></body></html>"
6218 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\"\n| <div>\n| \"\ny\"\n"
6220 name: "tests3.dat #12"
6221 html: "<!DOCTYPE html><pre>

A</pre>"
6222 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"\nA\"\n"
6224 name: "tests3.dat #13"
6225 html: "<!DOCTYPE html><HTML><META><HEAD></HEAD></HTML>"
6227 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <meta>\n| <body>\n"
6229 name: "tests3.dat #14"
6230 html: "<!DOCTYPE html><HTML><HEAD><head></HEAD></HTML>"
6232 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
6234 name: "tests3.dat #15"
6235 html: "<textarea>foo<span>bar</span><i>baz"
6237 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \"foo<span>bar</span><i>baz\"\n"
6239 name: "tests3.dat #16"
6240 html: "<title>foo<span>bar</em><i>baz"
6242 expected: "| <html>\n| <head>\n| <title>\n| \"foo<span>bar</em><i>baz\"\n| <body>\n"
6244 name: "tests3.dat #17"
6245 html: "<!DOCTYPE html><textarea>\n</textarea>"
6246 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n"
6248 name: "tests3.dat #18"
6249 html: "<!DOCTYPE html><textarea>\nfoo</textarea>"
6250 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"foo\"\n"
6252 name: "tests3.dat #19"
6253 html: "<!DOCTYPE html><textarea>\n\nfoo</textarea>"
6254 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"\nfoo\"\n"
6256 name: "tests3.dat #20"
6257 html: "<!DOCTYPE html><html><head></head><body><ul><li><div><p><li></ul></body></html>"
6259 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ul>\n| <li>\n| <div>\n| <p>\n| <li>\n"
6261 name: "tests3.dat #21"
6262 html: "<!doctype html><nobr><nobr><nobr>"
6264 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <nobr>\n| <nobr>\n| <nobr>\n"
6266 name: "tests3.dat #22"
6267 html: "<!doctype html><nobr><nobr></nobr><nobr>"
6269 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <nobr>\n| <nobr>\n| <nobr>\n"
6271 name: "tests3.dat #23"
6272 html: "<!doctype html><html><body><p><table></table></body></html>"
6273 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <table>\n"
6275 name: "tests3.dat #24"
6276 html: "<p><table></table>"
6278 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <table>\n"
6280 name: "tests4.dat #1"
6281 html: "direct div content"
6283 expected: "| \"direct div content\"\n"
6285 name: "tests4.dat #2"
6286 html: "direct textarea content"
6287 fragment: "textarea"
6288 expected: "| \"direct textarea content\"\n"
6290 name: "tests4.dat #3"
6291 html: "textarea content with <em>pseudo</em> <foo>markup"
6292 fragment: "textarea"
6293 expected: "| \"textarea content with <em>pseudo</em> <foo>markup\"\n"
6295 name: "tests4.dat #4"
6296 html: "this is CDATA inside a <style> element"
6298 expected: "| \"this is CDATA inside a <style> element\"\n"
6300 name: "tests4.dat #5"
6301 html: "</plaintext>"
6302 fragment: "plaintext"
6303 expected: "| \"</plaintext>\"\n"
6305 name: "tests4.dat #6"
6306 html: "setting html's innerHTML"
6308 expected: "| <head>\n| <body>\n| \"setting html's innerHTML\"\n"
6310 name: "tests4.dat #7"
6311 html: "<title>setting head's innerHTML</title>"
6313 expected: "| <title>\n| \"setting head's innerHTML\"\n"
6315 name: "tests5.dat #1"
6316 html: "<style> <!-- </style>x"
6318 expected: "| <html>\n| <head>\n| <style>\n| \" <!-- \"\n| <body>\n| \"x\"\n"
6320 name: "tests5.dat #2"
6321 html: "<style> <!-- </style> --> </style>x"
6323 expected: "| <html>\n| <head>\n| <style>\n| \" <!-- \"\n| \" \"\n| <body>\n| \"--> x\"\n"
6325 name: "tests5.dat #3"
6326 html: "<style> <!--> </style>x"
6328 expected: "| <html>\n| <head>\n| <style>\n| \" <!--> \"\n| <body>\n| \"x\"\n"
6330 name: "tests5.dat #4"
6331 html: "<style> <!---> </style>x"
6333 expected: "| <html>\n| <head>\n| <style>\n| \" <!---> \"\n| <body>\n| \"x\"\n"
6335 name: "tests5.dat #5"
6336 html: "<iframe> <!---> </iframe>x"
6338 expected: "| <html>\n| <head>\n| <body>\n| <iframe>\n| \" <!---> \"\n| \"x\"\n"
6340 name: "tests5.dat #6"
6341 html: "<iframe> <!--- </iframe>->x</iframe> --> </iframe>x"
6343 expected: "| <html>\n| <head>\n| <body>\n| <iframe>\n| \" <!--- \"\n| \"->x --> x\"\n"
6345 name: "tests5.dat #7"
6346 html: "<script> <!-- </script> --> </script>x"
6348 expected: "| <html>\n| <head>\n| <script>\n| \" <!-- \"\n| \" \"\n| <body>\n| \"--> x\"\n"
6350 name: "tests5.dat #8"
6351 html: "<title> <!-- </title> --> </title>x"
6353 expected: "| <html>\n| <head>\n| <title>\n| \" <!-- \"\n| \" \"\n| <body>\n| \"--> x\"\n"
6355 name: "tests5.dat #9"
6356 html: "<textarea> <!--- </textarea>->x</textarea> --> </textarea>x"
6358 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \" <!--- \"\n| \"->x --> x\"\n"
6360 name: "tests5.dat #10"
6361 html: "<style> <!</-- </style>x"
6363 expected: "| <html>\n| <head>\n| <style>\n| \" <!</-- \"\n| <body>\n| \"x\"\n"
6365 name: "tests5.dat #11"
6366 html: "<p><xmp></xmp>"
6368 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <xmp>\n"
6370 name: "tests5.dat #12"
6371 html: "<xmp> <!-- > --> </xmp>"
6373 expected: "| <html>\n| <head>\n| <body>\n| <xmp>\n| \" <!-- > --> \"\n"
6375 name: "tests5.dat #13"
6376 html: "<title>&</title>"
6378 expected: "| <html>\n| <head>\n| <title>\n| \"&\"\n| <body>\n"
6380 name: "tests5.dat #14"
6381 html: "<title><!--&--></title>"
6383 expected: "| <html>\n| <head>\n| <title>\n| \"<!--&-->\"\n| <body>\n"
6385 name: "tests5.dat #15"
6386 html: "<title><!--</title>"
6388 expected: "| <html>\n| <head>\n| <title>\n| \"<!--\"\n| <body>\n"
6390 name: "tests5.dat #16"
6391 html: "<noscript><!--</noscript>--></noscript>"
6393 expected: "| <html>\n| <head>\n| <noscript>\n| \"<!--\"\n| <body>\n| \"-->\"\n"
6395 name: "tests5.dat #17"
6396 html: "<noscript><!--</noscript>--></noscript>"
6398 expected: "| <html>\n| <head>\n| <noscript>\n| <!-- </noscript> -->\n| <body>\n"
6400 name: "tests6.dat #1"
6401 html: "<!doctype html></head> <head>"
6403 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| \" \"\n| <body>\n"
6405 name: "tests6.dat #2"
6406 html: "<!doctype html><form><div></form><div>"
6408 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <form>\n| <div>\n| <div>\n"
6410 name: "tests6.dat #3"
6411 html: "<!doctype html><title>&</title>"
6412 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"&\"\n| <body>\n"
6414 name: "tests6.dat #4"
6415 html: "<!doctype html><title><!--&--></title>"
6416 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"<!--&-->\"\n| <body>\n"
6418 name: "tests6.dat #5"
6421 expected: "| <!DOCTYPE >\n| <html>\n| <head>\n| <body>\n"
6423 name: "tests6.dat #6"
6426 expected: "| <!-- -x -->\n| <html>\n| <head>\n| <body>\n"
6428 name: "tests6.dat #7"
6429 html: "<body>\n<div>"
6430 errors: 2,"document-fragment":"div"
6431 expected: "| \"\n\"\n| <div>\n"
6433 name: "tests6.dat #8"
6434 html: "<frameset></frameset>\nfoo"
6436 expected: "| <html>\n| <head>\n| <frameset>\n| \"\n\"\n"
6438 name: "tests6.dat #9"
6439 html: "<frameset></frameset>\n<noframes>"
6441 expected: "| <html>\n| <head>\n| <frameset>\n| \"\n\"\n| <noframes>\n"
6443 name: "tests6.dat #10"
6444 html: "<frameset></frameset>\n<div>"
6446 expected: "| <html>\n| <head>\n| <frameset>\n| \"\n\"\n"
6448 name: "tests6.dat #11"
6449 html: "<frameset></frameset>\n</html>"
6451 expected: "| <html>\n| <head>\n| <frameset>\n| \"\n\"\n"
6453 name: "tests6.dat #12"
6454 html: "<frameset></frameset>\n</div>"
6456 expected: "| <html>\n| <head>\n| <frameset>\n| \"\n\"\n"
6458 name: "tests6.dat #13"
6459 html: "<form><form>"
6461 expected: "| <html>\n| <head>\n| <body>\n| <form>\n"
6463 name: "tests6.dat #14"
6464 html: "<button><button>"
6466 expected: "| <html>\n| <head>\n| <body>\n| <button>\n| <button>\n"
6468 name: "tests6.dat #15"
6469 html: "<table><tr><td></th>"
6471 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
6473 name: "tests6.dat #16"
6474 html: "<table><caption><td>"
6476 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <tbody>\n| <tr>\n| <td>\n"
6478 name: "tests6.dat #17"
6479 html: "<table><caption><div>"
6481 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <div>\n"
6483 name: "tests6.dat #18"
6484 html: "</caption><div>"
6485 errors: 2,"document-fragment":"caption"
6486 expected: "| <div>\n"
6488 name: "tests6.dat #19"
6489 html: "<table><caption><div></caption>"
6491 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <div>\n"
6493 name: "tests6.dat #20"
6494 html: "<table><caption></table>"
6496 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n"
6498 name: "tests6.dat #21"
6499 html: "</table><div>"
6500 errors: 2,"document-fragment":"caption"
6501 expected: "| <div>\n"
6503 name: "tests6.dat #22"
6504 html: "<table><caption></body></col></colgroup></html></tbody></td></tfoot></th></thead></tr>"
6506 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n"
6508 name: "tests6.dat #23"
6509 html: "<table><caption><div></div>"
6511 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <div>\n"
6513 name: "tests6.dat #24"
6514 html: "<table><tr><td></body></caption></col></colgroup></html>"
6516 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
6518 name: "tests6.dat #25"
6519 html: "</table></tbody></tfoot></thead></tr><div>"
6520 errors: 6,"document-fragment":"td"
6521 expected: "| <div>\n"
6523 name: "tests6.dat #26"
6524 html: "<table><colgroup>foo"
6526 expected: "| <html>\n| <head>\n| <body>\n| \"foo\"\n| <table>\n| <colgroup>\n"
6528 name: "tests6.dat #27"
6530 errors: 3,"document-fragment":"colgroup"
6531 expected: "| <col>\n"
6533 name: "tests6.dat #28"
6534 html: "<table><colgroup></col>"
6536 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <colgroup>\n"
6538 name: "tests6.dat #29"
6539 html: "<frameset><div>"
6541 expected: "| <html>\n| <head>\n| <frameset>\n"
6543 name: "tests6.dat #30"
6544 html: "</frameset><frame>"
6545 errors: 1,"document-fragment":"frameset"
6546 expected: "| <frame>\n"
6548 name: "tests6.dat #31"
6549 html: "<frameset></div>"
6551 expected: "| <html>\n| <head>\n| <frameset>\n"
6553 name: "tests6.dat #32"
6554 html: "</body><div>"
6555 errors: 2,"document-fragment":"body"
6556 expected: "| <div>\n"
6558 name: "tests6.dat #33"
6559 html: "<table><tr><div>"
6561 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <table>\n| <tbody>\n| <tr>\n"
6563 name: "tests6.dat #34"
6565 errors: 1,"document-fragment":"tr"
6566 expected: "| <td>\n"
6568 name: "tests6.dat #35"
6569 html: "</tbody></tfoot></thead><td>"
6570 errors: 3,"document-fragment":"tr"
6571 expected: "| <td>\n"
6573 name: "tests6.dat #36"
6574 html: "<table><tr><div><td>"
6576 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
6578 name: "tests6.dat #37"
6579 html: "<caption><col><colgroup><tbody><tfoot><thead><tr>"
6580 errors: 6,"document-fragment":"tbody"
6581 expected: "| <tr>\n"
6583 name: "tests6.dat #38"
6584 html: "<table><tbody></thead>"
6586 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n"
6588 name: "tests6.dat #39"
6589 html: "</table><tr>"
6590 errors: 1,"document-fragment":"tbody"
6591 expected: "| <tr>\n"
6593 name: "tests6.dat #40"
6594 html: "<table><tbody></body></caption></col></colgroup></html></td></th></tr>"
6596 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n"
6598 name: "tests6.dat #41"
6599 html: "<table><tbody></div>"
6601 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n"
6603 name: "tests6.dat #42"
6604 html: "<table><table>"
6606 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <table>\n"
6608 name: "tests6.dat #43"
6609 html: "<table></body></caption></col></colgroup></html></tbody></td></tfoot></th></thead></tr>"
6611 expected: "| <html>\n| <head>\n| <body>\n| <table>\n"
6613 name: "tests6.dat #44"
6614 html: "</table><tr>"
6615 errors: 1,"document-fragment":"table"
6616 expected: "| <tbody>\n| <tr>\n"
6618 name: "tests6.dat #45"
6619 html: "<body></body></html>"
6620 errors: 1,"document-fragment":"html"
6621 expected: "| <head>\n| <body>\n"
6623 name: "tests6.dat #46"
6624 html: "<html><frameset></frameset></html> "
6626 expected: "| <html>\n| <head>\n| <frameset>\n| \" \"\n"
6628 name: "tests6.dat #47"
6629 html: "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\"><html></html>"
6630 expected: "| <!DOCTYPE html \"-//W3C//DTD HTML 4.01//EN\" \"\">\n| <html>\n| <head>\n| <body>\n"
6632 name: "tests6.dat #48"
6633 html: "<param><frameset></frameset>"
6635 expected: "| <html>\n| <head>\n| <frameset>\n"
6637 name: "tests6.dat #49"
6638 html: "<source><frameset></frameset>"
6640 expected: "| <html>\n| <head>\n| <frameset>\n"
6642 name: "tests6.dat #50"
6643 html: "<track><frameset></frameset>"
6645 expected: "| <html>\n| <head>\n| <frameset>\n"
6647 name: "tests6.dat #51"
6648 html: "</html><frameset></frameset>"
6650 expected: "| <html>\n| <head>\n| <frameset>\n"
6652 name: "tests6.dat #52"
6653 html: "</body><frameset></frameset>"
6655 expected: "| <html>\n| <head>\n| <frameset>\n"
6657 name: "tests7.dat #1"
6658 html: "<!doctype html><body><title>X</title>"
6659 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <title>\n| \"X\"\n"
6661 name: "tests7.dat #2"
6662 html: "<!doctype html><table><title>X</title></table>"
6664 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <title>\n| \"X\"\n| <table>\n"
6666 name: "tests7.dat #3"
6667 html: "<!doctype html><head></head><title>X</title>"
6669 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"X\"\n| <body>\n"
6671 name: "tests7.dat #4"
6672 html: "<!doctype html></head><title>X</title>"
6674 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"X\"\n| <body>\n"
6676 name: "tests7.dat #5"
6677 html: "<!doctype html><table><meta></table>"
6679 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <meta>\n| <table>\n"
6681 name: "tests7.dat #6"
6682 html: "<!doctype html><table>X<tr><td><table> <meta></table></table>"
6684 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"X\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <meta>\n| <table>\n| \" \"\n"
6686 name: "tests7.dat #7"
6687 html: "<!doctype html><html> <head>"
6688 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
6690 name: "tests7.dat #8"
6691 html: "<!doctype html> <head>"
6692 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
6694 name: "tests7.dat #9"
6695 html: "<!doctype html><table><style> <tr>x </style> </table>"
6696 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <style>\n| \" <tr>x \"\n| \" \"\n"
6698 name: "tests7.dat #10"
6699 html: "<!doctype html><table><TBODY><script> <tr>x </script> </table>"
6700 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <script>\n| \" <tr>x \"\n| \" \"\n"
6702 name: "tests7.dat #11"
6703 html: "<!doctype html><p><applet><p>X</p></applet>"
6704 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <applet>\n| <p>\n| \"X\"\n"
6706 name: "tests7.dat #12"
6707 html: "<!doctype html><p><object type=\"application/x-non-existant-plugin\"><p>X</p></object>"
6708 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <object>\n| type=\"application/x-non-existant-plugin\"\n| <p>\n| \"X\"\n"
6710 name: "tests7.dat #13"
6711 html: "<!doctype html><listing>\nX</listing>"
6712 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <listing>\n| \"X\"\n"
6714 name: "tests7.dat #14"
6715 html: "<!doctype html><select><input>X"
6717 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <input>\n| \"X\"\n"
6719 name: "tests7.dat #15"
6720 html: "<!doctype html><select><select>X"
6722 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| \"X\"\n"
6724 name: "tests7.dat #16"
6725 html: "<!doctype html><table><input type=hidDEN></table>"
6727 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <input>\n| type=\"hidDEN\"\n"
6729 name: "tests7.dat #17"
6730 html: "<!doctype html><table>X<input type=hidDEN></table>"
6732 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"X\"\n| <table>\n| <input>\n| type=\"hidDEN\"\n"
6734 name: "tests7.dat #18"
6735 html: "<!doctype html><table> <input type=hidDEN></table>"
6737 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| \" \"\n| <input>\n| type=\"hidDEN\"\n"
6739 name: "tests7.dat #19"
6740 html: "<!doctype html><table> <input type='hidDEN'></table>"
6742 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| \" \"\n| <input>\n| type=\"hidDEN\"\n"
6744 name: "tests7.dat #20"
6745 html: "<!doctype html><table><input type=\" hidden\"><input type=hidDEN></table>"
6747 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <input>\n| type=\" hidden\"\n| <table>\n| <input>\n| type=\"hidDEN\"\n"
6749 name: "tests7.dat #21"
6750 html: "<!doctype html><table><select>X<tr>"
6752 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| \"X\"\n| <table>\n| <tbody>\n| <tr>\n"
6754 name: "tests7.dat #22"
6755 html: "<!doctype html><select>X</select>"
6756 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| \"X\"\n"
6758 name: "tests7.dat #23"
6759 html: "<!DOCTYPE hTmL><html></html>"
6760 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
6762 name: "tests7.dat #24"
6763 html: "<!DOCTYPE HTML><html></html>"
6764 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
6766 name: "tests7.dat #25"
6767 html: "<body>X</body></body>"
6768 errors: 1,"document-fragment":"html"
6769 expected: "| <head>\n| <body>\n| \"X\"\n"
6771 name: "tests7.dat #26"
6772 html: "<div><p>a</x> b"
6774 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <p>\n| \"a b\"\n"
6776 name: "tests7.dat #27"
6777 html: "<table><tr><td><code></code> </table>"
6779 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <code>\n| \" \"\n"
6781 name: "tests7.dat #28"
6782 html: "<table><b><tr><td>aaa</td></tr>bbb</table>ccc"
6784 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <b>\n| \"bbb\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"aaa\"\n| <b>\n| \"ccc\"\n"
6786 name: "tests7.dat #29"
6787 html: "A<table><tr> B</tr> B</table>"
6789 expected: "| <html>\n| <head>\n| <body>\n| \"A B B\"\n| <table>\n| <tbody>\n| <tr>\n"
6791 name: "tests7.dat #30"
6792 html: "A<table><tr> B</tr> </em>C</table>"
6794 expected: "| <html>\n| <head>\n| <body>\n| \"A BC\"\n| <table>\n| <tbody>\n| <tr>\n| \" \"\n"
6796 name: "tests7.dat #31"
6797 html: "<select><keygen>"
6799 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <keygen>\n"
6801 name: "tests8.dat #1"
6802 html: "<div>\n<div></div>\n</span>x"
6804 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"\n\"\n| <div>\n| \"\nx\"\n"
6806 name: "tests8.dat #2"
6807 html: "<div>x<div></div>\n</span>x"
6809 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"x\"\n| <div>\n| \"\nx\"\n"
6811 name: "tests8.dat #3"
6812 html: "<div>x<div></div>x</span>x"
6814 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"x\"\n| <div>\n| \"xx\"\n"
6816 name: "tests8.dat #4"
6817 html: "<div>x<div></div>y</span>z"
6819 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"x\"\n| <div>\n| \"yz\"\n"
6821 name: "tests8.dat #5"
6822 html: "<table><div>x<div></div>x</span>x"
6824 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"x\"\n| <div>\n| \"xx\"\n| <table>\n"
6826 name: "tests8.dat #6"
6829 expected: "| <html>\n| <head>\n| <body>\n| \"xx\"\n| <table>\n"
6831 name: "tests8.dat #7"
6832 html: "x<table><table>x"
6834 expected: "| <html>\n| <head>\n| <body>\n| \"x\"\n| <table>\n| \"x\"\n| <table>\n"
6836 name: "tests8.dat #8"
6837 html: "<b>a<div></div><div></b>y"
6839 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| \"a\"\n| <div>\n| <div>\n| <b>\n| \"y\"\n"
6841 name: "tests8.dat #9"
6842 html: "<a><div><p></a>"
6844 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <div>\n| <a>\n| <p>\n| <a>\n"
6846 name: "tests9.dat #1"
6847 html: "<!DOCTYPE html><math></math>"
6848 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n"
6850 name: "tests9.dat #2"
6851 html: "<!DOCTYPE html><body><math></math>"
6852 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n"
6854 name: "tests9.dat #3"
6855 html: "<!DOCTYPE html><math><mi>"
6857 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n"
6859 name: "tests9.dat #4"
6860 html: "<!DOCTYPE html><math><annotation-xml><svg><u>"
6862 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| <svg svg>\n| <u>\n"
6864 name: "tests9.dat #5"
6865 html: "<!DOCTYPE html><body><select><math></math></select>"
6867 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
6869 name: "tests9.dat #6"
6870 html: "<!DOCTYPE html><body><select><option><math></math></option></select>"
6872 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n"
6874 name: "tests9.dat #7"
6875 html: "<!DOCTYPE html><body><table><math></math></table>"
6877 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <table>\n"
6879 name: "tests9.dat #8"
6880 html: "<!DOCTYPE html><body><table><math><mi>foo</mi></math></table>"
6882 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| \"foo\"\n| <table>\n"
6884 name: "tests9.dat #9"
6885 html: "<!DOCTYPE html><body><table><math><mi>foo</mi><mi>bar</mi></math></table>"
6887 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| \"foo\"\n| <math mi>\n| \"bar\"\n| <table>\n"
6889 name: "tests9.dat #10"
6890 html: "<!DOCTYPE html><body><table><tbody><math><mi>foo</mi><mi>bar</mi></math></tbody></table>"
6892 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| \"foo\"\n| <math mi>\n| \"bar\"\n| <table>\n| <tbody>\n"
6894 name: "tests9.dat #11"
6895 html: "<!DOCTYPE html><body><table><tbody><tr><math><mi>foo</mi><mi>bar</mi></math></tr></tbody></table>"
6897 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| \"foo\"\n| <math mi>\n| \"bar\"\n| <table>\n| <tbody>\n| <tr>\n"
6899 name: "tests9.dat #12"
6900 html: "<!DOCTYPE html><body><table><tbody><tr><td><math><mi>foo</mi><mi>bar</mi></math></td></tr></tbody></table>"
6901 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <math math>\n| <math mi>\n| \"foo\"\n| <math mi>\n| \"bar\"\n"
6903 name: "tests9.dat #13"
6904 html: "<!DOCTYPE html><body><table><tbody><tr><td><math><mi>foo</mi><mi>bar</mi></math><p>baz</td></tr></tbody></table>"
6905 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <math math>\n| <math mi>\n| \"foo\"\n| <math mi>\n| \"bar\"\n| <p>\n| \"baz\"\n"
6907 name: "tests9.dat #14"
6908 html: "<!DOCTYPE html><body><table><caption><math><mi>foo</mi><mi>bar</mi></math><p>baz</caption></table>"
6909 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <math math>\n| <math mi>\n| \"foo\"\n| <math mi>\n| \"bar\"\n| <p>\n| \"baz\"\n"
6911 name: "tests9.dat #15"
6912 html: "<!DOCTYPE html><body><table><caption><math><mi>foo</mi><mi>bar</mi><p>baz</table><p>quux"
6914 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <math math>\n| <math mi>\n| \"foo\"\n| <math mi>\n| \"bar\"\n| <p>\n| \"baz\"\n| <p>\n| \"quux\"\n"
6916 name: "tests9.dat #16"
6917 html: "<!DOCTYPE html><body><table><caption><math><mi>foo</mi><mi>bar</mi>baz</table><p>quux"
6919 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <math math>\n| <math mi>\n| \"foo\"\n| <math mi>\n| \"bar\"\n| \"baz\"\n| <p>\n| \"quux\"\n"
6921 name: "tests9.dat #17"
6922 html: "<!DOCTYPE html><body><table><colgroup><math><mi>foo</mi><mi>bar</mi><p>baz</table><p>quux"
6924 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| \"foo\"\n| <math mi>\n| \"bar\"\n| <p>\n| \"baz\"\n| <table>\n| <colgroup>\n| <p>\n| \"quux\"\n"
6926 name: "tests9.dat #18"
6927 html: "<!DOCTYPE html><body><table><tr><td><select><math><mi>foo</mi><mi>bar</mi><p>baz</table><p>quux"
6929 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <select>\n| \"foobarbaz\"\n| <p>\n| \"quux\"\n"
6931 name: "tests9.dat #19"
6932 html: "<!DOCTYPE html><body><table><select><math><mi>foo</mi><mi>bar</mi><p>baz</table><p>quux"
6934 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| \"foobarbaz\"\n| <table>\n| <p>\n| \"quux\"\n"
6936 name: "tests9.dat #20"
6937 html: "<!DOCTYPE html><body></body></html><math><mi>foo</mi><mi>bar</mi><p>baz"
6939 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| \"foo\"\n| <math mi>\n| \"bar\"\n| <p>\n| \"baz\"\n"
6941 name: "tests9.dat #21"
6942 html: "<!DOCTYPE html><body></body><math><mi>foo</mi><mi>bar</mi><p>baz"
6944 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| \"foo\"\n| <math mi>\n| \"bar\"\n| <p>\n| \"baz\"\n"
6946 name: "tests9.dat #22"
6947 html: "<!DOCTYPE html><frameset><math><mi></mi><mi></mi><p><span>"
6949 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
6951 name: "tests9.dat #23"
6952 html: "<!DOCTYPE html><frameset></frameset><math><mi></mi><mi></mi><p><span>"
6954 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
6956 name: "tests9.dat #24"
6957 html: "<!DOCTYPE html><body xlink:href=foo><math xlink:href=foo></math>"
6958 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| xlink:href=\"foo\"\n| <math math>\n| xlink href=\"foo\"\n"
6960 name: "tests9.dat #25"
6961 html: "<!DOCTYPE html><body xlink:href=foo xml:lang=en><math><mi xml:lang=en xlink:href=foo></mi></math>"
6962 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| xlink:href=\"foo\"\n| xml:lang=\"en\"\n| <math math>\n| <math mi>\n| xlink href=\"foo\"\n| xml lang=\"en\"\n"
6964 name: "tests9.dat #26"
6965 html: "<!DOCTYPE html><body xlink:href=foo xml:lang=en><math><mi xml:lang=en xlink:href=foo /></math>"
6966 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| xlink:href=\"foo\"\n| xml:lang=\"en\"\n| <math math>\n| <math mi>\n| xlink href=\"foo\"\n| xml lang=\"en\"\n"
6968 name: "tests9.dat #27"
6969 html: "<!DOCTYPE html><body xlink:href=foo xml:lang=en><math><mi xml:lang=en xlink:href=foo />bar</math>"
6970 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| xlink:href=\"foo\"\n| xml:lang=\"en\"\n| <math math>\n| <math mi>\n| xlink href=\"foo\"\n| xml lang=\"en\"\n| \"bar\"\n"
6972 name: "tests_innerHTML_1.dat #1"
6973 html: "<body><span>"
6974 errors: 2,"document-fragment":"body"
6975 expected: "| <span>\n"
6977 name: "tests_innerHTML_1.dat #2"
6978 html: "<span><body>"
6979 errors: 2,"document-fragment":"body"
6980 expected: "| <span>\n"
6982 name: "tests_innerHTML_1.dat #3"
6983 html: "<span><body>"
6984 errors: 2,"document-fragment":"div"
6985 expected: "| <span>\n"
6987 name: "tests_innerHTML_1.dat #4"
6988 html: "<body><span>"
6989 errors: 1,"document-fragment":"html"
6990 expected: "| <head>\n| <body>\n| <span>\n"
6992 name: "tests_innerHTML_1.dat #5"
6993 html: "<frameset><span>"
6994 errors: 2,"document-fragment":"body"
6995 expected: "| <span>\n"
6997 name: "tests_innerHTML_1.dat #6"
6998 html: "<span><frameset>"
6999 errors: 2,"document-fragment":"body"
7000 expected: "| <span>\n"
7002 name: "tests_innerHTML_1.dat #7"
7003 html: "<span><frameset>"
7004 errors: 2,"document-fragment":"div"
7005 expected: "| <span>\n"
7007 name: "tests_innerHTML_1.dat #8"
7008 html: "<frameset><span>"
7009 errors: 2,"document-fragment":"html"
7010 expected: "| <head>\n| <frameset>\n"
7012 name: "tests_innerHTML_1.dat #9"
7014 errors: 1,"document-fragment":"table"
7015 expected: "| <tbody>\n| <tr>\n"
7017 name: "tests_innerHTML_1.dat #10"
7018 html: "</table><tr>"
7019 errors: 1,"document-fragment":"table"
7020 expected: "| <tbody>\n| <tr>\n"
7022 name: "tests_innerHTML_1.dat #11"
7024 errors: 2,"document-fragment":"table"
7027 name: "tests_innerHTML_1.dat #12"
7029 errors: 2,"document-fragment":"table"
7032 name: "tests_innerHTML_1.dat #13"
7033 html: "<a><caption>a"
7034 errors: 2,"document-fragment":"table"
7035 expected: "| <a>\n| <caption>\n| \"a\"\n"
7037 name: "tests_innerHTML_1.dat #14"
7038 html: "<a><colgroup><col>"
7039 errors: 2,"document-fragment":"table"
7040 expected: "| <a>\n| <colgroup>\n| <col>\n"
7042 name: "tests_innerHTML_1.dat #15"
7043 html: "<a><tbody><tr>"
7044 errors: 1,"document-fragment":"table"
7045 expected: "| <a>\n| <tbody>\n| <tr>\n"
7047 name: "tests_innerHTML_1.dat #16"
7048 html: "<a><tfoot><tr>"
7049 errors: 1,"document-fragment":"table"
7050 expected: "| <a>\n| <tfoot>\n| <tr>\n"
7052 name: "tests_innerHTML_1.dat #17"
7053 html: "<a><thead><tr>"
7054 errors: 1,"document-fragment":"table"
7055 expected: "| <a>\n| <thead>\n| <tr>\n"
7057 name: "tests_innerHTML_1.dat #18"
7059 errors: 1,"document-fragment":"table"
7060 expected: "| <a>\n| <tbody>\n| <tr>\n"
7062 name: "tests_innerHTML_1.dat #19"
7064 errors: 2,"document-fragment":"table"
7065 expected: "| <a>\n| <tbody>\n| <tr>\n| <th>\n"
7067 name: "tests_innerHTML_1.dat #20"
7069 errors: 2,"document-fragment":"table"
7070 expected: "| <a>\n| <tbody>\n| <tr>\n| <td>\n"
7072 name: "tests_innerHTML_1.dat #21"
7073 html: "<table></table><tbody>"
7074 errors: 1,"document-fragment":"caption"
7075 expected: "| <table>\n"
7077 name: "tests_innerHTML_1.dat #22"
7078 html: "</table><span>"
7079 errors: 2,"document-fragment":"caption"
7080 expected: "| <span>\n"
7082 name: "tests_innerHTML_1.dat #23"
7083 html: "<span></table>"
7084 errors: 2,"document-fragment":"caption"
7085 expected: "| <span>\n"
7087 name: "tests_innerHTML_1.dat #24"
7088 html: "</caption><span>"
7089 errors: 2,"document-fragment":"caption"
7090 expected: "| <span>\n"
7092 name: "tests_innerHTML_1.dat #25"
7093 html: "<span></caption><span>"
7094 errors: 2,"document-fragment":"caption"
7095 expected: "| <span>\n| <span>\n"
7097 name: "tests_innerHTML_1.dat #26"
7098 html: "<span><caption><span>"
7099 errors: 2,"document-fragment":"caption"
7100 expected: "| <span>\n| <span>\n"
7102 name: "tests_innerHTML_1.dat #27"
7103 html: "<span><col><span>"
7104 errors: 2,"document-fragment":"caption"
7105 expected: "| <span>\n| <span>\n"
7107 name: "tests_innerHTML_1.dat #28"
7108 html: "<span><colgroup><span>"
7109 errors: 2,"document-fragment":"caption"
7110 expected: "| <span>\n| <span>\n"
7112 name: "tests_innerHTML_1.dat #29"
7113 html: "<span><html><span>"
7114 errors: 2,"document-fragment":"caption"
7115 expected: "| <span>\n| <span>\n"
7117 name: "tests_innerHTML_1.dat #30"
7118 html: "<span><tbody><span>"
7119 errors: 2,"document-fragment":"caption"
7120 expected: "| <span>\n| <span>\n"
7122 name: "tests_innerHTML_1.dat #31"
7123 html: "<span><td><span>"
7124 errors: 2,"document-fragment":"caption"
7125 expected: "| <span>\n| <span>\n"
7127 name: "tests_innerHTML_1.dat #32"
7128 html: "<span><tfoot><span>"
7129 errors: 2,"document-fragment":"caption"
7130 expected: "| <span>\n| <span>\n"
7132 name: "tests_innerHTML_1.dat #33"
7133 html: "<span><thead><span>"
7134 errors: 2,"document-fragment":"caption"
7135 expected: "| <span>\n| <span>\n"
7137 name: "tests_innerHTML_1.dat #34"
7138 html: "<span><th><span>"
7139 errors: 2,"document-fragment":"caption"
7140 expected: "| <span>\n| <span>\n"
7142 name: "tests_innerHTML_1.dat #35"
7143 html: "<span><tr><span>"
7144 errors: 2,"document-fragment":"caption"
7145 expected: "| <span>\n| <span>\n"
7147 name: "tests_innerHTML_1.dat #36"
7148 html: "<span></table><span>"
7149 errors: 2,"document-fragment":"caption"
7150 expected: "| <span>\n| <span>\n"
7152 name: "tests_innerHTML_1.dat #37"
7153 html: "</colgroup><col>"
7154 errors: 1,"document-fragment":"colgroup"
7155 expected: "| <col>\n"
7157 name: "tests_innerHTML_1.dat #38"
7159 errors: 1,"document-fragment":"colgroup"
7160 expected: "| <col>\n"
7162 name: "tests_innerHTML_1.dat #39"
7163 html: "<caption><a>"
7164 errors: 3,"document-fragment":"tbody"
7167 name: "tests_innerHTML_1.dat #40"
7169 errors: 3,"document-fragment":"tbody"
7172 name: "tests_innerHTML_1.dat #41"
7173 html: "<colgroup><a>"
7174 errors: 3,"document-fragment":"tbody"
7177 name: "tests_innerHTML_1.dat #42"
7179 errors: 3,"document-fragment":"tbody"
7182 name: "tests_innerHTML_1.dat #43"
7184 errors: 3,"document-fragment":"tbody"
7187 name: "tests_innerHTML_1.dat #44"
7189 errors: 3,"document-fragment":"tbody"
7192 name: "tests_innerHTML_1.dat #45"
7194 errors: 3,"document-fragment":"tbody"
7197 name: "tests_innerHTML_1.dat #46"
7199 errors: 1,"document-fragment":"tbody"
7200 expected: "| <a>\n| <tr>\n"
7202 name: "tests_innerHTML_1.dat #47"
7204 errors: 2,"document-fragment":"tbody"
7205 expected: "| <a>\n| <tr>\n| <td>\n"
7207 name: "tests_innerHTML_1.dat #48"
7209 errors: 2,"document-fragment":"tbody"
7210 expected: "| <a>\n| <tr>\n| <td>\n"
7212 name: "tests_innerHTML_1.dat #49"
7214 errors: 2,"document-fragment":"tbody"
7215 expected: "| <a>\n| <tr>\n| <td>\n"
7217 name: "tests_innerHTML_1.dat #50"
7218 html: "<td><table><tbody><a><tr>"
7219 errors: 3,"document-fragment":"tbody"
7220 expected: "| <tr>\n| <td>\n| <a>\n| <table>\n| <tbody>\n| <tr>\n"
7222 name: "tests_innerHTML_1.dat #51"
7224 errors: 1,"document-fragment":"tr"
7225 expected: "| <td>\n"
7227 name: "tests_innerHTML_1.dat #52"
7228 html: "<td><table><a><tr></tr><tr>"
7229 errors: 2,"document-fragment":"tr"
7230 expected: "| <td>\n| <a>\n| <table>\n| <tbody>\n| <tr>\n| <tr>\n"
7232 name: "tests_innerHTML_1.dat #53"
7233 html: "<caption><td>"
7234 errors: 1,"document-fragment":"tr"
7235 expected: "| <td>\n"
7237 name: "tests_innerHTML_1.dat #54"
7239 errors: 1,"document-fragment":"tr"
7240 expected: "| <td>\n"
7242 name: "tests_innerHTML_1.dat #55"
7243 html: "<colgroup><td>"
7244 errors: 1,"document-fragment":"tr"
7245 expected: "| <td>\n"
7247 name: "tests_innerHTML_1.dat #56"
7249 errors: 1,"document-fragment":"tr"
7250 expected: "| <td>\n"
7252 name: "tests_innerHTML_1.dat #57"
7254 errors: 1,"document-fragment":"tr"
7255 expected: "| <td>\n"
7257 name: "tests_innerHTML_1.dat #58"
7259 errors: 1,"document-fragment":"tr"
7260 expected: "| <td>\n"
7262 name: "tests_innerHTML_1.dat #59"
7264 errors: 1,"document-fragment":"tr"
7265 expected: "| <td>\n"
7267 name: "tests_innerHTML_1.dat #60"
7268 html: "</table><td>"
7269 errors: 1,"document-fragment":"tr"
7270 expected: "| <td>\n"
7272 name: "tests_innerHTML_1.dat #61"
7273 html: "<td><table></table><td>"
7275 expected: "| <td>\n| <table>\n| <td>\n"
7277 name: "tests_innerHTML_1.dat #62"
7278 html: "<td><table></table><td>"
7280 expected: "| <td>\n| <table>\n| <td>\n"
7282 name: "tests_innerHTML_1.dat #63"
7283 html: "<caption><a>"
7284 errors: 2,"document-fragment":"td"
7287 name: "tests_innerHTML_1.dat #64"
7289 errors: 2,"document-fragment":"td"
7292 name: "tests_innerHTML_1.dat #65"
7293 html: "<colgroup><a>"
7294 errors: 2,"document-fragment":"td"
7297 name: "tests_innerHTML_1.dat #66"
7299 errors: 2,"document-fragment":"td"
7302 name: "tests_innerHTML_1.dat #67"
7304 errors: 2,"document-fragment":"td"
7307 name: "tests_innerHTML_1.dat #68"
7309 errors: 2,"document-fragment":"td"
7312 name: "tests_innerHTML_1.dat #69"
7314 errors: 2,"document-fragment":"td"
7317 name: "tests_innerHTML_1.dat #70"
7319 errors: 2,"document-fragment":"td"
7322 name: "tests_innerHTML_1.dat #71"
7324 errors: 2,"document-fragment":"td"
7327 name: "tests_innerHTML_1.dat #72"
7329 errors: 2,"document-fragment":"td"
7332 name: "tests_innerHTML_1.dat #73"
7334 errors: 2,"document-fragment":"td"
7337 name: "tests_innerHTML_1.dat #74"
7339 errors: 2,"document-fragment":"td"
7342 name: "tests_innerHTML_1.dat #75"
7344 errors: 2,"document-fragment":"td"
7347 name: "tests_innerHTML_1.dat #76"
7349 errors: 2,"document-fragment":"td"
7352 name: "tests_innerHTML_1.dat #77"
7354 errors: 2,"document-fragment":"td"
7357 name: "tests_innerHTML_1.dat #78"
7358 html: "<table><td><td>"
7359 errors: 2,"document-fragment":"td"
7360 expected: "| <table>\n| <tbody>\n| <tr>\n| <td>\n| <td>\n"
7362 name: "tests_innerHTML_1.dat #79"
7363 html: "</select><option>"
7364 errors: 2,"document-fragment":"select"
7365 expected: "| <option>\n"
7367 name: "tests_innerHTML_1.dat #80"
7368 html: "<input><option>"
7369 errors: 2,"document-fragment":"select"
7370 expected: "| <option>\n"
7372 name: "tests_innerHTML_1.dat #81"
7373 html: "<keygen><option>"
7374 errors: 2,"document-fragment":"select"
7375 expected: "| <option>\n"
7377 name: "tests_innerHTML_1.dat #82"
7378 html: "<textarea><option>"
7379 errors: 2,"document-fragment":"select"
7380 expected: "| <option>\n"
7382 name: "tests_innerHTML_1.dat #83"
7383 html: "</html><!--abc-->"
7384 errors: 1,"document-fragment":"html"
7385 expected: "| <head>\n| <body>\n| <!-- abc -->\n"
7387 name: "tests_innerHTML_1.dat #84"
7388 html: "</frameset><frame>"
7389 errors: 1,"document-fragment":"frameset"
7390 expected: "| <frame>\n"
7392 name: "tests_innerHTML_1.dat #85"
7395 expected: "| <head>\n| <body>\n"
7397 name: "tricky01.dat #1"
7398 html: "<b><p>Bold </b> Not bold</p>\nAlso not bold."
7400 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <p>\n| <b>\n| \"Bold \"\n| \" Not bold\"\n| \"\nAlso not bold.\"\n"
7402 name: "tricky01.dat #2"
7403 html: "<html>\n<font color=red><i>Italic and Red<p>Italic and Red </font> Just italic.</p> Italic only.</i> Plain\n<p>I should not be red. <font color=red>Red. <i>Italic and red.</p>\n<p>Italic and red. </i> Red.</font> I should not be red.</p>\n<b>Bold <i>Bold and italic</b> Only Italic </i> Plain"
7405 expected: "| <html>\n| <head>\n| <body>\n| <font>\n| color=\"red\"\n| <i>\n| \"Italic and Red\"\n| <i>\n| <p>\n| <font>\n| color=\"red\"\n| \"Italic and Red \"\n| \" Just italic.\"\n| \" Italic only.\"\n| \" Plain\n\"\n| <p>\n| \"I should not be red. \"\n| <font>\n| color=\"red\"\n| \"Red. \"\n| <i>\n| \"Italic and red.\"\n| <font>\n| color=\"red\"\n| <i>\n| \"\n\"\n| <p>\n| <font>\n| color=\"red\"\n| <i>\n| \"Italic and red. \"\n| \" Red.\"\n| \" I should not be red.\"\n| \"\n\"\n| <b>\n| \"Bold \"\n| <i>\n| \"Bold and italic\"\n| <i>\n| \" Only Italic \"\n| \" Plain\"\n"
7407 name: "tricky01.dat #3"
7408 html: "<html><body>\n<p><font size=\"7\">First paragraph.</p>\n<p>Second paragraph.</p></font>\n<b><p><i>Bold and Italic</b> Italic</p>"
7410 expected: "| <html>\n| <head>\n| <body>\n| \"\n\"\n| <p>\n| <font>\n| size=\"7\"\n| \"First paragraph.\"\n| <font>\n| size=\"7\"\n| \"\n\"\n| <p>\n| \"Second paragraph.\"\n| \"\n\"\n| <b>\n| <p>\n| <b>\n| <i>\n| \"Bold and Italic\"\n| <i>\n| \" Italic\"\n"
7412 name: "tricky01.dat #4"
7413 html: "<html>\n<dl>\n<dt><b>Boo\n<dd>Goo?\n</dl>\n</html>"
7415 expected: "| <html>\n| <head>\n| <body>\n| <dl>\n| \"\n\"\n| <dt>\n| <b>\n| \"Boo\n\"\n| <dd>\n| <b>\n| \"Goo?\n\"\n| <b>\n| \"\n\"\n"
7417 name: "tricky01.dat #5"
7418 html: "<html><body>\n<label><a><div>Hello<div>World</div></a></label> \n</body></html>"
7420 expected: "| <html>\n| <head>\n| <body>\n| \"\n\"\n| <label>\n| <a>\n| <div>\n| <a>\n| \"Hello\"\n| <div>\n| \"World\"\n| \" \n\"\n"
7422 name: "tricky01.dat #6"
7423 html: "<table><center> <font>a</center> <img> <tr><td> </td> </tr> </table>"
7425 expected: "| <html>\n| <head>\n| <body>\n| <center>\n| \" \"\n| <font>\n| \"a\"\n| <font>\n| <img>\n| \" \"\n| <table>\n| \" \"\n| <tbody>\n| <tr>\n| <td>\n| \" \"\n| \" \"\n| \" \"\n"
7427 name: "tricky01.dat #7"
7428 html: "<table><tr><p><a><p>You should see this text."
7430 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <a>\n| <p>\n| <a>\n| \"You should see this text.\"\n| <table>\n| <tbody>\n| <tr>\n"
7432 name: "tricky01.dat #8"
7433 html: "<TABLE>\n<TR>\n<CENTER><CENTER><TD></TD></TR><TR>\n<FONT>\n<TABLE><tr></tr></TABLE>\n</P>\n<a></font><font></a>\nThis page contains an insanely badly-nested tag sequence."
7435 expected: "| <html>\n| <head>\n| <body>\n| <center>\n| <center>\n| <font>\n| \"\n\"\n| <table>\n| \"\n\"\n| <tbody>\n| <tr>\n| \"\n\"\n| <td>\n| <tr>\n| \"\n\"\n| <table>\n| <tbody>\n| <tr>\n| <font>\n| \"\n\"\n| <p>\n| \"\n\"\n| <a>\n| <a>\n| <font>\n| <font>\n| \"\nThis page contains an insanely badly-nested tag sequence.\"\n"
7437 name: "tricky01.dat #9"
7438 html: "<html>\n<body>\n<b><nobr><div>This text is in a div inside a nobr</nobr>More text that should not be in the nobr, i.e., the\nnobr should have closed the div inside it implicitly. </b><pre>A pre tag outside everything else.</pre>\n</body>\n</html>"
7440 expected: "| <html>\n| <head>\n| <body>\n| \"\n\"\n| <b>\n| <nobr>\n| <div>\n| <b>\n| <nobr>\n| \"This text is in a div inside a nobr\"\n| \"More text that should not be in the nobr, i.e., the\nnobr should have closed the div inside it implicitly. \"\n| <pre>\n| \"A pre tag outside everything else.\"\n| \"\n\n\"\n"
7442 name: "webkit01.dat #1"
7445 expected: "| <html>\n| <head>\n| <body>\n| \"Test\"\n"
7447 name: "webkit01.dat #2"
7450 expected: "| <html>\n| <head>\n| <body>\n| <div>\n"
7452 name: "webkit01.dat #3"
7453 html: "<div>Test</div>"
7455 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"Test\"\n"
7457 name: "webkit01.dat #4"
7460 expected: "| <html>\n| <head>\n| <body>\n"
7462 name: "webkit01.dat #5"
7463 html: "<div>Hello</div>\n<script>\nconsole.log(\"PASS\");\n</script>\n<div>Bye</div>"
7465 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"Hello\"\n| \"\n\"\n| <script>\n| \"\nconsole.log(\"PASS\");\n\"\n| \"\n\"\n| <div>\n| \"Bye\"\n"
7467 name: "webkit01.dat #6"
7468 html: "<div foo=\"bar\">Hello</div>"
7470 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| foo=\"bar\"\n| \"Hello\"\n"
7472 name: "webkit01.dat #7"
7473 html: "<div>Hello</div>\n<script>\nconsole.log(\"FOO<span>BAR</span>BAZ\");\n</script>\n<div>Bye</div>"
7475 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"Hello\"\n| \"\n\"\n| <script>\n| \"\nconsole.log(\"FOO<span>BAR</span>BAZ\");\n\"\n| \"\n\"\n| <div>\n| \"Bye\"\n"
7477 name: "webkit01.dat #8"
7478 html: "<foo bar=\"baz\"></foo><potato quack=\"duck\"></potato>"
7480 expected: "| <html>\n| <head>\n| <body>\n| <foo>\n| bar=\"baz\"\n| <potato>\n| quack=\"duck\"\n"
7482 name: "webkit01.dat #9"
7483 html: "<foo bar=\"baz\"><potato quack=\"duck\"></potato></foo>"
7485 expected: "| <html>\n| <head>\n| <body>\n| <foo>\n| bar=\"baz\"\n| <potato>\n| quack=\"duck\"\n"
7487 name: "webkit01.dat #10"
7488 html: "<foo></foo bar=\"baz\"><potato></potato quack=\"duck\">"
7490 expected: "| <html>\n| <head>\n| <body>\n| <foo>\n| <potato>\n"
7492 name: "webkit01.dat #11"
7495 expected: "| <!-- tttt -->\n| <html>\n| <head>\n| <body>\n"
7497 name: "webkit01.dat #12"
7498 html: "<div FOO ><img><img></div>"
7500 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| foo=\"\"\n| <img>\n| <img>\n"
7502 name: "webkit01.dat #13"
7503 html: "<p>Test</p<p>Test2</p>"
7505 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| \"TestTest2\"\n"
7507 name: "webkit01.dat #14"
7508 html: "<rdar://problem/6869687>"
7510 expected: "| <html>\n| <head>\n| <body>\n| <rdar:>\n| 6869687=\"\"\n| problem=\"\"\n"
7512 name: "webkit01.dat #15"
7513 html: "<A>test< /A>"
7515 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| \"test< /A>\"\n"
7517 name: "webkit01.dat #16"
7520 expected: "| <html>\n| <head>\n| <body>\n| \"<\"\n"
7522 name: "webkit01.dat #17"
7523 html: "<body foo='bar'><body foo='baz' yo='mama'>"
7525 expected: "| <html>\n| <head>\n| <body>\n| foo=\"bar\"\n| yo=\"mama\"\n"
7527 name: "webkit01.dat #18"
7528 html: "<body></br foo=\"bar\"></body>"
7530 expected: "| <html>\n| <head>\n| <body>\n| <br>\n"
7532 name: "webkit01.dat #19"
7533 html: "<bdy><br foo=\"bar\"></body>"
7535 expected: "| <html>\n| <head>\n| <body>\n| <bdy>\n| <br>\n| foo=\"bar\"\n"
7537 name: "webkit01.dat #20"
7538 html: "<body></body></br foo=\"bar\">"
7540 expected: "| <html>\n| <head>\n| <body>\n| <br>\n"
7542 name: "webkit01.dat #21"
7543 html: "<bdy></body><br foo=\"bar\">"
7545 expected: "| <html>\n| <head>\n| <body>\n| <bdy>\n| <br>\n| foo=\"bar\"\n"
7547 name: "webkit01.dat #22"
7548 html: "<html><body></body></html><!-- Hi there -->"
7550 expected: "| <html>\n| <head>\n| <body>\n| <!-- Hi there -->\n"
7552 name: "webkit01.dat #23"
7553 html: "<html><body></body></html>x<!-- Hi there -->"
7555 expected: "| <html>\n| <head>\n| <body>\n| \"x\"\n| <!-- Hi there -->\n"
7557 name: "webkit01.dat #24"
7558 html: "<html><body></body></html>x<!-- Hi there --></html><!-- Again -->"
7560 expected: "| <html>\n| <head>\n| <body>\n| \"x\"\n| <!-- Hi there -->\n| <!-- Again -->\n"
7562 name: "webkit01.dat #25"
7563 html: "<html><body></body></html>x<!-- Hi there --></body></html><!-- Again -->"
7565 expected: "| <html>\n| <head>\n| <body>\n| \"x\"\n| <!-- Hi there -->\n| <!-- Again -->\n"
7567 name: "webkit01.dat #26"
7568 html: "<html><body><ruby><div><rp>xx</rp></div></ruby></body></html>"
7570 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| <div>\n| <rp>\n| \"xx\"\n"
7572 name: "webkit01.dat #27"
7573 html: "<html><body><ruby><div><rt>xx</rt></div></ruby></body></html>"
7575 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| <div>\n| <rt>\n| \"xx\"\n"
7577 name: "webkit01.dat #28"
7578 html: "<html><frameset><!--1--><noframes>A</noframes><!--2--></frameset><!--3--><noframes>B</noframes><!--4--></html><!--5--><noframes>C</noframes><!--6-->"
7580 expected: "| <html>\n| <head>\n| <frameset>\n| <!-- 1 -->\n| <noframes>\n| \"A\"\n| <!-- 2 -->\n| <!-- 3 -->\n| <noframes>\n| \"B\"\n| <!-- 4 -->\n| <noframes>\n| \"C\"\n| <!-- 5 -->\n| <!-- 6 -->\n"
7582 name: "webkit01.dat #29"
7583 html: "<select><option>A<select><option>B<select><option>C<select><option>D<select><option>E<select><option>F<select><option>G<select>"
7585 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| \"A\"\n| <option>\n| \"B\"\n| <select>\n| <option>\n| \"C\"\n| <option>\n| \"D\"\n| <select>\n| <option>\n| \"E\"\n| <option>\n| \"F\"\n| <select>\n| <option>\n| \"G\"\n"
7587 name: "webkit01.dat #30"
7588 html: "<dd><dd><dt><dt><dd><li><li>"
7590 expected: "| <html>\n| <head>\n| <body>\n| <dd>\n| <dd>\n| <dt>\n| <dt>\n| <dd>\n| <li>\n| <li>\n"
7592 name: "webkit01.dat #31"
7593 html: "<div><b></div><div><nobr>a<nobr>"
7595 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <b>\n| <div>\n| <b>\n| <nobr>\n| \"a\"\n| <nobr>\n"
7597 name: "webkit01.dat #32"
7598 html: "<head></head>\n<body></body>"
7600 expected: "| <html>\n| <head>\n| \"\n\"\n| <body>\n"
7602 name: "webkit01.dat #33"
7603 html: "<head></head> <style></style>ddd"
7605 expected: "| <html>\n| <head>\n| <style>\n| \" \"\n| <body>\n| \"ddd\"\n"
7607 name: "webkit01.dat #34"
7608 html: "<kbd><table></kbd><col><select><tr>"
7610 expected: "| <html>\n| <head>\n| <body>\n| <kbd>\n| <select>\n| <table>\n| <colgroup>\n| <col>\n| <tbody>\n| <tr>\n"
7612 name: "webkit01.dat #35"
7613 html: "<kbd><table></kbd><col><select><tr></table><div>"
7615 expected: "| <html>\n| <head>\n| <body>\n| <kbd>\n| <select>\n| <table>\n| <colgroup>\n| <col>\n| <tbody>\n| <tr>\n| <div>\n"
7617 name: "webkit01.dat #36"
7618 html: "<a><li><style></style><title></title></a>"
7620 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <li>\n| <a>\n| <style>\n| <title>\n"
7622 name: "webkit01.dat #37"
7623 html: "<font></p><p><meta><title></title></font>"
7625 expected: "| <html>\n| <head>\n| <body>\n| <font>\n| <p>\n| <p>\n| <font>\n| <meta>\n| <title>\n"
7627 name: "webkit01.dat #38"
7628 html: "<a><center><title></title><a>"
7630 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <center>\n| <a>\n| <title>\n| <a>\n"
7632 name: "webkit01.dat #39"
7633 html: "<svg><title><div>"
7635 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg title>\n| <div>\n"
7637 name: "webkit01.dat #40"
7638 html: "<svg><title><rect><div>"
7640 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg title>\n| <rect>\n| <div>\n"
7642 name: "webkit01.dat #41"
7643 html: "<svg><title><svg><div>"
7645 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg title>\n| <svg svg>\n| <div>\n"
7647 name: "webkit01.dat #42"
7648 html: "<img <=\"\" FAIL>"
7650 expected: "| <html>\n| <head>\n| <body>\n| <img>\n| <=\"\"\n| fail=\"\"\n"
7652 name: "webkit01.dat #43"
7653 html: "<ul><li><div id='foo'/>A</li><li>B<div>C</div></li></ul>"
7655 expected: "| <html>\n| <head>\n| <body>\n| <ul>\n| <li>\n| <div>\n| id=\"foo\"\n| \"A\"\n| <li>\n| \"B\"\n| <div>\n| \"C\"\n"
7657 name: "webkit01.dat #44"
7658 html: "<svg><em><desc></em>"
7660 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <em>\n| <desc>\n"
7662 name: "webkit01.dat #45"
7663 html: "<table><tr><td><svg><desc><td></desc><circle>"
7664 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <svg svg>\n| <svg desc>\n| <td>\n| <circle>\n"
7666 name: "webkit01.dat #46"
7667 html: "<svg><tfoot></mi><td>"
7669 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg tfoot>\n| <svg td>\n"
7671 name: "webkit01.dat #47"
7672 html: "<math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math>"
7674 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math mrow>\n| <math mrow>\n| <math mn>\n| \"1\"\n| <math mi>\n| \"a\"\n"
7676 name: "webkit01.dat #48"
7677 html: "<!doctype html><input type=\"hidden\"><frameset>"
7679 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
7681 name: "webkit01.dat #49"
7682 html: "<!doctype html><input type=\"button\"><frameset>"
7684 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <input>\n| type=\"button\"\n"
7686 name: "webkit02.dat #1"
7687 html: "<foo bar=qux/>"
7689 expected: "| <html>\n| <head>\n| <body>\n| <foo>\n| bar=\"qux/\"\n"
7691 name: "webkit02.dat #2"
7692 html: "<p id=\"status\"><noscript><strong>A</strong></noscript><span>B</span></p>"
7694 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| id=\"status\"\n| <noscript>\n| \"<strong>A</strong>\"\n| <span>\n| \"B\"\n"
7696 name: "webkit02.dat #3"
7697 html: "<p id=\"status\"><noscript><strong>A</strong></noscript><span>B</span></p>"
7699 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| id=\"status\"\n| <noscript>\n| <strong>\n| \"A\"\n| <span>\n| \"B\"\n"
7701 name: "webkit02.dat #4"
7702 html: "<div><sarcasm><div></div></sarcasm></div>"
7704 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <sarcasm>\n| <div>\n"
7706 name: "webkit02.dat #5"
7707 html: "<html><body><img src=\"\" border=\"0\" alt=\"><div>A</div></body></html>"
7709 expected: "| <html>\n| <head>\n| <body>\n"
7711 name: "webkit02.dat #6"
7712 html: "<table><td></tbody>A"
7714 expected: "| <html>\n| <head>\n| <body>\n| \"A\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
7716 name: "webkit02.dat #7"
7717 html: "<table><td></thead>A"
7719 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"A\"\n"
7721 name: "webkit02.dat #8"
7722 html: "<table><td></tfoot>A"
7724 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"A\"\n"
7726 name: "webkit02.dat #9"
7727 html: "<table><thead><td></tbody>A"
7729 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <thead>\n| <tr>\n| <td>\n| \"A\"\n"
7731 name: "webkit02.dat #10"
7732 html: "<legend>test</legend>"
7733 expected: "| <html>\n| <head>\n| <body>\n| <legend>\n| \"test\"\n"
7735 name: "webkit02.dat #11"
7736 html: "<table><input>"
7737 expected: "| <html>\n| <head>\n| <body>\n| <input>\n| <table>\n"
7739 name: "webkit02.dat #12"
7740 html: "<b><em><foo><foo><aside></b>"
7741 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <em>\n| <foo>\n| <foo>\n| <em>\n| <aside>\n| <b>\n"
7743 name: "webkit02.dat #13"
7744 html: "<b><em><foo><foo><aside></b></em>"
7745 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <em>\n| <foo>\n| <foo>\n| <em>\n| <aside>\n| <em>\n| <b>\n"
7747 name: "webkit02.dat #14"
7748 html: "<b><em><foo><foo><foo><aside></b>"
7749 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <em>\n| <foo>\n| <foo>\n| <foo>\n| <aside>\n| <b>\n"
7751 name: "webkit02.dat #15"
7752 html: "<b><em><foo><foo><foo><aside></b></em>"
7753 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <em>\n| <foo>\n| <foo>\n| <foo>\n| <aside>\n| <b>\n"
7755 name: "webkit02.dat #16"
7756 html: "<b><em><foo><foo><foo><foo><foo><foo><foo><foo><foo><foo><aside></b></em>"
7758 expected: "| <b>\n| <em>\n| <foo>\n| <foo>\n| <foo>\n| <foo>\n| <foo>\n| <foo>\n| <foo>\n| <foo>\n| <foo>\n| <foo>\n| <aside>\n| <b>\n"
7760 name: "webkit02.dat #17"
7761 html: "<b><em><foo><foob><foob><foob><foob><fooc><fooc><fooc><fooc><food><aside></b></em>"
7763 expected: "| <b>\n| <em>\n| <foo>\n| <foob>\n| <foob>\n| <foob>\n| <foob>\n| <fooc>\n| <fooc>\n| <fooc>\n| <fooc>\n| <food>\n| <aside>\n| <b>\n"
7765 name: "webkit02.dat #18"
7766 html: "<isindex action=\"x\">"
7768 expected: "| <form>\n| action=\"x\"\n| <hr>\n| <label>\n| \"This is a searchable index. Enter search keywords: \"\n| <input>\n| name=\"isindex\"\n| <hr>\n"
7770 name: "webkit02.dat #19"
7771 html: "<option><XH<optgroup></optgroup>"
7773 expected: "| <option>\n"
7775 name: "webkit02.dat #20"
7776 html: "<svg><foreignObject><div>foo</div><plaintext></foreignObject></svg><div>bar</div>"
7777 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg foreignObject>\n| <div>\n| \"foo\"\n| <plaintext>\n| \"</foreignObject></svg><div>bar</div>\"\n"
7779 name: "webkit02.dat #21"
7780 html: "<svg><foreignObject></foreignObject><title></svg>foo"
7781 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg foreignObject>\n| <svg title>\n| \"foo\"\n"
7783 name: "webkit02.dat #22"
7784 html: "</foreignObject><plaintext><div>foo</div>"
7785 expected: "| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"<div>foo</div>\"\n"
7790 wheic = window.wheic
7792 wheic = require './wheic.js'
7794 serialize_els = (els, prefix = '| ') ->
7800 if el.namespace is wheic.NS_MATHML
7802 if el.namespace is wheic.NS_SVG
7804 ret += "#{el.name}>\n"
7808 attr_keys.sort() # TODO this should be "lexicographically by UTF-16 code unit"
7810 ret += "#{prefix} #{k}=\"#{el.attrs[k]}\"\n"
7811 if el.name is 'template' # ?check ns
7812 ret += "#{prefix} content\n"
7813 ret += serialize_els el.children, "#{prefix} "
7815 ret += serialize_els el.children, "#{prefix} "
7816 when wheic.TYPE_TEXT
7817 ret += "#{prefix}\"#{el.text}\"\n"
7818 when wheic.TYPE_COMMENT
7819 ret += "#{prefix}<!-- #{el.text} -->\n"
7820 when wheic.TYPE_DOCTYPE
7821 ret += "#{prefix}<!DOCTYPE #{el.name}"
7822 if (el.public_identifier? and el.public_identifier.length > 0) or (el.system_identifier? and el.system_identifier.length > 0)
7823 ret += " \"#{el.public_identifier ? ''}\""
7824 ret += " \"#{el.system_identifier ? ''}\""
7827 ret += "#{prefix}UNKNOWN TAG TYPE #{el.type}"
7830 test_results = passed: 0, failed: 0, fragment: 0
7831 test_parser = (args) ->
7832 if args.fragment? # hide fragment tests for now
7833 test_results.fragment += 1
7835 wheic.debug_log_reset()
7839 prev_node_id = 0 # reset counter
7840 parsed = wheic.parse_html args.html, errors_cb
7841 serialized = serialize_els parsed
7842 if serialized isnt args.expected
7843 #wheic.debug_log_each (str) ->
7845 console.log "FAILED: \"#{args.name}\""
7846 console.log " Input: #{args.html}"
7848 console.log " Fragment: #{args.fragment}"
7849 console.log " Correct: #{args.expected}"
7850 console.log " Output: #{serialized}"
7851 if parse_errors.length > 0
7852 console.log " parse errs: #{JSON.stringify parse_errors}"
7854 console.log " No parse errors"
7855 test_results.failed += 1
7857 console.log "passed \"#{args.name}\""
7858 test_results.passed += 1
7860 console.log "Tests passed: #{test_results.passed}, Failed: #{test_results.failed}, ignored: #{test_results.fragment}"
7864 run_tests_and_breathe = ->
7865 start_time = new Date()
7867 if next_test >= tests.length
7870 test_parser tests[next_test]
7873 if now - start_time > 100 # miliseconds
7875 setTimeout run_tests_and_breathe, 1
7876 run_tests_and_breathe()