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>"
3479 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noscript>\n| \"<!--<noscript>\"\n| <body>\n| \"-->\"\n"
3481 name: "tests16.dat #85"
3482 html: "<!doctype html><noscript><!--<noscript></noscript>--></noscript>"
3484 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noscript>\n| <!-- <noscript></noscript> -->\n| <body>\n"
3486 name: "tests16.dat #86"
3487 html: "<!doctype html><noscript><!--</noscript>X<noscript>--></noscript>"
3489 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noscript>\n| \"<!--\"\n| <body>\n| \"X\"\n| <noscript>\n| \"-->\"\n"
3491 name: "tests16.dat #87"
3492 html: "<!doctype html><noscript><!--</noscript>X<noscript>--></noscript>"
3494 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noscript>\n| <!-- </noscript>X<noscript> -->\n| <body>\n"
3496 name: "tests16.dat #88"
3497 html: "<!doctype html><noscript><iframe></noscript>X"
3499 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noscript>\n| \"<iframe>\"\n| <body>\n| \"X\"\n"
3501 name: "tests16.dat #89"
3502 html: "<!doctype html><noscript><iframe></noscript>X"
3505 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noscript>\n| <body>\n| <iframe>\n| \"</noscript>X\"\n"
3507 name: "tests16.dat #90"
3508 html: "<!doctype html><noframes><!--<noframes></noframes>--></noframes>"
3510 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noframes>\n| \"<!--<noframes>\"\n| <body>\n| \"-->\"\n"
3512 name: "tests16.dat #91"
3513 html: "<!doctype html><noframes><body><script><!--...</script></body></noframes></html>"
3514 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <noframes>\n| \"<body><script><!--...</script></body>\"\n| <body>\n"
3516 name: "tests16.dat #92"
3517 html: "<!doctype html><textarea><!--<textarea></textarea>--></textarea>"
3519 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"<!--<textarea>\"\n| \"-->\"\n"
3521 name: "tests16.dat #93"
3522 html: "<!doctype html><textarea></textarea></textarea>"
3523 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"</textarea>\"\n"
3525 name: "tests16.dat #94"
3526 html: "<!doctype html><textarea><</textarea>"
3527 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"<\"\n"
3529 name: "tests16.dat #95"
3530 html: "<!doctype html><textarea>a<b</textarea>"
3531 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"a<b\"\n"
3533 name: "tests16.dat #96"
3534 html: "<!doctype html><iframe><!--<iframe></iframe>--></iframe>"
3536 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <iframe>\n| \"<!--<iframe>\"\n| \"-->\"\n"
3538 name: "tests16.dat #97"
3539 html: "<!doctype html><iframe>...<!--X->...<!--/X->...</iframe>"
3540 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <iframe>\n| \"...<!--X->...<!--/X->...\"\n"
3542 name: "tests16.dat #98"
3543 html: "<!doctype html><xmp><!--<xmp></xmp>--></xmp>"
3545 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <xmp>\n| \"<!--<xmp>\"\n| \"-->\"\n"
3547 name: "tests16.dat #99"
3548 html: "<!doctype html><noembed><!--<noembed></noembed>--></noembed>"
3550 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <noembed>\n| \"<!--<noembed>\"\n| \"-->\"\n"
3552 name: "tests16.dat #100"
3555 expected: "| <html>\n| <head>\n| <script>\n| <body>\n"
3557 name: "tests16.dat #101"
3560 expected: "| <html>\n| <head>\n| <script>\n| \"a\"\n| <body>\n"
3562 name: "tests16.dat #102"
3565 expected: "| <html>\n| <head>\n| <script>\n| \"<\"\n| <body>\n"
3567 name: "tests16.dat #103"
3570 expected: "| <html>\n| <head>\n| <script>\n| \"</\"\n| <body>\n"
3572 name: "tests16.dat #104"
3575 expected: "| <html>\n| <head>\n| <script>\n| \"</S\"\n| <body>\n"
3577 name: "tests16.dat #105"
3578 html: "<script></SC"
3580 expected: "| <html>\n| <head>\n| <script>\n| \"</SC\"\n| <body>\n"
3582 name: "tests16.dat #106"
3583 html: "<script></SCR"
3585 expected: "| <html>\n| <head>\n| <script>\n| \"</SCR\"\n| <body>\n"
3587 name: "tests16.dat #107"
3588 html: "<script></SCRI"
3590 expected: "| <html>\n| <head>\n| <script>\n| \"</SCRI\"\n| <body>\n"
3592 name: "tests16.dat #108"
3593 html: "<script></SCRIP"
3595 expected: "| <html>\n| <head>\n| <script>\n| \"</SCRIP\"\n| <body>\n"
3597 name: "tests16.dat #109"
3598 html: "<script></SCRIPT"
3600 expected: "| <html>\n| <head>\n| <script>\n| \"</SCRIPT\"\n| <body>\n"
3602 name: "tests16.dat #110"
3603 html: "<script></SCRIPT "
3605 expected: "| <html>\n| <head>\n| <script>\n| <body>\n"
3607 name: "tests16.dat #111"
3610 expected: "| <html>\n| <head>\n| <script>\n| \"</s\"\n| <body>\n"
3612 name: "tests16.dat #112"
3613 html: "<script></sc"
3615 expected: "| <html>\n| <head>\n| <script>\n| \"</sc\"\n| <body>\n"
3617 name: "tests16.dat #113"
3618 html: "<script></scr"
3620 expected: "| <html>\n| <head>\n| <script>\n| \"</scr\"\n| <body>\n"
3622 name: "tests16.dat #114"
3623 html: "<script></scri"
3625 expected: "| <html>\n| <head>\n| <script>\n| \"</scri\"\n| <body>\n"
3627 name: "tests16.dat #115"
3628 html: "<script></scrip"
3630 expected: "| <html>\n| <head>\n| <script>\n| \"</scrip\"\n| <body>\n"
3632 name: "tests16.dat #116"
3633 html: "<script></script"
3635 expected: "| <html>\n| <head>\n| <script>\n| \"</script\"\n| <body>\n"
3637 name: "tests16.dat #117"
3638 html: "<script></script "
3640 expected: "| <html>\n| <head>\n| <script>\n| <body>\n"
3642 name: "tests16.dat #118"
3645 expected: "| <html>\n| <head>\n| <script>\n| \"<!\"\n| <body>\n"
3647 name: "tests16.dat #119"
3650 expected: "| <html>\n| <head>\n| <script>\n| \"<!a\"\n| <body>\n"
3652 name: "tests16.dat #120"
3655 expected: "| <html>\n| <head>\n| <script>\n| \"<!-\"\n| <body>\n"
3657 name: "tests16.dat #121"
3658 html: "<script><!-a"
3660 expected: "| <html>\n| <head>\n| <script>\n| \"<!-a\"\n| <body>\n"
3662 name: "tests16.dat #122"
3663 html: "<script><!--"
3665 expected: "| <html>\n| <head>\n| <script>\n| \"<!--\"\n| <body>\n"
3667 name: "tests16.dat #123"
3668 html: "<script><!--a"
3670 expected: "| <html>\n| <head>\n| <script>\n| \"<!--a\"\n| <body>\n"
3672 name: "tests16.dat #124"
3673 html: "<script><!--<"
3675 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<\"\n| <body>\n"
3677 name: "tests16.dat #125"
3678 html: "<script><!--<a"
3680 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<a\"\n| <body>\n"
3682 name: "tests16.dat #126"
3683 html: "<script><!--</"
3685 expected: "| <html>\n| <head>\n| <script>\n| \"<!--</\"\n| <body>\n"
3687 name: "tests16.dat #127"
3688 html: "<script><!--</script"
3690 expected: "| <html>\n| <head>\n| <script>\n| \"<!--</script\"\n| <body>\n"
3692 name: "tests16.dat #128"
3693 html: "<script><!--</script "
3695 expected: "| <html>\n| <head>\n| <script>\n| \"<!--\"\n| <body>\n"
3697 name: "tests16.dat #129"
3698 html: "<script><!--<s"
3700 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<s\"\n| <body>\n"
3702 name: "tests16.dat #130"
3703 html: "<script><!--<script"
3705 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script\"\n| <body>\n"
3707 name: "tests16.dat #131"
3708 html: "<script><!--<script "
3710 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script \"\n| <body>\n"
3712 name: "tests16.dat #132"
3713 html: "<script><!--<script <"
3715 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script <\"\n| <body>\n"
3717 name: "tests16.dat #133"
3718 html: "<script><!--<script <a"
3720 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script <a\"\n| <body>\n"
3722 name: "tests16.dat #134"
3723 html: "<script><!--<script </"
3725 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </\"\n| <body>\n"
3727 name: "tests16.dat #135"
3728 html: "<script><!--<script </s"
3730 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </s\"\n| <body>\n"
3732 name: "tests16.dat #136"
3733 html: "<script><!--<script </script"
3735 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script\"\n| <body>\n"
3737 name: "tests16.dat #137"
3738 html: "<script><!--<script </scripta"
3740 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </scripta\"\n| <body>\n"
3742 name: "tests16.dat #138"
3743 html: "<script><!--<script </script "
3745 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script \"\n| <body>\n"
3747 name: "tests16.dat #139"
3748 html: "<script><!--<script </script>"
3750 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script>\"\n| <body>\n"
3752 name: "tests16.dat #140"
3753 html: "<script><!--<script </script/"
3755 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script/\"\n| <body>\n"
3757 name: "tests16.dat #141"
3758 html: "<script><!--<script </script <"
3760 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script <\"\n| <body>\n"
3762 name: "tests16.dat #142"
3763 html: "<script><!--<script </script <a"
3765 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script <a\"\n| <body>\n"
3767 name: "tests16.dat #143"
3768 html: "<script><!--<script </script </"
3770 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script </\"\n| <body>\n"
3772 name: "tests16.dat #144"
3773 html: "<script><!--<script </script </script"
3775 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script </script\"\n| <body>\n"
3777 name: "tests16.dat #145"
3778 html: "<script><!--<script </script </script "
3780 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script \"\n| <body>\n"
3782 name: "tests16.dat #146"
3783 html: "<script><!--<script </script </script/"
3785 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script \"\n| <body>\n"
3787 name: "tests16.dat #147"
3788 html: "<script><!--<script </script </script>"
3790 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script </script \"\n| <body>\n"
3792 name: "tests16.dat #148"
3793 html: "<script><!--<script -"
3795 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script -\"\n| <body>\n"
3797 name: "tests16.dat #149"
3798 html: "<script><!--<script -a"
3800 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script -a\"\n| <body>\n"
3802 name: "tests16.dat #150"
3803 html: "<script><!--<script --"
3805 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script --\"\n| <body>\n"
3807 name: "tests16.dat #151"
3808 html: "<script><!--<script --a"
3810 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script --a\"\n| <body>\n"
3812 name: "tests16.dat #152"
3813 html: "<script><!--<script -->"
3815 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script -->\"\n| <body>\n"
3817 name: "tests16.dat #153"
3818 html: "<script><!--<script --><"
3820 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script --><\"\n| <body>\n"
3822 name: "tests16.dat #154"
3823 html: "<script><!--<script --></"
3825 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script --></\"\n| <body>\n"
3827 name: "tests16.dat #155"
3828 html: "<script><!--<script --></script"
3830 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script --></script\"\n| <body>\n"
3832 name: "tests16.dat #156"
3833 html: "<script><!--<script --></script "
3835 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script -->\"\n| <body>\n"
3837 name: "tests16.dat #157"
3838 html: "<script><!--<script --></script/"
3840 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script -->\"\n| <body>\n"
3842 name: "tests16.dat #158"
3843 html: "<script><!--<script --></script>"
3845 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script -->\"\n| <body>\n"
3847 name: "tests16.dat #159"
3848 html: "<script><!--<script><\\/script>--></script>"
3850 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script><\\/script>-->\"\n| <body>\n"
3852 name: "tests16.dat #160"
3853 html: "<script><!--<script></scr'+'ipt>--></script>"
3855 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></scr'+'ipt>-->\"\n| <body>\n"
3857 name: "tests16.dat #161"
3858 html: "<script><!--<script></script><script></script></script>"
3860 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>\"\n| <body>\n"
3862 name: "tests16.dat #162"
3863 html: "<script><!--<script></script><script></script>--><!--</script>"
3865 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>--><!--\"\n| <body>\n"
3867 name: "tests16.dat #163"
3868 html: "<script><!--<script></script><script></script>-- ></script>"
3870 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>-- >\"\n| <body>\n"
3872 name: "tests16.dat #164"
3873 html: "<script><!--<script></script><script></script>- -></script>"
3875 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>- ->\"\n| <body>\n"
3877 name: "tests16.dat #165"
3878 html: "<script><!--<script></script><script></script>- - ></script>"
3880 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>- - >\"\n| <body>\n"
3882 name: "tests16.dat #166"
3883 html: "<script><!--<script></script><script></script>-></script>"
3885 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></script><script></script>->\"\n| <body>\n"
3887 name: "tests16.dat #167"
3888 html: "<script><!--<script>--!></script>X"
3890 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script>--!></script>X\"\n| <body>\n"
3892 name: "tests16.dat #168"
3893 html: "<script><!--<scr'+'ipt></script>--></script>"
3895 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<scr'+'ipt>\"\n| <body>\n| \"-->\"\n"
3897 name: "tests16.dat #169"
3898 html: "<script><!--<script></scr'+'ipt></script>X"
3900 expected: "| <html>\n| <head>\n| <script>\n| \"<!--<script></scr'+'ipt></script>X\"\n| <body>\n"
3902 name: "tests16.dat #170"
3903 html: "<style><!--<style></style>--></style>"
3905 expected: "| <html>\n| <head>\n| <style>\n| \"<!--<style>\"\n| <body>\n| \"-->\"\n"
3907 name: "tests16.dat #171"
3908 html: "<style><!--</style>X"
3910 expected: "| <html>\n| <head>\n| <style>\n| \"<!--\"\n| <body>\n| \"X\"\n"
3912 name: "tests16.dat #172"
3913 html: "<style><!--...</style>...--></style>"
3915 expected: "| <html>\n| <head>\n| <style>\n| \"<!--...\"\n| <body>\n| \"...-->\"\n"
3917 name: "tests16.dat #173"
3918 html: "<style><!--<br><html xmlns:v=\"urn:schemas-microsoft-com:vml\"><!--[if !mso]><style></style>X"
3920 expected: "| <html>\n| <head>\n| <style>\n| \"<!--<br><html xmlns:v=\"urn:schemas-microsoft-com:vml\"><!--[if !mso]><style>\"\n| <body>\n| \"X\"\n"
3922 name: "tests16.dat #174"
3923 html: "<style><!--...<style><!--...--!></style>--></style>"
3925 expected: "| <html>\n| <head>\n| <style>\n| \"<!--...<style><!--...--!>\"\n| <body>\n| \"-->\"\n"
3927 name: "tests16.dat #175"
3928 html: "<style><!--...</style><!-- --><style>@import ...</style>"
3930 expected: "| <html>\n| <head>\n| <style>\n| \"<!--...\"\n| <!-- -->\n| <style>\n| \"@import ...\"\n| <body>\n"
3932 name: "tests16.dat #176"
3933 html: "<style>...<style><!--...</style><!-- --></style>"
3935 expected: "| <html>\n| <head>\n| <style>\n| \"...<style><!--...\"\n| <!-- -->\n| <body>\n"
3937 name: "tests16.dat #177"
3938 html: "<style>...<!--[if IE]><style>...</style>X"
3940 expected: "| <html>\n| <head>\n| <style>\n| \"...<!--[if IE]><style>...\"\n| <body>\n| \"X\"\n"
3942 name: "tests16.dat #178"
3943 html: "<title><!--<title></title>--></title>"
3945 expected: "| <html>\n| <head>\n| <title>\n| \"<!--<title>\"\n| <body>\n| \"-->\"\n"
3947 name: "tests16.dat #179"
3948 html: "<title></title></title>"
3950 expected: "| <html>\n| <head>\n| <title>\n| \"</title>\"\n| <body>\n"
3952 name: "tests16.dat #180"
3953 html: "<title>foo/title><link></head><body>X"
3955 expected: "| <html>\n| <head>\n| <title>\n| \"foo/title><link></head><body>X\"\n| <body>\n"
3957 name: "tests16.dat #181"
3958 html: "<noscript><!--<noscript></noscript>--></noscript>"
3961 expected: "| <html>\n| <head>\n| <noscript>\n| \"<!--<noscript>\"\n| <body>\n| \"-->\"\n"
3963 name: "tests16.dat #182"
3964 html: "<noscript><!--<noscript></noscript>--></noscript>"
3967 expected: "| <html>\n| <head>\n| <noscript>\n| <!-- <noscript></noscript> -->\n| <body>\n"
3969 name: "tests16.dat #183"
3970 html: "<noscript><!--</noscript>X<noscript>--></noscript>"
3973 expected: "| <html>\n| <head>\n| <noscript>\n| \"<!--\"\n| <body>\n| \"X\"\n| <noscript>\n| \"-->\"\n"
3975 name: "tests16.dat #184"
3976 html: "<noscript><!--</noscript>X<noscript>--></noscript>"
3979 expected: "| <html>\n| <head>\n| <noscript>\n| <!-- </noscript>X<noscript> -->\n| <body>\n"
3981 name: "tests16.dat #185"
3982 html: "<noscript><iframe></noscript>X"
3985 expected: "| <html>\n| <head>\n| <noscript>\n| \"<iframe>\"\n| <body>\n| \"X\"\n"
3987 name: "tests16.dat #186"
3988 html: "<noscript><iframe></noscript>X"
3991 expected: "| <html>\n| <head>\n| <noscript>\n| <body>\n| <iframe>\n| \"</noscript>X\"\n"
3993 name: "tests16.dat #187"
3994 html: "<noframes><!--<noframes></noframes>--></noframes>"
3996 expected: "| <html>\n| <head>\n| <noframes>\n| \"<!--<noframes>\"\n| <body>\n| \"-->\"\n"
3998 name: "tests16.dat #188"
3999 html: "<noframes><body><script><!--...</script></body></noframes></html>"
4001 expected: "| <html>\n| <head>\n| <noframes>\n| \"<body><script><!--...</script></body>\"\n| <body>\n"
4003 name: "tests16.dat #189"
4004 html: "<textarea><!--<textarea></textarea>--></textarea>"
4006 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \"<!--<textarea>\"\n| \"-->\"\n"
4008 name: "tests16.dat #190"
4009 html: "<textarea></textarea></textarea>"
4011 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \"</textarea>\"\n"
4013 name: "tests16.dat #191"
4014 html: "<iframe><!--<iframe></iframe>--></iframe>"
4016 expected: "| <html>\n| <head>\n| <body>\n| <iframe>\n| \"<!--<iframe>\"\n| \"-->\"\n"
4018 name: "tests16.dat #192"
4019 html: "<iframe>...<!--X->...<!--/X->...</iframe>"
4021 expected: "| <html>\n| <head>\n| <body>\n| <iframe>\n| \"...<!--X->...<!--/X->...\"\n"
4023 name: "tests16.dat #193"
4024 html: "<xmp><!--<xmp></xmp>--></xmp>"
4026 expected: "| <html>\n| <head>\n| <body>\n| <xmp>\n| \"<!--<xmp>\"\n| \"-->\"\n"
4028 name: "tests16.dat #194"
4029 html: "<noembed><!--<noembed></noembed>--></noembed>"
4031 expected: "| <html>\n| <head>\n| <body>\n| <noembed>\n| \"<!--<noembed>\"\n| \"-->\"\n"
4033 name: "tests16.dat #195"
4034 html: "<!doctype html><table>\n"
4036 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| \"\n\"\n"
4038 name: "tests16.dat #196"
4039 html: "<!doctype html><table><td><span><font></span><span>"
4041 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"
4043 name: "tests16.dat #197"
4044 html: "<!doctype html><form><table></form><form></table></form>"
4046 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <form>\n| <table>\n| <form>\n"
4048 name: "tests17.dat #1"
4049 html: "<!doctype html><table><tbody><select><tr>"
4051 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <table>\n| <tbody>\n| <tr>\n"
4053 name: "tests17.dat #2"
4054 html: "<!doctype html><table><tr><select><td>"
4056 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
4058 name: "tests17.dat #3"
4059 html: "<!doctype html><table><tr><td><select><td>"
4061 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <select>\n| <td>\n"
4063 name: "tests17.dat #4"
4064 html: "<!doctype html><table><tr><th><select><td>"
4066 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <th>\n| <select>\n| <td>\n"
4068 name: "tests17.dat #5"
4069 html: "<!doctype html><table><caption><select><tr>"
4071 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <select>\n| <tbody>\n| <tr>\n"
4073 name: "tests17.dat #6"
4074 html: "<!doctype html><select><tr>"
4076 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4078 name: "tests17.dat #7"
4079 html: "<!doctype html><select><td>"
4081 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4083 name: "tests17.dat #8"
4084 html: "<!doctype html><select><th>"
4086 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4088 name: "tests17.dat #9"
4089 html: "<!doctype html><select><tbody>"
4091 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4093 name: "tests17.dat #10"
4094 html: "<!doctype html><select><thead>"
4096 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4098 name: "tests17.dat #11"
4099 html: "<!doctype html><select><tfoot>"
4101 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4103 name: "tests17.dat #12"
4104 html: "<!doctype html><select><caption>"
4106 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4108 name: "tests17.dat #13"
4109 html: "<!doctype html><table><tr></table>a"
4110 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| \"a\"\n"
4112 name: "tests18.dat #1"
4113 html: "<!doctype html><plaintext></plaintext>"
4115 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"</plaintext>\"\n"
4117 name: "tests18.dat #2"
4118 html: "<!doctype html><table><plaintext></plaintext>"
4120 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"</plaintext>\"\n| <table>\n"
4122 name: "tests18.dat #3"
4123 html: "<!doctype html><table><tbody><plaintext></plaintext>"
4125 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"</plaintext>\"\n| <table>\n| <tbody>\n"
4127 name: "tests18.dat #4"
4128 html: "<!doctype html><table><tbody><tr><plaintext></plaintext>"
4130 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"</plaintext>\"\n| <table>\n| <tbody>\n| <tr>\n"
4132 name: "tests18.dat #5"
4133 html: "<!doctype html><table><td><plaintext></plaintext>"
4135 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <plaintext>\n| \"</plaintext>\"\n"
4137 name: "tests18.dat #6"
4138 html: "<!doctype html><table><caption><plaintext></plaintext>"
4140 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <plaintext>\n| \"</plaintext>\"\n"
4142 name: "tests18.dat #7"
4143 html: "<!doctype html><table><tr><style></script></style>abc"
4145 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"abc\"\n| <table>\n| <tbody>\n| <tr>\n| <style>\n| \"</script>\"\n"
4147 name: "tests18.dat #8"
4148 html: "<!doctype html><table><tr><script></style></script>abc"
4150 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"abc\"\n| <table>\n| <tbody>\n| <tr>\n| <script>\n| \"</style>\"\n"
4152 name: "tests18.dat #9"
4153 html: "<!doctype html><table><caption><style></script></style>abc"
4155 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <style>\n| \"</script>\"\n| \"abc\"\n"
4157 name: "tests18.dat #10"
4158 html: "<!doctype html><table><td><style></script></style>abc"
4160 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <style>\n| \"</script>\"\n| \"abc\"\n"
4162 name: "tests18.dat #11"
4163 html: "<!doctype html><select><script></style></script>abc"
4165 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <script>\n| \"</style>\"\n| \"abc\"\n"
4167 name: "tests18.dat #12"
4168 html: "<!doctype html><table><select><script></style></script>abc"
4170 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <script>\n| \"</style>\"\n| \"abc\"\n| <table>\n"
4172 name: "tests18.dat #13"
4173 html: "<!doctype html><table><tr><select><script></style></script>abc"
4175 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <script>\n| \"</style>\"\n| \"abc\"\n| <table>\n| <tbody>\n| <tr>\n"
4177 name: "tests18.dat #14"
4178 html: "<!doctype html><frameset></frameset><noframes>abc"
4180 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <noframes>\n| \"abc\"\n"
4182 name: "tests18.dat #15"
4183 html: "<!doctype html><frameset></frameset><noframes>abc</noframes><!--abc-->"
4184 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <noframes>\n| \"abc\"\n| <!-- abc -->\n"
4186 name: "tests18.dat #16"
4187 html: "<!doctype html><frameset></frameset></html><noframes>abc"
4189 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <noframes>\n| \"abc\"\n"
4191 name: "tests18.dat #17"
4192 html: "<!doctype html><frameset></frameset></html><noframes>abc</noframes><!--abc-->"
4193 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <noframes>\n| \"abc\"\n| <!-- abc -->\n"
4195 name: "tests18.dat #18"
4196 html: "<!doctype html><table><tr></tbody><tfoot>"
4198 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <tfoot>\n"
4200 name: "tests18.dat #19"
4201 html: "<!doctype html><table><td><svg></svg>abc<td>"
4203 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"
4205 name: "tests19.dat #1"
4206 html: "<!doctype html><math><mn DefinitionUrl=\"foo\">"
4208 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mn>\n| definitionURL=\"foo\"\n"
4210 name: "tests19.dat #2"
4211 html: "<!doctype html><html></p><!--foo-->"
4213 expected: "| <!DOCTYPE html>\n| <html>\n| <!-- foo -->\n| <head>\n| <body>\n"
4215 name: "tests19.dat #3"
4216 html: "<!doctype html><head></head></p><!--foo-->"
4218 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <!-- foo -->\n| <body>\n"
4220 name: "tests19.dat #4"
4221 html: "<!doctype html><body><p><pre>"
4223 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <pre>\n"
4225 name: "tests19.dat #5"
4226 html: "<!doctype html><body><p><listing>"
4228 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <listing>\n"
4230 name: "tests19.dat #6"
4231 html: "<!doctype html><p><plaintext>"
4233 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <plaintext>\n"
4235 name: "tests19.dat #7"
4236 html: "<!doctype html><p><h1>"
4238 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <h1>\n"
4240 name: "tests19.dat #8"
4241 html: "<!doctype html><form><isindex>"
4243 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <form>\n"
4245 name: "tests19.dat #9"
4246 html: "<!doctype html><isindex action=\"POST\">"
4248 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"
4250 name: "tests19.dat #10"
4251 html: "<!doctype html><isindex prompt=\"this is isindex\">"
4253 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"
4255 name: "tests19.dat #11"
4256 html: "<!doctype html><isindex type=\"hidden\">"
4258 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"
4260 name: "tests19.dat #12"
4261 html: "<!doctype html><isindex name=\"foo\">"
4263 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"
4265 name: "tests19.dat #13"
4266 html: "<!doctype html><ruby><p><rp>"
4268 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ruby>\n| <p>\n| <rp>\n"
4270 name: "tests19.dat #14"
4271 html: "<!doctype html><ruby><div><span><rp>"
4273 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ruby>\n| <div>\n| <span>\n| <rp>\n"
4275 name: "tests19.dat #15"
4276 html: "<!doctype html><ruby><div><p><rp>"
4278 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ruby>\n| <div>\n| <p>\n| <rp>\n"
4280 name: "tests19.dat #16"
4281 html: "<!doctype html><ruby><p><rt>"
4283 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ruby>\n| <p>\n| <rt>\n"
4285 name: "tests19.dat #17"
4286 html: "<!doctype html><ruby><div><span><rt>"
4288 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ruby>\n| <div>\n| <span>\n| <rt>\n"
4290 name: "tests19.dat #18"
4291 html: "<!doctype html><ruby><div><p><rt>"
4293 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ruby>\n| <div>\n| <p>\n| <rt>\n"
4295 name: "tests19.dat #19"
4296 html: "<html><ruby>a<rb>b<rt></ruby></html>"
4298 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rb>\n| \"b\"\n| <rt>\n"
4300 name: "tests19.dat #20"
4301 html: "<html><ruby>a<rp>b<rt></ruby></html>"
4303 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rp>\n| \"b\"\n| <rt>\n"
4305 name: "tests19.dat #21"
4306 html: "<html><ruby>a<rt>b<rt></ruby></html>"
4308 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rt>\n| \"b\"\n| <rt>\n"
4310 name: "tests19.dat #22"
4311 html: "<html><ruby>a<rtc>b<rt>c<rb>d</ruby></html>"
4313 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| \"a\"\n| <rtc>\n| \"b\"\n| <rt>\n| \"c\"\n| <rb>\n| \"d\"\n"
4315 name: "tests19.dat #23"
4316 html: "<!doctype html><math/><foo>"
4318 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <foo>\n"
4320 name: "tests19.dat #24"
4321 html: "<!doctype html><svg/><foo>"
4323 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <foo>\n"
4325 name: "tests19.dat #25"
4326 html: "<!doctype html><div></body><!--foo-->"
4328 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <div>\n| <!-- foo -->\n"
4330 name: "tests19.dat #26"
4331 html: "<!doctype html><h1><div><h3><span></h1>foo"
4333 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <h1>\n| <div>\n| <h3>\n| <span>\n| \"foo\"\n"
4335 name: "tests19.dat #27"
4336 html: "<!doctype html><p></h3>foo"
4338 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| \"foo\"\n"
4340 name: "tests19.dat #28"
4341 html: "<!doctype html><h3><li>abc</h2>foo"
4343 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <h3>\n| <li>\n| \"abc\"\n| \"foo\"\n"
4345 name: "tests19.dat #29"
4346 html: "<!doctype html><table>abc<!--foo-->"
4348 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"abc\"\n| <table>\n| <!-- foo -->\n"
4350 name: "tests19.dat #30"
4351 html: "<!doctype html><table> <!--foo-->"
4353 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| \" \"\n| <!-- foo -->\n"
4355 name: "tests19.dat #31"
4356 html: "<!doctype html><table> b <!--foo-->"
4358 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" b \"\n| <table>\n| <!-- foo -->\n"
4360 name: "tests19.dat #32"
4361 html: "<!doctype html><select><option><option>"
4363 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| <option>\n"
4365 name: "tests19.dat #33"
4366 html: "<!doctype html><select><option></optgroup>"
4368 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n"
4370 name: "tests19.dat #34"
4371 html: "<!doctype html><select><option></optgroup>"
4373 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n"
4375 name: "tests19.dat #35"
4376 html: "<!doctype html><dd><optgroup><dd>"
4377 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <dd>\n| <optgroup>\n| <dd>\n"
4379 name: "tests19.dat #36"
4380 html: "<!doctype html><p><math><mi><p><h1>"
4382 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| <math mi>\n| <p>\n| <h1>\n"
4384 name: "tests19.dat #37"
4385 html: "<!doctype html><p><math><mo><p><h1>"
4387 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| <math mo>\n| <p>\n| <h1>\n"
4389 name: "tests19.dat #38"
4390 html: "<!doctype html><p><math><mn><p><h1>"
4392 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| <math mn>\n| <p>\n| <h1>\n"
4394 name: "tests19.dat #39"
4395 html: "<!doctype html><p><math><ms><p><h1>"
4397 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| <math ms>\n| <p>\n| <h1>\n"
4399 name: "tests19.dat #40"
4400 html: "<!doctype html><p><math><mtext><p><h1>"
4402 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| <math mtext>\n| <p>\n| <h1>\n"
4404 name: "tests19.dat #41"
4405 html: "<!doctype html><frameset></noframes>"
4407 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
4409 name: "tests19.dat #42"
4410 html: "<!doctype html><html c=d><body></html><html a=b>"
4412 expected: "| <!DOCTYPE html>\n| <html>\n| a=\"b\"\n| c=\"d\"\n| <head>\n| <body>\n"
4414 name: "tests19.dat #43"
4415 html: "<!doctype html><html c=d><frameset></frameset></html><html a=b>"
4417 expected: "| <!DOCTYPE html>\n| <html>\n| a=\"b\"\n| c=\"d\"\n| <head>\n| <frameset>\n"
4419 name: "tests19.dat #44"
4420 html: "<!doctype html><html><frameset></frameset></html><!--foo-->"
4421 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <!-- foo -->\n"
4423 name: "tests19.dat #45"
4424 html: "<!doctype html><html><frameset></frameset></html> "
4425 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| \" \"\n"
4427 name: "tests19.dat #46"
4428 html: "<!doctype html><html><frameset></frameset></html>abc"
4430 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
4432 name: "tests19.dat #47"
4433 html: "<!doctype html><html><frameset></frameset></html><p>"
4435 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
4437 name: "tests19.dat #48"
4438 html: "<!doctype html><html><frameset></frameset></html></p>"
4440 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
4442 name: "tests19.dat #49"
4443 html: "<html><frameset></frameset></html><!doctype html>"
4445 expected: "| <html>\n| <head>\n| <frameset>\n"
4447 name: "tests19.dat #50"
4448 html: "<!doctype html><body><frameset>"
4450 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
4452 name: "tests19.dat #51"
4453 html: "<!doctype html><p><frameset><frame>"
4455 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <frame>\n"
4457 name: "tests19.dat #52"
4458 html: "<!doctype html><p>a<frameset>"
4460 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| \"a\"\n"
4462 name: "tests19.dat #53"
4463 html: "<!doctype html><p> <frameset><frame>"
4465 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <frame>\n"
4467 name: "tests19.dat #54"
4468 html: "<!doctype html><pre><frameset>"
4470 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n"
4472 name: "tests19.dat #55"
4473 html: "<!doctype html><listing><frameset>"
4475 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <listing>\n"
4477 name: "tests19.dat #56"
4478 html: "<!doctype html><li><frameset>"
4480 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <li>\n"
4482 name: "tests19.dat #57"
4483 html: "<!doctype html><dd><frameset>"
4485 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <dd>\n"
4487 name: "tests19.dat #58"
4488 html: "<!doctype html><dt><frameset>"
4490 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <dt>\n"
4492 name: "tests19.dat #59"
4493 html: "<!doctype html><button><frameset>"
4495 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <button>\n"
4497 name: "tests19.dat #60"
4498 html: "<!doctype html><applet><frameset>"
4500 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <applet>\n"
4502 name: "tests19.dat #61"
4503 html: "<!doctype html><marquee><frameset>"
4505 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <marquee>\n"
4507 name: "tests19.dat #62"
4508 html: "<!doctype html><object><frameset>"
4510 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <object>\n"
4512 name: "tests19.dat #63"
4513 html: "<!doctype html><table><frameset>"
4515 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n"
4517 name: "tests19.dat #64"
4518 html: "<!doctype html><area><frameset>"
4520 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <area>\n"
4522 name: "tests19.dat #65"
4523 html: "<!doctype html><basefont><frameset>"
4525 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <basefont>\n| <frameset>\n"
4527 name: "tests19.dat #66"
4528 html: "<!doctype html><bgsound><frameset>"
4530 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <bgsound>\n| <frameset>\n"
4532 name: "tests19.dat #67"
4533 html: "<!doctype html><br><frameset>"
4535 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <br>\n"
4537 name: "tests19.dat #68"
4538 html: "<!doctype html><embed><frameset>"
4540 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <embed>\n"
4542 name: "tests19.dat #69"
4543 html: "<!doctype html><img><frameset>"
4545 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <img>\n"
4547 name: "tests19.dat #70"
4548 html: "<!doctype html><input><frameset>"
4550 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <input>\n"
4552 name: "tests19.dat #71"
4553 html: "<!doctype html><keygen><frameset>"
4555 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <keygen>\n"
4557 name: "tests19.dat #72"
4558 html: "<!doctype html><wbr><frameset>"
4560 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <wbr>\n"
4562 name: "tests19.dat #73"
4563 html: "<!doctype html><hr><frameset>"
4565 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <hr>\n"
4567 name: "tests19.dat #74"
4568 html: "<!doctype html><textarea></textarea><frameset>"
4570 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n"
4572 name: "tests19.dat #75"
4573 html: "<!doctype html><xmp></xmp><frameset>"
4575 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <xmp>\n"
4577 name: "tests19.dat #76"
4578 html: "<!doctype html><iframe></iframe><frameset>"
4580 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <iframe>\n"
4582 name: "tests19.dat #77"
4583 html: "<!doctype html><select></select><frameset>"
4585 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
4587 name: "tests19.dat #78"
4588 html: "<!doctype html><svg></svg><frameset><frame>"
4590 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <frame>\n"
4592 name: "tests19.dat #79"
4593 html: "<!doctype html><math></math><frameset><frame>"
4595 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <frame>\n"
4597 name: "tests19.dat #80"
4598 html: "<!doctype html><svg><foreignObject><div> <frameset><frame>"
4600 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <frame>\n"
4602 name: "tests19.dat #81"
4603 html: "<!doctype html><svg>a</svg><frameset><frame>"
4605 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"a\"\n"
4607 name: "tests19.dat #82"
4608 html: "<!doctype html><svg> </svg><frameset><frame>"
4610 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| <frame>\n"
4612 name: "tests19.dat #83"
4613 html: "<html>aaa<frameset></frameset>"
4615 expected: "| <html>\n| <head>\n| <body>\n| \"aaa\"\n"
4617 name: "tests19.dat #84"
4618 html: "<html> a <frameset></frameset>"
4620 expected: "| <html>\n| <head>\n| <body>\n| \"a \"\n"
4622 name: "tests19.dat #85"
4623 html: "<!doctype html><div><frameset>"
4625 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
4627 name: "tests19.dat #86"
4628 html: "<!doctype html><div><body><frameset>"
4630 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <div>\n"
4632 name: "tests19.dat #87"
4633 html: "<!doctype html><p><math></p>a"
4635 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| \"a\"\n"
4637 name: "tests19.dat #88"
4638 html: "<!doctype html><p><math><mn><span></p>a"
4640 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <math math>\n| <math mn>\n| <span>\n| <p>\n| \"a\"\n"
4642 name: "tests19.dat #89"
4643 html: "<!doctype html><math></html>"
4645 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n"
4647 name: "tests19.dat #90"
4648 html: "<!doctype html><meta charset=\"ascii\">"
4649 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <meta>\n| charset=\"ascii\"\n| <body>\n"
4651 name: "tests19.dat #91"
4652 html: "<!doctype html><meta http-equiv=\"content-type\" content=\"text/html;charset=ascii\">"
4653 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <meta>\n| content=\"text/html;charset=ascii\"\n| http-equiv=\"content-type\"\n| <body>\n"
4655 name: "tests19.dat #92"
4656 html: "<!doctype html><head><!--aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa--><meta charset=\"utf8\">"
4657 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <!-- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -->\n| <meta>\n| charset=\"utf8\"\n| <body>\n"
4659 name: "tests19.dat #93"
4660 html: "<!doctype html><html a=b><head></head><html c=d>"
4662 expected: "| <!DOCTYPE html>\n| <html>\n| a=\"b\"\n| c=\"d\"\n| <head>\n| <body>\n"
4664 name: "tests19.dat #94"
4665 html: "<!doctype html><image/>"
4667 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <img>\n"
4669 name: "tests19.dat #95"
4670 html: "<!doctype html>a<i>b<table>c<b>d</i>e</b>f"
4672 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"a\"\n| <i>\n| \"bc\"\n| <b>\n| \"de\"\n| \"f\"\n| <table>\n"
4674 name: "tests19.dat #96"
4675 html: "<!doctype html><table><i>a<b>b<div>c<a>d</i>e</b>f"
4677 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"
4679 name: "tests19.dat #97"
4680 html: "<!doctype html><i>a<b>b<div>c<a>d</i>e</b>f"
4682 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"
4684 name: "tests19.dat #98"
4685 html: "<!doctype html><table><i>a<b>b<div>c</i>"
4687 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"
4689 name: "tests19.dat #99"
4690 html: "<!doctype html><table><i>a<b>b<div>c<a>d</i>e</b>f"
4692 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"
4694 name: "tests19.dat #100"
4695 html: "<!doctype html><table><i>a<div>b<tr>c<b>d</i>e"
4697 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"
4699 name: "tests19.dat #101"
4700 html: "<!doctype html><table><td><table><i>a<div>b<b>c</i>d"
4702 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"
4704 name: "tests19.dat #102"
4705 html: "<!doctype html><body><bgsound>"
4706 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <bgsound>\n"
4708 name: "tests19.dat #103"
4709 html: "<!doctype html><body><basefont>"
4710 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <basefont>\n"
4712 name: "tests19.dat #104"
4713 html: "<!doctype html><a><b></a><basefont>"
4715 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <a>\n| <b>\n| <basefont>\n"
4717 name: "tests19.dat #105"
4718 html: "<!doctype html><a><b></a><bgsound>"
4720 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <a>\n| <b>\n| <bgsound>\n"
4722 name: "tests19.dat #106"
4723 html: "<!doctype html><figcaption><article></figcaption>a"
4725 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <figcaption>\n| <article>\n| \"a\"\n"
4727 name: "tests19.dat #107"
4728 html: "<!doctype html><summary><article></summary>a"
4730 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <summary>\n| <article>\n| \"a\"\n"
4732 name: "tests19.dat #108"
4733 html: "<!doctype html><p><a><plaintext>b"
4735 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <a>\n| <plaintext>\n| <a>\n| \"b\"\n"
4737 name: "tests19.dat #109"
4738 html: "<!DOCTYPE html><div>a<a></div>b<p>c</p>d"
4740 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"
4742 name: "tests1.dat #1"
4745 expected: "| <html>\n| <head>\n| <body>\n| \"Test\"\n"
4747 name: "tests1.dat #2"
4748 html: "<p>One<p>Two"
4750 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| \"One\"\n| <p>\n| \"Two\"\n"
4752 name: "tests1.dat #3"
4753 html: "Line1<br>Line2<br>Line3<br>Line4"
4755 expected: "| <html>\n| <head>\n| <body>\n| \"Line1\"\n| <br>\n| \"Line2\"\n| <br>\n| \"Line3\"\n| <br>\n| \"Line4\"\n"
4757 name: "tests1.dat #4"
4760 expected: "| <html>\n| <head>\n| <body>\n"
4762 name: "tests1.dat #5"
4765 expected: "| <html>\n| <head>\n| <body>\n"
4767 name: "tests1.dat #6"
4770 expected: "| <html>\n| <head>\n| <body>\n"
4772 name: "tests1.dat #7"
4773 html: "<html><head>"
4775 expected: "| <html>\n| <head>\n| <body>\n"
4777 name: "tests1.dat #8"
4778 html: "<html><head></head>"
4780 expected: "| <html>\n| <head>\n| <body>\n"
4782 name: "tests1.dat #9"
4783 html: "<html><head></head><body>"
4785 expected: "| <html>\n| <head>\n| <body>\n"
4787 name: "tests1.dat #10"
4788 html: "<html><head></head><body></body>"
4790 expected: "| <html>\n| <head>\n| <body>\n"
4792 name: "tests1.dat #11"
4793 html: "<html><head><body></body></html>"
4795 expected: "| <html>\n| <head>\n| <body>\n"
4797 name: "tests1.dat #12"
4798 html: "<html><head></body></html>"
4800 expected: "| <html>\n| <head>\n| <body>\n"
4802 name: "tests1.dat #13"
4803 html: "<html><head><body></html>"
4805 expected: "| <html>\n| <head>\n| <body>\n"
4807 name: "tests1.dat #14"
4808 html: "<html><body></html>"
4810 expected: "| <html>\n| <head>\n| <body>\n"
4812 name: "tests1.dat #15"
4813 html: "<body></html>"
4815 expected: "| <html>\n| <head>\n| <body>\n"
4817 name: "tests1.dat #16"
4818 html: "<head></html>"
4820 expected: "| <html>\n| <head>\n| <body>\n"
4822 name: "tests1.dat #17"
4825 expected: "| <html>\n| <head>\n| <body>\n"
4827 name: "tests1.dat #18"
4830 expected: "| <html>\n| <head>\n| <body>\n"
4832 name: "tests1.dat #19"
4835 expected: "| <html>\n| <head>\n| <body>\n"
4837 name: "tests1.dat #20"
4838 html: "<b><table><td><i></table>"
4840 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <i>\n"
4842 name: "tests1.dat #21"
4843 html: "<b><table><td></b><i></table>X"
4845 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <i>\n| \"X\"\n"
4847 name: "tests1.dat #22"
4848 html: "<h1>Hello<h2>World"
4850 expected: "| <html>\n| <head>\n| <body>\n| <h1>\n| \"Hello\"\n| <h2>\n| \"World\"\n"
4852 name: "tests1.dat #23"
4853 html: "<a><p>X<a>Y</a>Z</p></a>"
4855 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <p>\n| <a>\n| \"X\"\n| <a>\n| \"Y\"\n| \"Z\"\n"
4857 name: "tests1.dat #24"
4858 html: "<b><button>foo</b>bar"
4860 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <button>\n| <b>\n| \"foo\"\n| \"bar\"\n"
4862 name: "tests1.dat #25"
4863 html: "<!DOCTYPE html><span><button>foo</span>bar"
4865 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <span>\n| <button>\n| \"foobar\"\n"
4867 name: "tests1.dat #26"
4868 html: "<p><b><div><marquee></p></b></div>X"
4870 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <div>\n| <b>\n| <marquee>\n| <p>\n| \"X\"\n"
4872 name: "tests1.dat #27"
4873 html: "<script><div></script></div><title><p></title><p><p>"
4875 expected: "| <html>\n| <head>\n| <script>\n| \"<div>\"\n| <title>\n| \"<p>\"\n| <body>\n| <p>\n| <p>\n"
4877 name: "tests1.dat #28"
4878 html: "<!--><div>--<!-->"
4880 expected: "| <!-- -->\n| <html>\n| <head>\n| <body>\n| <div>\n| \"--\"\n| <!-- -->\n"
4882 name: "tests1.dat #29"
4885 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <hr>\n| <p>\n"
4887 name: "tests1.dat #30"
4888 html: "<select><b><option><select><option></b></select>X"
4890 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| <option>\n| \"X\"\n"
4892 name: "tests1.dat #31"
4893 html: "<a><table><td><a><table></table><a></tr><a></table><b>X</b>C<a>Y"
4895 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"
4897 name: "tests1.dat #32"
4898 html: "<a X>0<b>1<a Y>2"
4900 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"
4902 name: "tests1.dat #33"
4903 html: "<!-----><font><div>hello<table>excite!<b>me!<th><i>please!</tr><!--X-->"
4905 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"
4907 name: "tests1.dat #34"
4908 html: "<!DOCTYPE html><li>hello<li>world<ul>how<li>do</ul>you</body><!--do-->"
4909 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"
4911 name: "tests1.dat #35"
4912 html: "<!DOCTYPE html>A<option>B<optgroup>C<select>D</option>E"
4914 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"A\"\n| <option>\n| \"B\"\n| <optgroup>\n| \"C\"\n| <select>\n| \"DE\"\n"
4916 name: "tests1.dat #36"
4919 expected: "| <html>\n| <head>\n| <body>\n| \"<\"\n"
4921 name: "tests1.dat #37"
4924 expected: "| <html>\n| <head>\n| <body>\n| \"<#\"\n"
4926 name: "tests1.dat #38"
4929 expected: "| <html>\n| <head>\n| <body>\n| \"</\"\n"
4931 name: "tests1.dat #39"
4934 expected: "| <!-- # -->\n| <html>\n| <head>\n| <body>\n"
4936 name: "tests1.dat #40"
4939 expected: "| <!-- ? -->\n| <html>\n| <head>\n| <body>\n"
4941 name: "tests1.dat #41"
4944 expected: "| <!-- ?# -->\n| <html>\n| <head>\n| <body>\n"
4946 name: "tests1.dat #42"
4949 expected: "| <!-- -->\n| <html>\n| <head>\n| <body>\n"
4951 name: "tests1.dat #43"
4954 expected: "| <!-- # -->\n| <html>\n| <head>\n| <body>\n"
4956 name: "tests1.dat #44"
4959 expected: "| <!-- ?COMMENT? -->\n| <html>\n| <head>\n| <body>\n"
4961 name: "tests1.dat #45"
4964 expected: "| <!-- COMMENT -->\n| <html>\n| <head>\n| <body>\n"
4966 name: "tests1.dat #46"
4967 html: "</ COMMENT >"
4969 expected: "| <!-- COMMENT -->\n| <html>\n| <head>\n| <body>\n"
4971 name: "tests1.dat #47"
4972 html: "<?COM--MENT?>"
4974 expected: "| <!-- ?COM--MENT? -->\n| <html>\n| <head>\n| <body>\n"
4976 name: "tests1.dat #48"
4977 html: "<!COM--MENT>"
4979 expected: "| <!-- COM--MENT -->\n| <html>\n| <head>\n| <body>\n"
4981 name: "tests1.dat #49"
4982 html: "</ COM--MENT >"
4984 expected: "| <!-- COM--MENT -->\n| <html>\n| <head>\n| <body>\n"
4986 name: "tests1.dat #50"
4987 html: "<!DOCTYPE html><style> EOF"
4989 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <style>\n| \" EOF\"\n| <body>\n"
4991 name: "tests1.dat #51"
4992 html: "<!DOCTYPE html><script> <!-- </script> --> </script> EOF"
4994 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \" <!-- \"\n| \" \"\n| <body>\n| \"--> EOF\"\n"
4996 name: "tests1.dat #52"
4997 html: "<b><p></b>TEST"
4999 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <p>\n| <b>\n| \"TEST\"\n"
5001 name: "tests1.dat #53"
5002 html: "<p id=a><b><p id=b></b>TEST"
5004 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| id=\"a\"\n| <b>\n| <p>\n| id=\"b\"\n| \"TEST\"\n"
5006 name: "tests1.dat #54"
5007 html: "<b id=a><p><b id=b></p></b>TEST"
5009 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| id=\"a\"\n| <p>\n| <b>\n| id=\"b\"\n| \"TEST\"\n"
5011 name: "tests1.dat #55"
5012 html: "<!DOCTYPE html><title>U-test</title><body><div><p>Test<u></p></div></body>"
5014 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"U-test\"\n| <body>\n| <div>\n| <p>\n| \"Test\"\n| <u>\n"
5016 name: "tests1.dat #56"
5017 html: "<!DOCTYPE html><font><table></font></table></font>"
5019 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <font>\n| <table>\n"
5021 name: "tests1.dat #57"
5022 html: "<font><p>hello<b>cruel</font>world"
5024 expected: "| <html>\n| <head>\n| <body>\n| <font>\n| <p>\n| <font>\n| \"hello\"\n| <b>\n| \"cruel\"\n| <b>\n| \"world\"\n"
5026 name: "tests1.dat #58"
5027 html: "<b>Test</i>Test"
5029 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| \"TestTest\"\n"
5031 name: "tests1.dat #59"
5032 html: "<b>A<cite>B<div>C"
5034 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| \"A\"\n| <cite>\n| \"B\"\n| <div>\n| \"C\"\n"
5036 name: "tests1.dat #60"
5037 html: "<b>A<cite>B<div>C</cite>D"
5039 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| \"A\"\n| <cite>\n| \"B\"\n| <div>\n| \"CD\"\n"
5041 name: "tests1.dat #61"
5042 html: "<b>A<cite>B<div>C</b>D"
5044 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| \"A\"\n| <cite>\n| \"B\"\n| <div>\n| <b>\n| \"C\"\n| \"D\"\n"
5046 name: "tests1.dat #62"
5049 expected: "| <html>\n| <head>\n| <body>\n"
5051 name: "tests1.dat #63"
5054 expected: "| <html>\n| <head>\n| <body>\n| <div>\n"
5056 name: "tests1.dat #64"
5059 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc\"\n"
5061 name: "tests1.dat #65"
5062 html: "<DIV> abc <B>"
5064 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n"
5066 name: "tests1.dat #66"
5067 html: "<DIV> abc <B> def"
5069 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def\"\n"
5071 name: "tests1.dat #67"
5072 html: "<DIV> abc <B> def <I>"
5074 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n"
5076 name: "tests1.dat #68"
5077 html: "<DIV> abc <B> def <I> ghi"
5079 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n| \" ghi\"\n"
5081 name: "tests1.dat #69"
5082 html: "<DIV> abc <B> def <I> ghi <P>"
5084 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n| \" ghi \"\n| <p>\n"
5086 name: "tests1.dat #70"
5087 html: "<DIV> abc <B> def <I> ghi <P> jkl"
5089 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \" abc \"\n| <b>\n| \" def \"\n| <i>\n| \" ghi \"\n| <p>\n| \" jkl\"\n"
5091 name: "tests1.dat #71"
5092 html: "<DIV> abc <B> def <I> ghi <P> jkl </B>"
5094 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"
5096 name: "tests1.dat #72"
5097 html: "<DIV> abc <B> def <I> ghi <P> jkl </B> mno"
5099 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"
5101 name: "tests1.dat #73"
5102 html: "<DIV> abc <B> def <I> ghi <P> jkl </B> mno </I>"
5104 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"
5106 name: "tests1.dat #74"
5107 html: "<DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> pqr"
5109 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"
5111 name: "tests1.dat #75"
5112 html: "<DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> pqr </P>"
5114 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"
5116 name: "tests1.dat #76"
5117 html: "<DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> pqr </P> stu"
5119 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"
5121 name: "tests1.dat #77"
5122 html: "<test attribute---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->"
5124 expected: "| <html>\n| <head>\n| <body>\n| <test>\n| attribute----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------=\"\"\n"
5126 name: "tests1.dat #78"
5127 html: "<a href=\"blah\">aba<table><a href=\"foo\">br<tr><td></td></tr>x</table>aoe"
5129 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"
5131 name: "tests1.dat #79"
5132 html: "<a href=\"blah\">aba<table><tr><td><a href=\"foo\">br</td></tr>x</table>aoe"
5134 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"
5136 name: "tests1.dat #80"
5137 html: "<table><a href=\"blah\">aba<tr><td><a href=\"foo\">br</td></tr>x</table>aoe"
5139 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"
5141 name: "tests1.dat #81"
5142 html: "<a href=a>aa<marquee>aa<a href=b>bb</marquee>aa"
5144 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"
5146 name: "tests1.dat #82"
5147 html: "<wbr><strike><code></strike><code><strike></code>"
5149 expected: "| <html>\n| <head>\n| <body>\n| <wbr>\n| <strike>\n| <code>\n| <code>\n| <code>\n| <strike>\n"
5151 name: "tests1.dat #83"
5152 html: "<!DOCTYPE html><spacer>foo"
5154 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <spacer>\n| \"foo\"\n"
5156 name: "tests1.dat #84"
5157 html: "<title><meta></title><link><title><meta></title>"
5159 expected: "| <html>\n| <head>\n| <title>\n| \"<meta>\"\n| <link>\n| <title>\n| \"<meta>\"\n| <body>\n"
5161 name: "tests1.dat #85"
5162 html: "<style><!--</style><meta><script>--><link></script>"
5164 expected: "| <html>\n| <head>\n| <style>\n| \"<!--\"\n| <meta>\n| <script>\n| \"--><link>\"\n| <body>\n"
5166 name: "tests1.dat #86"
5167 html: "<head><meta></head><link>"
5169 expected: "| <html>\n| <head>\n| <meta>\n| <link>\n| <body>\n"
5171 name: "tests1.dat #87"
5172 html: "<table><tr><tr><td><td><span><th><span>X</table>"
5174 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"
5176 name: "tests1.dat #88"
5177 html: "<body><body><base><link><meta><title><p></title><body><p></body>"
5179 expected: "| <html>\n| <head>\n| <body>\n| <base>\n| <link>\n| <meta>\n| <title>\n| \"<p>\"\n| <p>\n"
5181 name: "tests1.dat #89"
5182 html: "<textarea><p></textarea>"
5184 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \"<p>\"\n"
5186 name: "tests1.dat #90"
5187 html: "<p><image></p>"
5189 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <img>\n"
5191 name: "tests1.dat #91"
5192 html: "<a><table><a></table><p><a><div><a>"
5194 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <a>\n| <table>\n| <p>\n| <a>\n| <div>\n| <a>\n"
5196 name: "tests1.dat #92"
5197 html: "<head></p><meta><p>"
5199 expected: "| <html>\n| <head>\n| <meta>\n| <body>\n| <p>\n"
5201 name: "tests1.dat #93"
5202 html: "<head></html><meta><p>"
5204 expected: "| <html>\n| <head>\n| <body>\n| <meta>\n| <p>\n"
5206 name: "tests1.dat #94"
5207 html: "<b><table><td><i></table>"
5209 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <i>\n"
5211 name: "tests1.dat #95"
5212 html: "<b><table><td></b><i></table>"
5214 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <i>\n"
5216 name: "tests1.dat #96"
5219 expected: "| <html>\n| <head>\n| <body>\n| <h1>\n| <h2>\n"
5221 name: "tests1.dat #97"
5222 html: "<a><p><a></a></p></a>"
5224 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <p>\n| <a>\n| <a>\n"
5226 name: "tests1.dat #98"
5227 html: "<b><button></b></button></b>"
5229 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <button>\n| <b>\n"
5231 name: "tests1.dat #99"
5232 html: "<p><b><div><marquee></p></b></div>"
5234 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <div>\n| <b>\n| <marquee>\n| <p>\n"
5236 name: "tests1.dat #100"
5237 html: "<script></script></div><title></title><p><p>"
5239 expected: "| <html>\n| <head>\n| <script>\n| <title>\n| <body>\n| <p>\n| <p>\n"
5241 name: "tests1.dat #101"
5244 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <hr>\n| <p>\n"
5246 name: "tests1.dat #102"
5247 html: "<select><b><option><select><option></b></select>"
5249 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| <option>\n"
5251 name: "tests1.dat #103"
5252 html: "<html><head><title></title><body></body></html>"
5254 expected: "| <html>\n| <head>\n| <title>\n| <body>\n"
5256 name: "tests1.dat #104"
5257 html: "<a><table><td><a><table></table><a></tr><a></table><a>"
5259 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"
5261 name: "tests1.dat #105"
5262 html: "<ul><li></li><div><li></div><li><li><div><li><address><li><b><em></b><li></ul>"
5264 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"
5266 name: "tests1.dat #106"
5267 html: "<ul><li><ul></li><li>a</li></ul></li></ul>"
5269 expected: "| <html>\n| <head>\n| <body>\n| <ul>\n| <li>\n| <ul>\n| <li>\n| \"a\"\n"
5271 name: "tests1.dat #107"
5272 html: "<frameset><frame><frameset><frame></frameset><noframes></noframes></frameset>"
5274 expected: "| <html>\n| <head>\n| <frameset>\n| <frame>\n| <frameset>\n| <frame>\n| <noframes>\n"
5276 name: "tests1.dat #108"
5277 html: "<h1><table><td><h3></table><h3></h1>"
5279 expected: "| <html>\n| <head>\n| <body>\n| <h1>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <h3>\n| <h3>\n"
5281 name: "tests1.dat #109"
5282 html: "<table><colgroup><col><colgroup><col><col><col><colgroup><col><col><thead><tr><td></table>"
5284 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"
5286 name: "tests1.dat #110"
5287 html: "<table><col><tbody><col><tr><col><td><col></table><col>"
5289 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"
5291 name: "tests1.dat #111"
5292 html: "<table><colgroup><tbody><colgroup><tr><colgroup><td><colgroup></table><colgroup>"
5294 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"
5296 name: "tests1.dat #112"
5297 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>"
5299 expected: "| <html>\n| <head>\n| <body>\n| <br>\n| <p>\n"
5301 name: "tests1.dat #113"
5302 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>"
5304 expected: "| <html>\n| <head>\n| <body>\n| <br>\n| <table>\n| <tbody>\n| <tr>\n| <p>\n"
5306 name: "tests1.dat #114"
5309 expected: "| <html>\n| <head>\n| <frameset>\n"
5311 name: "tests20.dat #1"
5312 html: "<!doctype html><p><button><button>"
5314 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <button>\n"
5316 name: "tests20.dat #2"
5317 html: "<!doctype html><p><button><address>"
5319 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <address>\n"
5321 name: "tests20.dat #3"
5322 html: "<!doctype html><p><button><blockquote>"
5324 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <blockquote>\n"
5326 name: "tests20.dat #4"
5327 html: "<!doctype html><p><button><menu>"
5329 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <menu>\n"
5331 name: "tests20.dat #5"
5332 html: "<!doctype html><p><button><p>"
5334 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <p>\n"
5336 name: "tests20.dat #6"
5337 html: "<!doctype html><p><button><ul>"
5339 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <ul>\n"
5341 name: "tests20.dat #7"
5342 html: "<!doctype html><p><button><h1>"
5344 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <h1>\n"
5346 name: "tests20.dat #8"
5347 html: "<!doctype html><p><button><h6>"
5349 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <h6>\n"
5351 name: "tests20.dat #9"
5352 html: "<!doctype html><p><button><listing>"
5354 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <listing>\n"
5356 name: "tests20.dat #10"
5357 html: "<!doctype html><p><button><pre>"
5359 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <pre>\n"
5361 name: "tests20.dat #11"
5362 html: "<!doctype html><p><button><form>"
5364 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <form>\n"
5366 name: "tests20.dat #12"
5367 html: "<!doctype html><p><button><li>"
5369 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <li>\n"
5371 name: "tests20.dat #13"
5372 html: "<!doctype html><p><button><dd>"
5374 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <dd>\n"
5376 name: "tests20.dat #14"
5377 html: "<!doctype html><p><button><dt>"
5379 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <dt>\n"
5381 name: "tests20.dat #15"
5382 html: "<!doctype html><p><button><plaintext>"
5384 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <plaintext>\n"
5386 name: "tests20.dat #16"
5387 html: "<!doctype html><p><button><table>"
5389 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <table>\n"
5391 name: "tests20.dat #17"
5392 html: "<!doctype html><p><button><hr>"
5394 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <hr>\n"
5396 name: "tests20.dat #18"
5397 html: "<!doctype html><p><button><xmp>"
5399 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <xmp>\n"
5401 name: "tests20.dat #19"
5402 html: "<!doctype html><p><button></p>"
5404 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <button>\n| <p>\n"
5406 name: "tests20.dat #20"
5407 html: "<!doctype html><address><button></address>a"
5409 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <address>\n| <button>\n| \"a\"\n"
5411 name: "tests20.dat #21"
5412 html: "<!doctype html><address><button></address>a"
5414 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <address>\n| <button>\n| \"a\"\n"
5416 name: "tests20.dat #22"
5417 html: "<p><table></p>"
5419 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <p>\n| <table>\n"
5421 name: "tests20.dat #23"
5422 html: "<!doctype html><svg>"
5424 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n"
5426 name: "tests20.dat #24"
5427 html: "<!doctype html><p><figcaption>"
5429 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <figcaption>\n"
5431 name: "tests20.dat #25"
5432 html: "<!doctype html><p><summary>"
5434 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <summary>\n"
5436 name: "tests20.dat #26"
5437 html: "<!doctype html><form><table><form>"
5439 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <form>\n| <table>\n"
5441 name: "tests20.dat #27"
5442 html: "<!doctype html><table><form><form>"
5444 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <form>\n"
5446 name: "tests20.dat #28"
5447 html: "<!doctype html><table><form></table><form>"
5449 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <form>\n"
5451 name: "tests20.dat #29"
5452 html: "<!doctype html><svg><foreignObject><p>"
5454 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg foreignObject>\n| <p>\n"
5456 name: "tests20.dat #30"
5457 html: "<!doctype html><svg><title>abc"
5459 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg title>\n| \"abc\"\n"
5461 name: "tests20.dat #31"
5462 html: "<option><span><option>"
5464 expected: "| <html>\n| <head>\n| <body>\n| <option>\n| <span>\n| <option>\n"
5466 name: "tests20.dat #32"
5467 html: "<option><option>"
5469 expected: "| <html>\n| <head>\n| <body>\n| <option>\n| <option>\n"
5471 name: "tests20.dat #33"
5472 html: "<math><annotation-xml><div>"
5474 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| <div>\n"
5476 name: "tests20.dat #34"
5477 html: "<math><annotation-xml encoding=\"application/svg+xml\"><div>"
5479 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| encoding=\"application/svg+xml\"\n| <div>\n"
5481 name: "tests20.dat #35"
5482 html: "<math><annotation-xml encoding=\"application/xhtml+xml\"><div>"
5484 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| encoding=\"application/xhtml+xml\"\n| <div>\n"
5486 name: "tests20.dat #36"
5487 html: "<math><annotation-xml encoding=\"aPPlication/xhtmL+xMl\"><div>"
5489 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| encoding=\"aPPlication/xhtmL+xMl\"\n| <div>\n"
5491 name: "tests20.dat #37"
5492 html: "<math><annotation-xml encoding=\"text/html\"><div>"
5494 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| encoding=\"text/html\"\n| <div>\n"
5496 name: "tests20.dat #38"
5497 html: "<math><annotation-xml encoding=\"Text/htmL\"><div>"
5499 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| encoding=\"Text/htmL\"\n| <div>\n"
5501 name: "tests20.dat #39"
5502 html: "<math><annotation-xml encoding=\" text/html \"><div>"
5504 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| encoding=\" text/html \"\n| <div>\n"
5506 name: "tests21.dat #1"
5507 html: "<svg><![CDATA[foo]]>"
5509 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo\"\n"
5511 name: "tests21.dat #2"
5512 html: "<math><![CDATA[foo]]>"
5514 expected: "| <html>\n| <head>\n| <body>\n| <math math>\n| \"foo\"\n"
5516 name: "tests21.dat #3"
5517 html: "<div><![CDATA[foo]]>"
5519 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <!-- [CDATA[foo]] -->\n"
5521 name: "tests21.dat #4"
5522 html: "<svg><![CDATA[foo"
5524 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo\"\n"
5526 name: "tests21.dat #5"
5527 html: "<svg><![CDATA[foo"
5529 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo\"\n"
5531 name: "tests21.dat #6"
5532 html: "<svg><![CDATA["
5534 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n"
5536 name: "tests21.dat #7"
5537 html: "<svg><![CDATA[]]>"
5539 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n"
5541 name: "tests21.dat #8"
5542 html: "<svg><![CDATA[]] >]]>"
5544 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"]] >\"\n"
5546 name: "tests21.dat #9"
5547 html: "<svg><![CDATA[]] >]]>"
5549 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"]] >\"\n"
5551 name: "tests21.dat #10"
5552 html: "<svg><![CDATA[]]"
5554 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"]]\"\n"
5556 name: "tests21.dat #11"
5557 html: "<svg><![CDATA[]"
5559 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"]\"\n"
5561 name: "tests21.dat #12"
5562 html: "<svg><![CDATA[]>a"
5564 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"]>a\"\n"
5566 name: "tests21.dat #13"
5567 html: "<!DOCTYPE html><svg><![CDATA[foo]]]>"
5569 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo]\"\n"
5571 name: "tests21.dat #14"
5572 html: "<!DOCTYPE html><svg><![CDATA[foo]]]]>"
5574 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo]]\"\n"
5576 name: "tests21.dat #15"
5577 html: "<!DOCTYPE html><svg><![CDATA[foo]]]]]>"
5579 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"foo]]]\"\n"
5581 name: "tests21.dat #16"
5582 html: "<svg><foreignObject><div><![CDATA[foo]]>"
5584 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg foreignObject>\n| <div>\n| <!-- [CDATA[foo]] -->\n"
5586 name: "tests21.dat #17"
5587 html: "<svg><![CDATA[<svg>]]>"
5589 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<svg>\"\n"
5591 name: "tests21.dat #18"
5592 html: "<svg><![CDATA[</svg>a]]>"
5594 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"</svg>a\"\n"
5596 name: "tests21.dat #19"
5597 html: "<svg><![CDATA[<svg>a"
5599 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<svg>a\"\n"
5601 name: "tests21.dat #20"
5602 html: "<svg><![CDATA[</svg>a"
5604 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"</svg>a\"\n"
5606 name: "tests21.dat #21"
5607 html: "<svg><![CDATA[<svg>]]><path>"
5609 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<svg>\"\n| <svg path>\n"
5611 name: "tests21.dat #22"
5612 html: "<svg><![CDATA[<svg>]]></path>"
5614 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<svg>\"\n"
5616 name: "tests21.dat #23"
5617 html: "<svg><![CDATA[<svg>]]><!--path-->"
5619 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<svg>\"\n| <!-- path -->\n"
5621 name: "tests21.dat #24"
5622 html: "<svg><![CDATA[<svg>]]>path"
5624 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<svg>path\"\n"
5626 name: "tests21.dat #25"
5627 html: "<svg><![CDATA[<!--svg-->]]>"
5629 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| \"<!--svg-->\"\n"
5631 name: "tests22.dat #1"
5632 html: "<a><b><big><em><strong><div>X</a>"
5634 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"
5636 name: "tests22.dat #2"
5637 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>"
5639 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"
5641 name: "tests22.dat #3"
5642 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>"
5644 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"
5646 name: "tests22.dat #4"
5647 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>"
5649 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"
5651 name: "tests22.dat #5"
5652 html: "<cite><b><cite><i><cite><i><cite><i><div>X</b>TEST"
5654 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"
5656 name: "tests23.dat #1"
5657 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"
5659 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"
5661 name: "tests23.dat #2"
5662 html: "<p><font size=4><font size=4><font size=4><font size=4><p>X"
5664 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"
5666 name: "tests23.dat #3"
5667 html: "<p><font size=4><font size=4><font size=4><font size=\"5\"><font size=4><p>X"
5669 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"
5671 name: "tests23.dat #4"
5672 html: "<p><font size=4 id=a><font size=4 id=b><font size=4><font size=4><p>X"
5674 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"
5676 name: "tests23.dat #5"
5677 html: "<p><b id=a><b id=a><b id=a><b><object><b id=a><b id=a>X</object><p>Y"
5679 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"
5681 name: "tests24.dat #1"
5682 html: "<!DOCTYPE html>≂̸"
5683 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"≂̸\"\n"
5685 name: "tests24.dat #2"
5686 html: "<!DOCTYPE html>≂̸A"
5687 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"≂̸A\"\n"
5689 name: "tests24.dat #3"
5690 html: "<!DOCTYPE html>  "
5691 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" \"\n"
5693 name: "tests24.dat #4"
5694 html: "<!DOCTYPE html>  A"
5695 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" A\"\n"
5697 name: "tests24.dat #5"
5698 html: "<!DOCTYPE html>⊂⃒"
5699 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"⊂⃒\"\n"
5701 name: "tests24.dat #6"
5702 html: "<!DOCTYPE html>⊂⃒A"
5703 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"⊂⃒A\"\n"
5705 name: "tests24.dat #7"
5706 html: "<!DOCTYPE html>𝔾"
5707 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"𝔾\"\n"
5709 name: "tests24.dat #8"
5710 html: "<!DOCTYPE html>𝔾A"
5711 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"𝔾A\"\n"
5713 name: "tests25.dat #1"
5714 html: "<!DOCTYPE html><body><foo>A"
5716 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <foo>\n| \"A\"\n"
5718 name: "tests25.dat #2"
5719 html: "<!DOCTYPE html><body><area>A"
5720 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <area>\n| \"A\"\n"
5722 name: "tests25.dat #3"
5723 html: "<!DOCTYPE html><body><base>A"
5724 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <base>\n| \"A\"\n"
5726 name: "tests25.dat #4"
5727 html: "<!DOCTYPE html><body><basefont>A"
5728 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <basefont>\n| \"A\"\n"
5730 name: "tests25.dat #5"
5731 html: "<!DOCTYPE html><body><bgsound>A"
5732 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <bgsound>\n| \"A\"\n"
5734 name: "tests25.dat #6"
5735 html: "<!DOCTYPE html><body><br>A"
5736 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <br>\n| \"A\"\n"
5738 name: "tests25.dat #7"
5739 html: "<!DOCTYPE html><body><col>A"
5741 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"A\"\n"
5743 name: "tests25.dat #8"
5744 html: "<!DOCTYPE html><body><command>A"
5746 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <command>\n| \"A\"\n"
5748 name: "tests25.dat #9"
5749 html: "<!DOCTYPE html><body><menuitem>A"
5750 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <menuitem>\n| \"A\"\n"
5752 name: "tests25.dat #10"
5753 html: "<!DOCTYPE html><body><embed>A"
5754 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <embed>\n| \"A\"\n"
5756 name: "tests25.dat #11"
5757 html: "<!DOCTYPE html><body><frame>A"
5759 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"A\"\n"
5761 name: "tests25.dat #12"
5762 html: "<!DOCTYPE html><body><hr>A"
5763 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <hr>\n| \"A\"\n"
5765 name: "tests25.dat #13"
5766 html: "<!DOCTYPE html><body><img>A"
5767 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <img>\n| \"A\"\n"
5769 name: "tests25.dat #14"
5770 html: "<!DOCTYPE html><body><input>A"
5771 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <input>\n| \"A\"\n"
5773 name: "tests25.dat #15"
5774 html: "<!DOCTYPE html><body><keygen>A"
5775 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <keygen>\n| \"A\"\n"
5777 name: "tests25.dat #16"
5778 html: "<!DOCTYPE html><body><link>A"
5779 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <link>\n| \"A\"\n"
5781 name: "tests25.dat #17"
5782 html: "<!DOCTYPE html><body><meta>A"
5783 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <meta>\n| \"A\"\n"
5785 name: "tests25.dat #18"
5786 html: "<!DOCTYPE html><body><param>A"
5787 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <param>\n| \"A\"\n"
5789 name: "tests25.dat #19"
5790 html: "<!DOCTYPE html><body><source>A"
5791 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <source>\n| \"A\"\n"
5793 name: "tests25.dat #20"
5794 html: "<!DOCTYPE html><body><track>A"
5795 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <track>\n| \"A\"\n"
5797 name: "tests25.dat #21"
5798 html: "<!DOCTYPE html><body><wbr>A"
5799 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <wbr>\n| \"A\"\n"
5801 name: "tests26.dat #1"
5802 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>"
5804 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"
5806 name: "tests26.dat #2"
5807 html: "<!DOCTYPE html><body><b><nobr>1<nobr></b><i><nobr>2<nobr></i>3"
5809 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"
5811 name: "tests26.dat #3"
5812 html: "<!DOCTYPE html><body><b><nobr>1<table><nobr></b><i><nobr>2<nobr></i>3"
5814 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"
5816 name: "tests26.dat #4"
5817 html: "<!DOCTYPE html><body><b><nobr>1<table><tr><td><nobr></b><i><nobr>2<nobr></i>3"
5819 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"
5821 name: "tests26.dat #5"
5822 html: "<!DOCTYPE html><body><b><nobr>1<div><nobr></b><i><nobr>2<nobr></i>3"
5824 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"
5826 name: "tests26.dat #6"
5827 html: "<!DOCTYPE html><body><b><nobr>1<nobr></b><div><i><nobr>2<nobr></i>3"
5829 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"
5831 name: "tests26.dat #7"
5832 html: "<!DOCTYPE html><body><b><nobr>1<nobr><ins></b><i><nobr>"
5834 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"
5836 name: "tests26.dat #8"
5837 html: "<!DOCTYPE html><body><b><nobr>1<ins><nobr></b><i>2"
5839 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"
5841 name: "tests26.dat #9"
5842 html: "<!DOCTYPE html><body><b>1<nobr></b><i><nobr>2</i>"
5844 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"
5846 name: "tests26.dat #10"
5847 html: "<p><code x</code></p>\n"
5849 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <code>\n| code=\"\"\n| x<=\"\"\n| <code>\n| code=\"\"\n| x<=\"\"\n| \"\n\"\n"
5851 name: "tests26.dat #11"
5852 html: "<!DOCTYPE html><svg><foreignObject><p><i></p>a"
5854 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg foreignObject>\n| <p>\n| <i>\n| <i>\n| \"a\"\n"
5856 name: "tests26.dat #12"
5857 html: "<!DOCTYPE html><table><tr><td><svg><foreignObject><p><i></p>a"
5859 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"
5861 name: "tests26.dat #13"
5862 html: "<!DOCTYPE html><math><mtext><p><i></p>a"
5864 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mtext>\n| <p>\n| <i>\n| <i>\n| \"a\"\n"
5866 name: "tests26.dat #14"
5867 html: "<!DOCTYPE html><table><tr><td><math><mtext><p><i></p>a"
5869 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"
5871 name: "tests26.dat #15"
5872 html: "<!DOCTYPE html><body><div><!/div>a"
5874 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <div>\n| <!-- /div -->\n| \"a\"\n"
5876 name: "tests26.dat #16"
5877 html: "<button><p><button>"
5879 expected: "| <html>\n| <head>\n| <body>\n| <button>\n| <p>\n| <button>\n"
5881 name: "tests2.dat #1"
5882 html: "<!DOCTYPE html>Test"
5883 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"Test\"\n"
5885 name: "tests2.dat #2"
5886 html: "<textarea>test</div>test"
5888 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \"test</div>test\"\n"
5890 name: "tests2.dat #3"
5893 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
5895 name: "tests2.dat #4"
5896 html: "<table><td>test</tbody></table>"
5898 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"test\"\n"
5900 name: "tests2.dat #5"
5903 expected: "| <html>\n| <head>\n| <body>\n| \"test\"\n"
5905 name: "tests2.dat #6"
5906 html: "<!DOCTYPE html><frameset>test"
5908 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
5910 name: "tests2.dat #7"
5911 html: "<!DOCTYPE html><frameset> te st"
5913 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| \" \"\n"
5915 name: "tests2.dat #8"
5916 html: "<!DOCTYPE html><frameset></frameset> te st"
5918 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n| \" \"\n"
5920 name: "tests2.dat #9"
5921 html: "<!DOCTYPE html><frameset><!DOCTYPE html>"
5923 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
5925 name: "tests2.dat #10"
5926 html: "<!DOCTYPE html><font><p><b>test</font>"
5928 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <font>\n| <p>\n| <font>\n| <b>\n| \"test\"\n"
5930 name: "tests2.dat #11"
5931 html: "<!DOCTYPE html><dt><div><dd>"
5933 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <dt>\n| <div>\n| <dd>\n"
5935 name: "tests2.dat #12"
5938 expected: "| <html>\n| <head>\n| <script>\n| \"</x\"\n| <body>\n"
5940 name: "tests2.dat #13"
5941 html: "<table><plaintext><td>"
5943 expected: "| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"<td>\"\n| <table>\n"
5945 name: "tests2.dat #14"
5946 html: "<plaintext></plaintext>"
5948 expected: "| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"</plaintext>\"\n"
5950 name: "tests2.dat #15"
5951 html: "<!DOCTYPE html><table><tr>TEST"
5953 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"TEST\"\n| <table>\n| <tbody>\n| <tr>\n"
5955 name: "tests2.dat #16"
5956 html: "<!DOCTYPE html><body t1=1><body t2=2><body t3=3 t4=4>"
5958 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| t1=\"1\"\n| t2=\"2\"\n| t3=\"3\"\n| t4=\"4\"\n"
5960 name: "tests2.dat #17"
5963 expected: "| <html>\n| <head>\n| <body>\n"
5965 name: "tests2.dat #18"
5966 html: "<!DOCTYPE html></b test<b &=&>X"
5968 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"X\"\n"
5970 name: "tests2.dat #19"
5971 html: "<!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt"
5973 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| type=\"text/x-foobar;baz\"\n| \"X</SCRipt\"\n| <body>\n"
5975 name: "tests2.dat #20"
5978 expected: "| <html>\n| <head>\n| <body>\n| \"&\"\n"
5980 name: "tests2.dat #21"
5983 expected: "| <html>\n| <head>\n| <body>\n| \"&#\"\n"
5985 name: "tests2.dat #22"
5988 expected: "| <html>\n| <head>\n| <body>\n| \"&#X\"\n"
5990 name: "tests2.dat #23"
5993 expected: "| <html>\n| <head>\n| <body>\n| \"&#x\"\n"
5995 name: "tests2.dat #24"
5998 expected: "| <html>\n| <head>\n| <body>\n| \"-\"\n"
6000 name: "tests2.dat #25"
6003 expected: "| <html>\n| <head>\n| <body>\n| \"&x-test\"\n"
6005 name: "tests2.dat #26"
6006 html: "<!doctypehtml><p><li>"
6008 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <li>\n"
6010 name: "tests2.dat #27"
6011 html: "<!doctypehtml><p><dt>"
6013 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <dt>\n"
6015 name: "tests2.dat #28"
6016 html: "<!doctypehtml><p><dd>"
6018 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <dd>\n"
6020 name: "tests2.dat #29"
6021 html: "<!doctypehtml><p><form>"
6023 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <form>\n"
6025 name: "tests2.dat #30"
6026 html: "<!DOCTYPE html><p></P>X"
6027 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| \"X\"\n"
6029 name: "tests2.dat #31"
6032 expected: "| <html>\n| <head>\n| <body>\n| \"&\"\n"
6034 name: "tests2.dat #32"
6037 expected: "| <html>\n| <head>\n| <body>\n| \"&AMp;\"\n"
6039 name: "tests2.dat #33"
6040 html: "<!DOCTYPE html><html><head></head><body><thisISasillyTESTelementNameToMakeSureCrazyTagNamesArePARSEDcorrectLY>"
6042 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <thisisasillytestelementnametomakesurecrazytagnamesareparsedcorrectly>\n"
6044 name: "tests2.dat #34"
6045 html: "<!DOCTYPE html>X</body>X"
6047 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"XX\"\n"
6049 name: "tests2.dat #35"
6050 html: "<!DOCTYPE html><!-- X"
6052 expected: "| <!DOCTYPE html>\n| <!-- X -->\n| <html>\n| <head>\n| <body>\n"
6054 name: "tests2.dat #36"
6055 html: "<!DOCTYPE html><table><caption>test TEST</caption><td>test"
6057 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"
6059 name: "tests2.dat #37"
6060 html: "<!DOCTYPE html><select><option><optgroup>"
6062 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n| <optgroup>\n"
6064 name: "tests2.dat #38"
6065 html: "<!DOCTYPE html><select><optgroup><option></optgroup><option><select><option>"
6067 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <optgroup>\n| <option>\n| <option>\n| <option>\n"
6069 name: "tests2.dat #39"
6070 html: "<!DOCTYPE html><select><optgroup><option><optgroup>"
6072 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <optgroup>\n| <option>\n| <optgroup>\n"
6074 name: "tests2.dat #40"
6075 html: "<!DOCTYPE html><datalist><option>foo</datalist>bar"
6076 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <datalist>\n| <option>\n| \"foo\"\n| \"bar\"\n"
6078 name: "tests2.dat #41"
6079 html: "<!DOCTYPE html><font><input><input></font>"
6080 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <font>\n| <input>\n| <input>\n"
6082 name: "tests2.dat #42"
6083 html: "<!DOCTYPE html><!-- XXX - XXX -->"
6084 expected: "| <!DOCTYPE html>\n| <!-- XXX - XXX -->\n| <html>\n| <head>\n| <body>\n"
6086 name: "tests2.dat #43"
6087 html: "<!DOCTYPE html><!-- XXX - XXX"
6089 expected: "| <!DOCTYPE html>\n| <!-- XXX - XXX -->\n| <html>\n| <head>\n| <body>\n"
6091 name: "tests2.dat #44"
6092 html: "<!DOCTYPE html><!-- XXX - XXX - XXX -->"
6093 expected: "| <!DOCTYPE html>\n| <!-- XXX - XXX - XXX -->\n| <html>\n| <head>\n| <body>\n"
6095 name: "tests2.dat #45"
6096 html: "<isindex test=x name=x>"
6098 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"
6100 name: "tests2.dat #46"
6103 expected: "| <html>\n| <head>\n| <body>\n| \"test\ntest\"\n"
6105 name: "tests2.dat #47"
6106 html: "<!DOCTYPE html><body><title>test</body></title>"
6107 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <title>\n| \"test</body>\"\n"
6109 name: "tests2.dat #48"
6110 html: "<!DOCTYPE html><body><title>X</title><meta name=z><link rel=foo><style>\nx { content:\"</style\" } </style>"
6111 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"
6113 name: "tests2.dat #49"
6114 html: "<!DOCTYPE html><select><optgroup></optgroup></select>"
6115 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <optgroup>\n"
6117 name: "tests2.dat #50"
6120 expected: "| <html>\n| <head>\n| <body>\n"
6122 name: "tests2.dat #51"
6123 html: "<!DOCTYPE html> <html>"
6124 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
6126 name: "tests2.dat #52"
6127 html: "<!DOCTYPE html><script>\n</script> <title>x</title> </head>"
6128 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| \"\n\"\n| \" \"\n| <title>\n| \"x\"\n| \" \"\n| <body>\n"
6130 name: "tests2.dat #53"
6131 html: "<!DOCTYPE html><html><body><html id=x>"
6133 expected: "| <!DOCTYPE html>\n| <html>\n| id=\"x\"\n| <head>\n| <body>\n"
6135 name: "tests2.dat #54"
6136 html: "<!DOCTYPE html>X</body><html id=\"x\">"
6138 expected: "| <!DOCTYPE html>\n| <html>\n| id=\"x\"\n| <head>\n| <body>\n| \"X\"\n"
6140 name: "tests2.dat #55"
6141 html: "<!DOCTYPE html><head><html id=x>"
6143 expected: "| <!DOCTYPE html>\n| <html>\n| id=\"x\"\n| <head>\n| <body>\n"
6145 name: "tests2.dat #56"
6146 html: "<!DOCTYPE html>X</html>X"
6148 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"XX\"\n"
6150 name: "tests2.dat #57"
6151 html: "<!DOCTYPE html>X</html> "
6152 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"X \"\n"
6154 name: "tests2.dat #58"
6155 html: "<!DOCTYPE html>X</html><p>X"
6157 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"X\"\n| <p>\n| \"X\"\n"
6159 name: "tests2.dat #59"
6160 html: "<!DOCTYPE html>X<p/x/y/z>"
6162 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"X\"\n| <p>\n| x=\"\"\n| y=\"\"\n| z=\"\"\n"
6164 name: "tests2.dat #60"
6165 html: "<!DOCTYPE html><!--x--"
6167 expected: "| <!DOCTYPE html>\n| <!-- x -->\n| <html>\n| <head>\n| <body>\n"
6169 name: "tests2.dat #61"
6170 html: "<!DOCTYPE html><table><tr><td></p></table>"
6172 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <p>\n"
6174 name: "tests2.dat #62"
6175 html: "<!DOCTYPE <!DOCTYPE HTML>><!--<!--x-->-->"
6177 expected: "| <!DOCTYPE <!doctype>\n| <html>\n| <head>\n| <body>\n| \">\"\n| <!-- <!--x -->\n| \"-->\"\n"
6179 name: "tests2.dat #63"
6180 html: "<!doctype html><div><form></form><div></div></div>"
6181 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <div>\n| <form>\n| <div>\n"
6183 name: "tests3.dat #1"
6184 html: "<head></head><style></style>"
6186 expected: "| <html>\n| <head>\n| <style>\n| <body>\n"
6188 name: "tests3.dat #2"
6189 html: "<head></head><script></script>"
6191 expected: "| <html>\n| <head>\n| <script>\n| <body>\n"
6193 name: "tests3.dat #3"
6194 html: "<head></head><!-- --><style></style><!-- --><script></script>"
6196 expected: "| <html>\n| <head>\n| <style>\n| <script>\n| <!-- -->\n| <!-- -->\n| <body>\n"
6198 name: "tests3.dat #4"
6199 html: "<head></head><!-- -->x<style></style><!-- --><script></script>"
6201 expected: "| <html>\n| <head>\n| <!-- -->\n| <body>\n| \"x\"\n| <style>\n| <!-- -->\n| <script>\n"
6203 name: "tests3.dat #5"
6204 html: "<!DOCTYPE html><html><head></head><body><pre>\n</pre></body></html>"
6205 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n"
6207 name: "tests3.dat #6"
6208 html: "<!DOCTYPE html><html><head></head><body><pre>\nfoo</pre></body></html>"
6209 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"foo\"\n"
6211 name: "tests3.dat #7"
6212 html: "<!DOCTYPE html><html><head></head><body><pre>\n\nfoo</pre></body></html>"
6213 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"\nfoo\"\n"
6215 name: "tests3.dat #8"
6216 html: "<!DOCTYPE html><html><head></head><body><pre>\nfoo\n</pre></body></html>"
6217 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"foo\n\"\n"
6219 name: "tests3.dat #9"
6220 html: "<!DOCTYPE html><html><head></head><body><pre>x</pre><span>\n</span></body></html>"
6221 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\"\n| <span>\n| \"\n\"\n"
6223 name: "tests3.dat #10"
6224 html: "<!DOCTYPE html><html><head></head><body><pre>x\ny</pre></body></html>"
6225 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\ny\"\n"
6227 name: "tests3.dat #11"
6228 html: "<!DOCTYPE html><html><head></head><body><pre>x<div>\ny</pre></body></html>"
6230 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\"\n| <div>\n| \"\ny\"\n"
6232 name: "tests3.dat #12"
6233 html: "<!DOCTYPE html><pre>

A</pre>"
6234 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"\nA\"\n"
6236 name: "tests3.dat #13"
6237 html: "<!DOCTYPE html><HTML><META><HEAD></HEAD></HTML>"
6239 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <meta>\n| <body>\n"
6241 name: "tests3.dat #14"
6242 html: "<!DOCTYPE html><HTML><HEAD><head></HEAD></HTML>"
6244 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
6246 name: "tests3.dat #15"
6247 html: "<textarea>foo<span>bar</span><i>baz"
6249 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \"foo<span>bar</span><i>baz\"\n"
6251 name: "tests3.dat #16"
6252 html: "<title>foo<span>bar</em><i>baz"
6254 expected: "| <html>\n| <head>\n| <title>\n| \"foo<span>bar</em><i>baz\"\n| <body>\n"
6256 name: "tests3.dat #17"
6257 html: "<!DOCTYPE html><textarea>\n</textarea>"
6258 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n"
6260 name: "tests3.dat #18"
6261 html: "<!DOCTYPE html><textarea>\nfoo</textarea>"
6262 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"foo\"\n"
6264 name: "tests3.dat #19"
6265 html: "<!DOCTYPE html><textarea>\n\nfoo</textarea>"
6266 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"\nfoo\"\n"
6268 name: "tests3.dat #20"
6269 html: "<!DOCTYPE html><html><head></head><body><ul><li><div><p><li></ul></body></html>"
6271 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <ul>\n| <li>\n| <div>\n| <p>\n| <li>\n"
6273 name: "tests3.dat #21"
6274 html: "<!doctype html><nobr><nobr><nobr>"
6276 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <nobr>\n| <nobr>\n| <nobr>\n"
6278 name: "tests3.dat #22"
6279 html: "<!doctype html><nobr><nobr></nobr><nobr>"
6281 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <nobr>\n| <nobr>\n| <nobr>\n"
6283 name: "tests3.dat #23"
6284 html: "<!doctype html><html><body><p><table></table></body></html>"
6285 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <table>\n"
6287 name: "tests3.dat #24"
6288 html: "<p><table></table>"
6290 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <table>\n"
6292 name: "tests4.dat #1"
6293 html: "direct div content"
6295 expected: "| \"direct div content\"\n"
6297 name: "tests4.dat #2"
6298 html: "direct textarea content"
6299 fragment: "textarea"
6300 expected: "| \"direct textarea content\"\n"
6302 name: "tests4.dat #3"
6303 html: "textarea content with <em>pseudo</em> <foo>markup"
6304 fragment: "textarea"
6305 expected: "| \"textarea content with <em>pseudo</em> <foo>markup\"\n"
6307 name: "tests4.dat #4"
6308 html: "this is CDATA inside a <style> element"
6310 expected: "| \"this is CDATA inside a <style> element\"\n"
6312 name: "tests4.dat #5"
6313 html: "</plaintext>"
6314 fragment: "plaintext"
6315 expected: "| \"</plaintext>\"\n"
6317 name: "tests4.dat #6"
6318 html: "setting html's innerHTML"
6320 expected: "| <head>\n| <body>\n| \"setting html's innerHTML\"\n"
6322 name: "tests4.dat #7"
6323 html: "<title>setting head's innerHTML</title>"
6325 expected: "| <title>\n| \"setting head's innerHTML\"\n"
6327 name: "tests5.dat #1"
6328 html: "<style> <!-- </style>x"
6330 expected: "| <html>\n| <head>\n| <style>\n| \" <!-- \"\n| <body>\n| \"x\"\n"
6332 name: "tests5.dat #2"
6333 html: "<style> <!-- </style> --> </style>x"
6335 expected: "| <html>\n| <head>\n| <style>\n| \" <!-- \"\n| \" \"\n| <body>\n| \"--> x\"\n"
6337 name: "tests5.dat #3"
6338 html: "<style> <!--> </style>x"
6340 expected: "| <html>\n| <head>\n| <style>\n| \" <!--> \"\n| <body>\n| \"x\"\n"
6342 name: "tests5.dat #4"
6343 html: "<style> <!---> </style>x"
6345 expected: "| <html>\n| <head>\n| <style>\n| \" <!---> \"\n| <body>\n| \"x\"\n"
6347 name: "tests5.dat #5"
6348 html: "<iframe> <!---> </iframe>x"
6350 expected: "| <html>\n| <head>\n| <body>\n| <iframe>\n| \" <!---> \"\n| \"x\"\n"
6352 name: "tests5.dat #6"
6353 html: "<iframe> <!--- </iframe>->x</iframe> --> </iframe>x"
6355 expected: "| <html>\n| <head>\n| <body>\n| <iframe>\n| \" <!--- \"\n| \"->x --> x\"\n"
6357 name: "tests5.dat #7"
6358 html: "<script> <!-- </script> --> </script>x"
6360 expected: "| <html>\n| <head>\n| <script>\n| \" <!-- \"\n| \" \"\n| <body>\n| \"--> x\"\n"
6362 name: "tests5.dat #8"
6363 html: "<title> <!-- </title> --> </title>x"
6365 expected: "| <html>\n| <head>\n| <title>\n| \" <!-- \"\n| \" \"\n| <body>\n| \"--> x\"\n"
6367 name: "tests5.dat #9"
6368 html: "<textarea> <!--- </textarea>->x</textarea> --> </textarea>x"
6370 expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \" <!--- \"\n| \"->x --> x\"\n"
6372 name: "tests5.dat #10"
6373 html: "<style> <!</-- </style>x"
6375 expected: "| <html>\n| <head>\n| <style>\n| \" <!</-- \"\n| <body>\n| \"x\"\n"
6377 name: "tests5.dat #11"
6378 html: "<p><xmp></xmp>"
6380 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <xmp>\n"
6382 name: "tests5.dat #12"
6383 html: "<xmp> <!-- > --> </xmp>"
6385 expected: "| <html>\n| <head>\n| <body>\n| <xmp>\n| \" <!-- > --> \"\n"
6387 name: "tests5.dat #13"
6388 html: "<title>&</title>"
6390 expected: "| <html>\n| <head>\n| <title>\n| \"&\"\n| <body>\n"
6392 name: "tests5.dat #14"
6393 html: "<title><!--&--></title>"
6395 expected: "| <html>\n| <head>\n| <title>\n| \"<!--&-->\"\n| <body>\n"
6397 name: "tests5.dat #15"
6398 html: "<title><!--</title>"
6400 expected: "| <html>\n| <head>\n| <title>\n| \"<!--\"\n| <body>\n"
6402 name: "tests5.dat #16"
6403 html: "<noscript><!--</noscript>--></noscript>"
6406 expected: "| <html>\n| <head>\n| <noscript>\n| \"<!--\"\n| <body>\n| \"-->\"\n"
6408 name: "tests5.dat #17"
6409 html: "<noscript><!--</noscript>--></noscript>"
6412 expected: "| <html>\n| <head>\n| <noscript>\n| <!-- </noscript> -->\n| <body>\n"
6414 name: "tests6.dat #1"
6415 html: "<!doctype html></head> <head>"
6417 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| \" \"\n| <body>\n"
6419 name: "tests6.dat #2"
6420 html: "<!doctype html><form><div></form><div>"
6422 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <form>\n| <div>\n| <div>\n"
6424 name: "tests6.dat #3"
6425 html: "<!doctype html><title>&</title>"
6426 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"&\"\n| <body>\n"
6428 name: "tests6.dat #4"
6429 html: "<!doctype html><title><!--&--></title>"
6430 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"<!--&-->\"\n| <body>\n"
6432 name: "tests6.dat #5"
6435 expected: "| <!DOCTYPE >\n| <html>\n| <head>\n| <body>\n"
6437 name: "tests6.dat #6"
6440 expected: "| <!-- -x -->\n| <html>\n| <head>\n| <body>\n"
6442 name: "tests6.dat #7"
6443 html: "<body>\n<div>"
6444 errors: 2,"document-fragment":"div"
6445 expected: "| \"\n\"\n| <div>\n"
6447 name: "tests6.dat #8"
6448 html: "<frameset></frameset>\nfoo"
6450 expected: "| <html>\n| <head>\n| <frameset>\n| \"\n\"\n"
6452 name: "tests6.dat #9"
6453 html: "<frameset></frameset>\n<noframes>"
6455 expected: "| <html>\n| <head>\n| <frameset>\n| \"\n\"\n| <noframes>\n"
6457 name: "tests6.dat #10"
6458 html: "<frameset></frameset>\n<div>"
6460 expected: "| <html>\n| <head>\n| <frameset>\n| \"\n\"\n"
6462 name: "tests6.dat #11"
6463 html: "<frameset></frameset>\n</html>"
6465 expected: "| <html>\n| <head>\n| <frameset>\n| \"\n\"\n"
6467 name: "tests6.dat #12"
6468 html: "<frameset></frameset>\n</div>"
6470 expected: "| <html>\n| <head>\n| <frameset>\n| \"\n\"\n"
6472 name: "tests6.dat #13"
6473 html: "<form><form>"
6475 expected: "| <html>\n| <head>\n| <body>\n| <form>\n"
6477 name: "tests6.dat #14"
6478 html: "<button><button>"
6480 expected: "| <html>\n| <head>\n| <body>\n| <button>\n| <button>\n"
6482 name: "tests6.dat #15"
6483 html: "<table><tr><td></th>"
6485 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
6487 name: "tests6.dat #16"
6488 html: "<table><caption><td>"
6490 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <tbody>\n| <tr>\n| <td>\n"
6492 name: "tests6.dat #17"
6493 html: "<table><caption><div>"
6495 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <div>\n"
6497 name: "tests6.dat #18"
6498 html: "</caption><div>"
6499 errors: 2,"document-fragment":"caption"
6500 expected: "| <div>\n"
6502 name: "tests6.dat #19"
6503 html: "<table><caption><div></caption>"
6505 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <div>\n"
6507 name: "tests6.dat #20"
6508 html: "<table><caption></table>"
6510 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n"
6512 name: "tests6.dat #21"
6513 html: "</table><div>"
6514 errors: 2,"document-fragment":"caption"
6515 expected: "| <div>\n"
6517 name: "tests6.dat #22"
6518 html: "<table><caption></body></col></colgroup></html></tbody></td></tfoot></th></thead></tr>"
6520 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n"
6522 name: "tests6.dat #23"
6523 html: "<table><caption><div></div>"
6525 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <caption>\n| <div>\n"
6527 name: "tests6.dat #24"
6528 html: "<table><tr><td></body></caption></col></colgroup></html>"
6530 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
6532 name: "tests6.dat #25"
6533 html: "</table></tbody></tfoot></thead></tr><div>"
6534 errors: 6,"document-fragment":"td"
6535 expected: "| <div>\n"
6537 name: "tests6.dat #26"
6538 html: "<table><colgroup>foo"
6540 expected: "| <html>\n| <head>\n| <body>\n| \"foo\"\n| <table>\n| <colgroup>\n"
6542 name: "tests6.dat #27"
6544 errors: 3,"document-fragment":"colgroup"
6545 expected: "| <col>\n"
6547 name: "tests6.dat #28"
6548 html: "<table><colgroup></col>"
6550 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <colgroup>\n"
6552 name: "tests6.dat #29"
6553 html: "<frameset><div>"
6555 expected: "| <html>\n| <head>\n| <frameset>\n"
6557 name: "tests6.dat #30"
6558 html: "</frameset><frame>"
6559 errors: 1,"document-fragment":"frameset"
6560 expected: "| <frame>\n"
6562 name: "tests6.dat #31"
6563 html: "<frameset></div>"
6565 expected: "| <html>\n| <head>\n| <frameset>\n"
6567 name: "tests6.dat #32"
6568 html: "</body><div>"
6569 errors: 2,"document-fragment":"body"
6570 expected: "| <div>\n"
6572 name: "tests6.dat #33"
6573 html: "<table><tr><div>"
6575 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <table>\n| <tbody>\n| <tr>\n"
6577 name: "tests6.dat #34"
6579 errors: 1,"document-fragment":"tr"
6580 expected: "| <td>\n"
6582 name: "tests6.dat #35"
6583 html: "</tbody></tfoot></thead><td>"
6584 errors: 3,"document-fragment":"tr"
6585 expected: "| <td>\n"
6587 name: "tests6.dat #36"
6588 html: "<table><tr><div><td>"
6590 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
6592 name: "tests6.dat #37"
6593 html: "<caption><col><colgroup><tbody><tfoot><thead><tr>"
6594 errors: 6,"document-fragment":"tbody"
6595 expected: "| <tr>\n"
6597 name: "tests6.dat #38"
6598 html: "<table><tbody></thead>"
6600 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n"
6602 name: "tests6.dat #39"
6603 html: "</table><tr>"
6604 errors: 1,"document-fragment":"tbody"
6605 expected: "| <tr>\n"
6607 name: "tests6.dat #40"
6608 html: "<table><tbody></body></caption></col></colgroup></html></td></th></tr>"
6610 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n"
6612 name: "tests6.dat #41"
6613 html: "<table><tbody></div>"
6615 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n"
6617 name: "tests6.dat #42"
6618 html: "<table><table>"
6620 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <table>\n"
6622 name: "tests6.dat #43"
6623 html: "<table></body></caption></col></colgroup></html></tbody></td></tfoot></th></thead></tr>"
6625 expected: "| <html>\n| <head>\n| <body>\n| <table>\n"
6627 name: "tests6.dat #44"
6628 html: "</table><tr>"
6629 errors: 1,"document-fragment":"table"
6630 expected: "| <tbody>\n| <tr>\n"
6632 name: "tests6.dat #45"
6633 html: "<body></body></html>"
6634 errors: 1,"document-fragment":"html"
6635 expected: "| <head>\n| <body>\n"
6637 name: "tests6.dat #46"
6638 html: "<html><frameset></frameset></html> "
6640 expected: "| <html>\n| <head>\n| <frameset>\n| \" \"\n"
6642 name: "tests6.dat #47"
6643 html: "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\"><html></html>"
6644 expected: "| <!DOCTYPE html \"-//W3C//DTD HTML 4.01//EN\" \"\">\n| <html>\n| <head>\n| <body>\n"
6646 name: "tests6.dat #48"
6647 html: "<param><frameset></frameset>"
6649 expected: "| <html>\n| <head>\n| <frameset>\n"
6651 name: "tests6.dat #49"
6652 html: "<source><frameset></frameset>"
6654 expected: "| <html>\n| <head>\n| <frameset>\n"
6656 name: "tests6.dat #50"
6657 html: "<track><frameset></frameset>"
6659 expected: "| <html>\n| <head>\n| <frameset>\n"
6661 name: "tests6.dat #51"
6662 html: "</html><frameset></frameset>"
6664 expected: "| <html>\n| <head>\n| <frameset>\n"
6666 name: "tests6.dat #52"
6667 html: "</body><frameset></frameset>"
6669 expected: "| <html>\n| <head>\n| <frameset>\n"
6671 name: "tests7.dat #1"
6672 html: "<!doctype html><body><title>X</title>"
6673 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <title>\n| \"X\"\n"
6675 name: "tests7.dat #2"
6676 html: "<!doctype html><table><title>X</title></table>"
6678 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <title>\n| \"X\"\n| <table>\n"
6680 name: "tests7.dat #3"
6681 html: "<!doctype html><head></head><title>X</title>"
6683 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"X\"\n| <body>\n"
6685 name: "tests7.dat #4"
6686 html: "<!doctype html></head><title>X</title>"
6688 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| \"X\"\n| <body>\n"
6690 name: "tests7.dat #5"
6691 html: "<!doctype html><table><meta></table>"
6693 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <meta>\n| <table>\n"
6695 name: "tests7.dat #6"
6696 html: "<!doctype html><table>X<tr><td><table> <meta></table></table>"
6698 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"
6700 name: "tests7.dat #7"
6701 html: "<!doctype html><html> <head>"
6702 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
6704 name: "tests7.dat #8"
6705 html: "<!doctype html> <head>"
6706 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
6708 name: "tests7.dat #9"
6709 html: "<!doctype html><table><style> <tr>x </style> </table>"
6710 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <style>\n| \" <tr>x \"\n| \" \"\n"
6712 name: "tests7.dat #10"
6713 html: "<!doctype html><table><TBODY><script> <tr>x </script> </table>"
6714 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <script>\n| \" <tr>x \"\n| \" \"\n"
6716 name: "tests7.dat #11"
6717 html: "<!doctype html><p><applet><p>X</p></applet>"
6718 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <applet>\n| <p>\n| \"X\"\n"
6720 name: "tests7.dat #12"
6721 html: "<!doctype html><p><object type=\"application/x-non-existant-plugin\"><p>X</p></object>"
6722 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"
6724 name: "tests7.dat #13"
6725 html: "<!doctype html><listing>\nX</listing>"
6726 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <listing>\n| \"X\"\n"
6728 name: "tests7.dat #14"
6729 html: "<!doctype html><select><input>X"
6731 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <input>\n| \"X\"\n"
6733 name: "tests7.dat #15"
6734 html: "<!doctype html><select><select>X"
6736 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| \"X\"\n"
6738 name: "tests7.dat #16"
6739 html: "<!doctype html><table><input type=hidDEN></table>"
6741 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| <input>\n| type=\"hidDEN\"\n"
6743 name: "tests7.dat #17"
6744 html: "<!doctype html><table>X<input type=hidDEN></table>"
6746 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \"X\"\n| <table>\n| <input>\n| type=\"hidDEN\"\n"
6748 name: "tests7.dat #18"
6749 html: "<!doctype html><table> <input type=hidDEN></table>"
6751 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| \" \"\n| <input>\n| type=\"hidDEN\"\n"
6753 name: "tests7.dat #19"
6754 html: "<!doctype html><table> <input type='hidDEN'></table>"
6756 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <table>\n| \" \"\n| <input>\n| type=\"hidDEN\"\n"
6758 name: "tests7.dat #20"
6759 html: "<!doctype html><table><input type=\" hidden\"><input type=hidDEN></table>"
6761 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <input>\n| type=\" hidden\"\n| <table>\n| <input>\n| type=\"hidDEN\"\n"
6763 name: "tests7.dat #21"
6764 html: "<!doctype html><table><select>X<tr>"
6766 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| \"X\"\n| <table>\n| <tbody>\n| <tr>\n"
6768 name: "tests7.dat #22"
6769 html: "<!doctype html><select>X</select>"
6770 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| \"X\"\n"
6772 name: "tests7.dat #23"
6773 html: "<!DOCTYPE hTmL><html></html>"
6774 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
6776 name: "tests7.dat #24"
6777 html: "<!DOCTYPE HTML><html></html>"
6778 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n"
6780 name: "tests7.dat #25"
6781 html: "<body>X</body></body>"
6782 errors: 1,"document-fragment":"html"
6783 expected: "| <head>\n| <body>\n| \"X\"\n"
6785 name: "tests7.dat #26"
6786 html: "<div><p>a</x> b"
6788 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <p>\n| \"a b\"\n"
6790 name: "tests7.dat #27"
6791 html: "<table><tr><td><code></code> </table>"
6793 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <code>\n| \" \"\n"
6795 name: "tests7.dat #28"
6796 html: "<table><b><tr><td>aaa</td></tr>bbb</table>ccc"
6798 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"
6800 name: "tests7.dat #29"
6801 html: "A<table><tr> B</tr> B</table>"
6803 expected: "| <html>\n| <head>\n| <body>\n| \"A B B\"\n| <table>\n| <tbody>\n| <tr>\n"
6805 name: "tests7.dat #30"
6806 html: "A<table><tr> B</tr> </em>C</table>"
6808 expected: "| <html>\n| <head>\n| <body>\n| \"A BC\"\n| <table>\n| <tbody>\n| <tr>\n| \" \"\n"
6810 name: "tests7.dat #31"
6811 html: "<select><keygen>"
6813 expected: "| <html>\n| <head>\n| <body>\n| <select>\n| <keygen>\n"
6815 name: "tests8.dat #1"
6816 html: "<div>\n<div></div>\n</span>x"
6818 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"\n\"\n| <div>\n| \"\nx\"\n"
6820 name: "tests8.dat #2"
6821 html: "<div>x<div></div>\n</span>x"
6823 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"x\"\n| <div>\n| \"\nx\"\n"
6825 name: "tests8.dat #3"
6826 html: "<div>x<div></div>x</span>x"
6828 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"x\"\n| <div>\n| \"xx\"\n"
6830 name: "tests8.dat #4"
6831 html: "<div>x<div></div>y</span>z"
6833 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"x\"\n| <div>\n| \"yz\"\n"
6835 name: "tests8.dat #5"
6836 html: "<table><div>x<div></div>x</span>x"
6838 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"x\"\n| <div>\n| \"xx\"\n| <table>\n"
6840 name: "tests8.dat #6"
6843 expected: "| <html>\n| <head>\n| <body>\n| \"xx\"\n| <table>\n"
6845 name: "tests8.dat #7"
6846 html: "x<table><table>x"
6848 expected: "| <html>\n| <head>\n| <body>\n| \"x\"\n| <table>\n| \"x\"\n| <table>\n"
6850 name: "tests8.dat #8"
6851 html: "<b>a<div></div><div></b>y"
6853 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| \"a\"\n| <div>\n| <div>\n| <b>\n| \"y\"\n"
6855 name: "tests8.dat #9"
6856 html: "<a><div><p></a>"
6858 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <div>\n| <a>\n| <p>\n| <a>\n"
6860 name: "tests9.dat #1"
6861 html: "<!DOCTYPE html><math></math>"
6862 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n"
6864 name: "tests9.dat #2"
6865 html: "<!DOCTYPE html><body><math></math>"
6866 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n"
6868 name: "tests9.dat #3"
6869 html: "<!DOCTYPE html><math><mi>"
6871 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n"
6873 name: "tests9.dat #4"
6874 html: "<!DOCTYPE html><math><annotation-xml><svg><u>"
6876 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math annotation-xml>\n| <svg svg>\n| <u>\n"
6878 name: "tests9.dat #5"
6879 html: "<!DOCTYPE html><body><select><math></math></select>"
6881 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n"
6883 name: "tests9.dat #6"
6884 html: "<!DOCTYPE html><body><select><option><math></math></option></select>"
6886 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| <option>\n"
6888 name: "tests9.dat #7"
6889 html: "<!DOCTYPE html><body><table><math></math></table>"
6891 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <table>\n"
6893 name: "tests9.dat #8"
6894 html: "<!DOCTYPE html><body><table><math><mi>foo</mi></math></table>"
6896 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <math math>\n| <math mi>\n| \"foo\"\n| <table>\n"
6898 name: "tests9.dat #9"
6899 html: "<!DOCTYPE html><body><table><math><mi>foo</mi><mi>bar</mi></math></table>"
6901 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"
6903 name: "tests9.dat #10"
6904 html: "<!DOCTYPE html><body><table><tbody><math><mi>foo</mi><mi>bar</mi></math></tbody></table>"
6906 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"
6908 name: "tests9.dat #11"
6909 html: "<!DOCTYPE html><body><table><tbody><tr><math><mi>foo</mi><mi>bar</mi></math></tr></tbody></table>"
6911 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"
6913 name: "tests9.dat #12"
6914 html: "<!DOCTYPE html><body><table><tbody><tr><td><math><mi>foo</mi><mi>bar</mi></math></td></tr></tbody></table>"
6915 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"
6917 name: "tests9.dat #13"
6918 html: "<!DOCTYPE html><body><table><tbody><tr><td><math><mi>foo</mi><mi>bar</mi></math><p>baz</td></tr></tbody></table>"
6919 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"
6921 name: "tests9.dat #14"
6922 html: "<!DOCTYPE html><body><table><caption><math><mi>foo</mi><mi>bar</mi></math><p>baz</caption></table>"
6923 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"
6925 name: "tests9.dat #15"
6926 html: "<!DOCTYPE html><body><table><caption><math><mi>foo</mi><mi>bar</mi><p>baz</table><p>quux"
6928 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"
6930 name: "tests9.dat #16"
6931 html: "<!DOCTYPE html><body><table><caption><math><mi>foo</mi><mi>bar</mi>baz</table><p>quux"
6933 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"
6935 name: "tests9.dat #17"
6936 html: "<!DOCTYPE html><body><table><colgroup><math><mi>foo</mi><mi>bar</mi><p>baz</table><p>quux"
6938 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"
6940 name: "tests9.dat #18"
6941 html: "<!DOCTYPE html><body><table><tr><td><select><math><mi>foo</mi><mi>bar</mi><p>baz</table><p>quux"
6943 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"
6945 name: "tests9.dat #19"
6946 html: "<!DOCTYPE html><body><table><select><math><mi>foo</mi><mi>bar</mi><p>baz</table><p>quux"
6948 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <select>\n| \"foobarbaz\"\n| <table>\n| <p>\n| \"quux\"\n"
6950 name: "tests9.dat #20"
6951 html: "<!DOCTYPE html><body></body></html><math><mi>foo</mi><mi>bar</mi><p>baz"
6953 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"
6955 name: "tests9.dat #21"
6956 html: "<!DOCTYPE html><body></body><math><mi>foo</mi><mi>bar</mi><p>baz"
6958 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"
6960 name: "tests9.dat #22"
6961 html: "<!DOCTYPE html><frameset><math><mi></mi><mi></mi><p><span>"
6963 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
6965 name: "tests9.dat #23"
6966 html: "<!DOCTYPE html><frameset></frameset><math><mi></mi><mi></mi><p><span>"
6968 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
6970 name: "tests9.dat #24"
6971 html: "<!DOCTYPE html><body xlink:href=foo><math xlink:href=foo></math>"
6972 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| xlink:href=\"foo\"\n| <math math>\n| xlink href=\"foo\"\n"
6974 name: "tests9.dat #25"
6975 html: "<!DOCTYPE html><body xlink:href=foo xml:lang=en><math><mi xml:lang=en xlink:href=foo></mi></math>"
6976 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"
6978 name: "tests9.dat #26"
6979 html: "<!DOCTYPE html><body xlink:href=foo xml:lang=en><math><mi xml:lang=en xlink:href=foo /></math>"
6980 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"
6982 name: "tests9.dat #27"
6983 html: "<!DOCTYPE html><body xlink:href=foo xml:lang=en><math><mi xml:lang=en xlink:href=foo />bar</math>"
6984 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"
6986 name: "tests_innerHTML_1.dat #1"
6987 html: "<body><span>"
6988 errors: 2,"document-fragment":"body"
6989 expected: "| <span>\n"
6991 name: "tests_innerHTML_1.dat #2"
6992 html: "<span><body>"
6993 errors: 2,"document-fragment":"body"
6994 expected: "| <span>\n"
6996 name: "tests_innerHTML_1.dat #3"
6997 html: "<span><body>"
6998 errors: 2,"document-fragment":"div"
6999 expected: "| <span>\n"
7001 name: "tests_innerHTML_1.dat #4"
7002 html: "<body><span>"
7003 errors: 1,"document-fragment":"html"
7004 expected: "| <head>\n| <body>\n| <span>\n"
7006 name: "tests_innerHTML_1.dat #5"
7007 html: "<frameset><span>"
7008 errors: 2,"document-fragment":"body"
7009 expected: "| <span>\n"
7011 name: "tests_innerHTML_1.dat #6"
7012 html: "<span><frameset>"
7013 errors: 2,"document-fragment":"body"
7014 expected: "| <span>\n"
7016 name: "tests_innerHTML_1.dat #7"
7017 html: "<span><frameset>"
7018 errors: 2,"document-fragment":"div"
7019 expected: "| <span>\n"
7021 name: "tests_innerHTML_1.dat #8"
7022 html: "<frameset><span>"
7023 errors: 2,"document-fragment":"html"
7024 expected: "| <head>\n| <frameset>\n"
7026 name: "tests_innerHTML_1.dat #9"
7028 errors: 1,"document-fragment":"table"
7029 expected: "| <tbody>\n| <tr>\n"
7031 name: "tests_innerHTML_1.dat #10"
7032 html: "</table><tr>"
7033 errors: 1,"document-fragment":"table"
7034 expected: "| <tbody>\n| <tr>\n"
7036 name: "tests_innerHTML_1.dat #11"
7038 errors: 2,"document-fragment":"table"
7041 name: "tests_innerHTML_1.dat #12"
7043 errors: 2,"document-fragment":"table"
7046 name: "tests_innerHTML_1.dat #13"
7047 html: "<a><caption>a"
7048 errors: 2,"document-fragment":"table"
7049 expected: "| <a>\n| <caption>\n| \"a\"\n"
7051 name: "tests_innerHTML_1.dat #14"
7052 html: "<a><colgroup><col>"
7053 errors: 2,"document-fragment":"table"
7054 expected: "| <a>\n| <colgroup>\n| <col>\n"
7056 name: "tests_innerHTML_1.dat #15"
7057 html: "<a><tbody><tr>"
7058 errors: 1,"document-fragment":"table"
7059 expected: "| <a>\n| <tbody>\n| <tr>\n"
7061 name: "tests_innerHTML_1.dat #16"
7062 html: "<a><tfoot><tr>"
7063 errors: 1,"document-fragment":"table"
7064 expected: "| <a>\n| <tfoot>\n| <tr>\n"
7066 name: "tests_innerHTML_1.dat #17"
7067 html: "<a><thead><tr>"
7068 errors: 1,"document-fragment":"table"
7069 expected: "| <a>\n| <thead>\n| <tr>\n"
7071 name: "tests_innerHTML_1.dat #18"
7073 errors: 1,"document-fragment":"table"
7074 expected: "| <a>\n| <tbody>\n| <tr>\n"
7076 name: "tests_innerHTML_1.dat #19"
7078 errors: 2,"document-fragment":"table"
7079 expected: "| <a>\n| <tbody>\n| <tr>\n| <th>\n"
7081 name: "tests_innerHTML_1.dat #20"
7083 errors: 2,"document-fragment":"table"
7084 expected: "| <a>\n| <tbody>\n| <tr>\n| <td>\n"
7086 name: "tests_innerHTML_1.dat #21"
7087 html: "<table></table><tbody>"
7088 errors: 1,"document-fragment":"caption"
7089 expected: "| <table>\n"
7091 name: "tests_innerHTML_1.dat #22"
7092 html: "</table><span>"
7093 errors: 2,"document-fragment":"caption"
7094 expected: "| <span>\n"
7096 name: "tests_innerHTML_1.dat #23"
7097 html: "<span></table>"
7098 errors: 2,"document-fragment":"caption"
7099 expected: "| <span>\n"
7101 name: "tests_innerHTML_1.dat #24"
7102 html: "</caption><span>"
7103 errors: 2,"document-fragment":"caption"
7104 expected: "| <span>\n"
7106 name: "tests_innerHTML_1.dat #25"
7107 html: "<span></caption><span>"
7108 errors: 2,"document-fragment":"caption"
7109 expected: "| <span>\n| <span>\n"
7111 name: "tests_innerHTML_1.dat #26"
7112 html: "<span><caption><span>"
7113 errors: 2,"document-fragment":"caption"
7114 expected: "| <span>\n| <span>\n"
7116 name: "tests_innerHTML_1.dat #27"
7117 html: "<span><col><span>"
7118 errors: 2,"document-fragment":"caption"
7119 expected: "| <span>\n| <span>\n"
7121 name: "tests_innerHTML_1.dat #28"
7122 html: "<span><colgroup><span>"
7123 errors: 2,"document-fragment":"caption"
7124 expected: "| <span>\n| <span>\n"
7126 name: "tests_innerHTML_1.dat #29"
7127 html: "<span><html><span>"
7128 errors: 2,"document-fragment":"caption"
7129 expected: "| <span>\n| <span>\n"
7131 name: "tests_innerHTML_1.dat #30"
7132 html: "<span><tbody><span>"
7133 errors: 2,"document-fragment":"caption"
7134 expected: "| <span>\n| <span>\n"
7136 name: "tests_innerHTML_1.dat #31"
7137 html: "<span><td><span>"
7138 errors: 2,"document-fragment":"caption"
7139 expected: "| <span>\n| <span>\n"
7141 name: "tests_innerHTML_1.dat #32"
7142 html: "<span><tfoot><span>"
7143 errors: 2,"document-fragment":"caption"
7144 expected: "| <span>\n| <span>\n"
7146 name: "tests_innerHTML_1.dat #33"
7147 html: "<span><thead><span>"
7148 errors: 2,"document-fragment":"caption"
7149 expected: "| <span>\n| <span>\n"
7151 name: "tests_innerHTML_1.dat #34"
7152 html: "<span><th><span>"
7153 errors: 2,"document-fragment":"caption"
7154 expected: "| <span>\n| <span>\n"
7156 name: "tests_innerHTML_1.dat #35"
7157 html: "<span><tr><span>"
7158 errors: 2,"document-fragment":"caption"
7159 expected: "| <span>\n| <span>\n"
7161 name: "tests_innerHTML_1.dat #36"
7162 html: "<span></table><span>"
7163 errors: 2,"document-fragment":"caption"
7164 expected: "| <span>\n| <span>\n"
7166 name: "tests_innerHTML_1.dat #37"
7167 html: "</colgroup><col>"
7168 errors: 1,"document-fragment":"colgroup"
7169 expected: "| <col>\n"
7171 name: "tests_innerHTML_1.dat #38"
7173 errors: 1,"document-fragment":"colgroup"
7174 expected: "| <col>\n"
7176 name: "tests_innerHTML_1.dat #39"
7177 html: "<caption><a>"
7178 errors: 3,"document-fragment":"tbody"
7181 name: "tests_innerHTML_1.dat #40"
7183 errors: 3,"document-fragment":"tbody"
7186 name: "tests_innerHTML_1.dat #41"
7187 html: "<colgroup><a>"
7188 errors: 3,"document-fragment":"tbody"
7191 name: "tests_innerHTML_1.dat #42"
7193 errors: 3,"document-fragment":"tbody"
7196 name: "tests_innerHTML_1.dat #43"
7198 errors: 3,"document-fragment":"tbody"
7201 name: "tests_innerHTML_1.dat #44"
7203 errors: 3,"document-fragment":"tbody"
7206 name: "tests_innerHTML_1.dat #45"
7208 errors: 3,"document-fragment":"tbody"
7211 name: "tests_innerHTML_1.dat #46"
7213 errors: 1,"document-fragment":"tbody"
7214 expected: "| <a>\n| <tr>\n"
7216 name: "tests_innerHTML_1.dat #47"
7218 errors: 2,"document-fragment":"tbody"
7219 expected: "| <a>\n| <tr>\n| <td>\n"
7221 name: "tests_innerHTML_1.dat #48"
7223 errors: 2,"document-fragment":"tbody"
7224 expected: "| <a>\n| <tr>\n| <td>\n"
7226 name: "tests_innerHTML_1.dat #49"
7228 errors: 2,"document-fragment":"tbody"
7229 expected: "| <a>\n| <tr>\n| <td>\n"
7231 name: "tests_innerHTML_1.dat #50"
7232 html: "<td><table><tbody><a><tr>"
7233 errors: 3,"document-fragment":"tbody"
7234 expected: "| <tr>\n| <td>\n| <a>\n| <table>\n| <tbody>\n| <tr>\n"
7236 name: "tests_innerHTML_1.dat #51"
7238 errors: 1,"document-fragment":"tr"
7239 expected: "| <td>\n"
7241 name: "tests_innerHTML_1.dat #52"
7242 html: "<td><table><a><tr></tr><tr>"
7243 errors: 2,"document-fragment":"tr"
7244 expected: "| <td>\n| <a>\n| <table>\n| <tbody>\n| <tr>\n| <tr>\n"
7246 name: "tests_innerHTML_1.dat #53"
7247 html: "<caption><td>"
7248 errors: 1,"document-fragment":"tr"
7249 expected: "| <td>\n"
7251 name: "tests_innerHTML_1.dat #54"
7253 errors: 1,"document-fragment":"tr"
7254 expected: "| <td>\n"
7256 name: "tests_innerHTML_1.dat #55"
7257 html: "<colgroup><td>"
7258 errors: 1,"document-fragment":"tr"
7259 expected: "| <td>\n"
7261 name: "tests_innerHTML_1.dat #56"
7263 errors: 1,"document-fragment":"tr"
7264 expected: "| <td>\n"
7266 name: "tests_innerHTML_1.dat #57"
7268 errors: 1,"document-fragment":"tr"
7269 expected: "| <td>\n"
7271 name: "tests_innerHTML_1.dat #58"
7273 errors: 1,"document-fragment":"tr"
7274 expected: "| <td>\n"
7276 name: "tests_innerHTML_1.dat #59"
7278 errors: 1,"document-fragment":"tr"
7279 expected: "| <td>\n"
7281 name: "tests_innerHTML_1.dat #60"
7282 html: "</table><td>"
7283 errors: 1,"document-fragment":"tr"
7284 expected: "| <td>\n"
7286 name: "tests_innerHTML_1.dat #61"
7287 html: "<td><table></table><td>"
7289 expected: "| <td>\n| <table>\n| <td>\n"
7291 name: "tests_innerHTML_1.dat #62"
7292 html: "<td><table></table><td>"
7294 expected: "| <td>\n| <table>\n| <td>\n"
7296 name: "tests_innerHTML_1.dat #63"
7297 html: "<caption><a>"
7298 errors: 2,"document-fragment":"td"
7301 name: "tests_innerHTML_1.dat #64"
7303 errors: 2,"document-fragment":"td"
7306 name: "tests_innerHTML_1.dat #65"
7307 html: "<colgroup><a>"
7308 errors: 2,"document-fragment":"td"
7311 name: "tests_innerHTML_1.dat #66"
7313 errors: 2,"document-fragment":"td"
7316 name: "tests_innerHTML_1.dat #67"
7318 errors: 2,"document-fragment":"td"
7321 name: "tests_innerHTML_1.dat #68"
7323 errors: 2,"document-fragment":"td"
7326 name: "tests_innerHTML_1.dat #69"
7328 errors: 2,"document-fragment":"td"
7331 name: "tests_innerHTML_1.dat #70"
7333 errors: 2,"document-fragment":"td"
7336 name: "tests_innerHTML_1.dat #71"
7338 errors: 2,"document-fragment":"td"
7341 name: "tests_innerHTML_1.dat #72"
7343 errors: 2,"document-fragment":"td"
7346 name: "tests_innerHTML_1.dat #73"
7348 errors: 2,"document-fragment":"td"
7351 name: "tests_innerHTML_1.dat #74"
7353 errors: 2,"document-fragment":"td"
7356 name: "tests_innerHTML_1.dat #75"
7358 errors: 2,"document-fragment":"td"
7361 name: "tests_innerHTML_1.dat #76"
7363 errors: 2,"document-fragment":"td"
7366 name: "tests_innerHTML_1.dat #77"
7368 errors: 2,"document-fragment":"td"
7371 name: "tests_innerHTML_1.dat #78"
7372 html: "<table><td><td>"
7373 errors: 2,"document-fragment":"td"
7374 expected: "| <table>\n| <tbody>\n| <tr>\n| <td>\n| <td>\n"
7376 name: "tests_innerHTML_1.dat #79"
7377 html: "</select><option>"
7378 errors: 2,"document-fragment":"select"
7379 expected: "| <option>\n"
7381 name: "tests_innerHTML_1.dat #80"
7382 html: "<input><option>"
7383 errors: 2,"document-fragment":"select"
7384 expected: "| <option>\n"
7386 name: "tests_innerHTML_1.dat #81"
7387 html: "<keygen><option>"
7388 errors: 2,"document-fragment":"select"
7389 expected: "| <option>\n"
7391 name: "tests_innerHTML_1.dat #82"
7392 html: "<textarea><option>"
7393 errors: 2,"document-fragment":"select"
7394 expected: "| <option>\n"
7396 name: "tests_innerHTML_1.dat #83"
7397 html: "</html><!--abc-->"
7398 errors: 1,"document-fragment":"html"
7399 expected: "| <head>\n| <body>\n| <!-- abc -->\n"
7401 name: "tests_innerHTML_1.dat #84"
7402 html: "</frameset><frame>"
7403 errors: 1,"document-fragment":"frameset"
7404 expected: "| <frame>\n"
7406 name: "tests_innerHTML_1.dat #85"
7409 expected: "| <head>\n| <body>\n"
7411 name: "tricky01.dat #1"
7412 html: "<b><p>Bold </b> Not bold</p>\nAlso not bold."
7414 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <p>\n| <b>\n| \"Bold \"\n| \" Not bold\"\n| \"\nAlso not bold.\"\n"
7416 name: "tricky01.dat #2"
7417 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"
7419 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"
7421 name: "tricky01.dat #3"
7422 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>"
7424 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"
7426 name: "tricky01.dat #4"
7427 html: "<html>\n<dl>\n<dt><b>Boo\n<dd>Goo?\n</dl>\n</html>"
7429 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"
7431 name: "tricky01.dat #5"
7432 html: "<html><body>\n<label><a><div>Hello<div>World</div></a></label> \n</body></html>"
7434 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"
7436 name: "tricky01.dat #6"
7437 html: "<table><center> <font>a</center> <img> <tr><td> </td> </tr> </table>"
7439 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"
7441 name: "tricky01.dat #7"
7442 html: "<table><tr><p><a><p>You should see this text."
7444 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"
7446 name: "tricky01.dat #8"
7447 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."
7449 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"
7451 name: "tricky01.dat #9"
7452 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>"
7454 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"
7456 name: "webkit01.dat #1"
7459 expected: "| <html>\n| <head>\n| <body>\n| \"Test\"\n"
7461 name: "webkit01.dat #2"
7464 expected: "| <html>\n| <head>\n| <body>\n| <div>\n"
7466 name: "webkit01.dat #3"
7467 html: "<div>Test</div>"
7469 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| \"Test\"\n"
7471 name: "webkit01.dat #4"
7474 expected: "| <html>\n| <head>\n| <body>\n"
7476 name: "webkit01.dat #5"
7477 html: "<div>Hello</div>\n<script>\nconsole.log(\"PASS\");\n</script>\n<div>Bye</div>"
7479 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"
7481 name: "webkit01.dat #6"
7482 html: "<div foo=\"bar\">Hello</div>"
7484 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| foo=\"bar\"\n| \"Hello\"\n"
7486 name: "webkit01.dat #7"
7487 html: "<div>Hello</div>\n<script>\nconsole.log(\"FOO<span>BAR</span>BAZ\");\n</script>\n<div>Bye</div>"
7489 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"
7491 name: "webkit01.dat #8"
7492 html: "<foo bar=\"baz\"></foo><potato quack=\"duck\"></potato>"
7494 expected: "| <html>\n| <head>\n| <body>\n| <foo>\n| bar=\"baz\"\n| <potato>\n| quack=\"duck\"\n"
7496 name: "webkit01.dat #9"
7497 html: "<foo bar=\"baz\"><potato quack=\"duck\"></potato></foo>"
7499 expected: "| <html>\n| <head>\n| <body>\n| <foo>\n| bar=\"baz\"\n| <potato>\n| quack=\"duck\"\n"
7501 name: "webkit01.dat #10"
7502 html: "<foo></foo bar=\"baz\"><potato></potato quack=\"duck\">"
7504 expected: "| <html>\n| <head>\n| <body>\n| <foo>\n| <potato>\n"
7506 name: "webkit01.dat #11"
7509 expected: "| <!-- tttt -->\n| <html>\n| <head>\n| <body>\n"
7511 name: "webkit01.dat #12"
7512 html: "<div FOO ><img><img></div>"
7514 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| foo=\"\"\n| <img>\n| <img>\n"
7516 name: "webkit01.dat #13"
7517 html: "<p>Test</p<p>Test2</p>"
7519 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| \"TestTest2\"\n"
7521 name: "webkit01.dat #14"
7522 html: "<rdar://problem/6869687>"
7524 expected: "| <html>\n| <head>\n| <body>\n| <rdar:>\n| 6869687=\"\"\n| problem=\"\"\n"
7526 name: "webkit01.dat #15"
7527 html: "<A>test< /A>"
7529 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| \"test< /A>\"\n"
7531 name: "webkit01.dat #16"
7534 expected: "| <html>\n| <head>\n| <body>\n| \"<\"\n"
7536 name: "webkit01.dat #17"
7537 html: "<body foo='bar'><body foo='baz' yo='mama'>"
7539 expected: "| <html>\n| <head>\n| <body>\n| foo=\"bar\"\n| yo=\"mama\"\n"
7541 name: "webkit01.dat #18"
7542 html: "<body></br foo=\"bar\"></body>"
7544 expected: "| <html>\n| <head>\n| <body>\n| <br>\n"
7546 name: "webkit01.dat #19"
7547 html: "<bdy><br foo=\"bar\"></body>"
7549 expected: "| <html>\n| <head>\n| <body>\n| <bdy>\n| <br>\n| foo=\"bar\"\n"
7551 name: "webkit01.dat #20"
7552 html: "<body></body></br foo=\"bar\">"
7554 expected: "| <html>\n| <head>\n| <body>\n| <br>\n"
7556 name: "webkit01.dat #21"
7557 html: "<bdy></body><br foo=\"bar\">"
7559 expected: "| <html>\n| <head>\n| <body>\n| <bdy>\n| <br>\n| foo=\"bar\"\n"
7561 name: "webkit01.dat #22"
7562 html: "<html><body></body></html><!-- Hi there -->"
7564 expected: "| <html>\n| <head>\n| <body>\n| <!-- Hi there -->\n"
7566 name: "webkit01.dat #23"
7567 html: "<html><body></body></html>x<!-- Hi there -->"
7569 expected: "| <html>\n| <head>\n| <body>\n| \"x\"\n| <!-- Hi there -->\n"
7571 name: "webkit01.dat #24"
7572 html: "<html><body></body></html>x<!-- Hi there --></html><!-- Again -->"
7574 expected: "| <html>\n| <head>\n| <body>\n| \"x\"\n| <!-- Hi there -->\n| <!-- Again -->\n"
7576 name: "webkit01.dat #25"
7577 html: "<html><body></body></html>x<!-- Hi there --></body></html><!-- Again -->"
7579 expected: "| <html>\n| <head>\n| <body>\n| \"x\"\n| <!-- Hi there -->\n| <!-- Again -->\n"
7581 name: "webkit01.dat #26"
7582 html: "<html><body><ruby><div><rp>xx</rp></div></ruby></body></html>"
7584 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| <div>\n| <rp>\n| \"xx\"\n"
7586 name: "webkit01.dat #27"
7587 html: "<html><body><ruby><div><rt>xx</rt></div></ruby></body></html>"
7589 expected: "| <html>\n| <head>\n| <body>\n| <ruby>\n| <div>\n| <rt>\n| \"xx\"\n"
7591 name: "webkit01.dat #28"
7592 html: "<html><frameset><!--1--><noframes>A</noframes><!--2--></frameset><!--3--><noframes>B</noframes><!--4--></html><!--5--><noframes>C</noframes><!--6-->"
7594 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"
7596 name: "webkit01.dat #29"
7597 html: "<select><option>A<select><option>B<select><option>C<select><option>D<select><option>E<select><option>F<select><option>G<select>"
7599 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"
7601 name: "webkit01.dat #30"
7602 html: "<dd><dd><dt><dt><dd><li><li>"
7604 expected: "| <html>\n| <head>\n| <body>\n| <dd>\n| <dd>\n| <dt>\n| <dt>\n| <dd>\n| <li>\n| <li>\n"
7606 name: "webkit01.dat #31"
7607 html: "<div><b></div><div><nobr>a<nobr>"
7609 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <b>\n| <div>\n| <b>\n| <nobr>\n| \"a\"\n| <nobr>\n"
7611 name: "webkit01.dat #32"
7612 html: "<head></head>\n<body></body>"
7614 expected: "| <html>\n| <head>\n| \"\n\"\n| <body>\n"
7616 name: "webkit01.dat #33"
7617 html: "<head></head> <style></style>ddd"
7619 expected: "| <html>\n| <head>\n| <style>\n| \" \"\n| <body>\n| \"ddd\"\n"
7621 name: "webkit01.dat #34"
7622 html: "<kbd><table></kbd><col><select><tr>"
7624 expected: "| <html>\n| <head>\n| <body>\n| <kbd>\n| <select>\n| <table>\n| <colgroup>\n| <col>\n| <tbody>\n| <tr>\n"
7626 name: "webkit01.dat #35"
7627 html: "<kbd><table></kbd><col><select><tr></table><div>"
7629 expected: "| <html>\n| <head>\n| <body>\n| <kbd>\n| <select>\n| <table>\n| <colgroup>\n| <col>\n| <tbody>\n| <tr>\n| <div>\n"
7631 name: "webkit01.dat #36"
7632 html: "<a><li><style></style><title></title></a>"
7634 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <li>\n| <a>\n| <style>\n| <title>\n"
7636 name: "webkit01.dat #37"
7637 html: "<font></p><p><meta><title></title></font>"
7639 expected: "| <html>\n| <head>\n| <body>\n| <font>\n| <p>\n| <p>\n| <font>\n| <meta>\n| <title>\n"
7641 name: "webkit01.dat #38"
7642 html: "<a><center><title></title><a>"
7644 expected: "| <html>\n| <head>\n| <body>\n| <a>\n| <center>\n| <a>\n| <title>\n| <a>\n"
7646 name: "webkit01.dat #39"
7647 html: "<svg><title><div>"
7649 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg title>\n| <div>\n"
7651 name: "webkit01.dat #40"
7652 html: "<svg><title><rect><div>"
7654 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg title>\n| <rect>\n| <div>\n"
7656 name: "webkit01.dat #41"
7657 html: "<svg><title><svg><div>"
7659 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg title>\n| <svg svg>\n| <div>\n"
7661 name: "webkit01.dat #42"
7662 html: "<img <=\"\" FAIL>"
7664 expected: "| <html>\n| <head>\n| <body>\n| <img>\n| <=\"\"\n| fail=\"\"\n"
7666 name: "webkit01.dat #43"
7667 html: "<ul><li><div id='foo'/>A</li><li>B<div>C</div></li></ul>"
7669 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"
7671 name: "webkit01.dat #44"
7672 html: "<svg><em><desc></em>"
7674 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <em>\n| <desc>\n"
7676 name: "webkit01.dat #45"
7677 html: "<table><tr><td><svg><desc><td></desc><circle>"
7678 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"
7680 name: "webkit01.dat #46"
7681 html: "<svg><tfoot></mi><td>"
7683 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg tfoot>\n| <svg td>\n"
7685 name: "webkit01.dat #47"
7686 html: "<math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math>"
7688 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"
7690 name: "webkit01.dat #48"
7691 html: "<!doctype html><input type=\"hidden\"><frameset>"
7693 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <frameset>\n"
7695 name: "webkit01.dat #49"
7696 html: "<!doctype html><input type=\"button\"><frameset>"
7698 expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <input>\n| type=\"button\"\n"
7700 name: "webkit02.dat #1"
7701 html: "<foo bar=qux/>"
7703 expected: "| <html>\n| <head>\n| <body>\n| <foo>\n| bar=\"qux/\"\n"
7705 name: "webkit02.dat #2"
7706 html: "<p id=\"status\"><noscript><strong>A</strong></noscript><span>B</span></p>"
7709 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| id=\"status\"\n| <noscript>\n| \"<strong>A</strong>\"\n| <span>\n| \"B\"\n"
7711 name: "webkit02.dat #3"
7712 html: "<p id=\"status\"><noscript><strong>A</strong></noscript><span>B</span></p>"
7715 expected: "| <html>\n| <head>\n| <body>\n| <p>\n| id=\"status\"\n| <noscript>\n| <strong>\n| \"A\"\n| <span>\n| \"B\"\n"
7717 name: "webkit02.dat #4"
7718 html: "<div><sarcasm><div></div></sarcasm></div>"
7720 expected: "| <html>\n| <head>\n| <body>\n| <div>\n| <sarcasm>\n| <div>\n"
7722 name: "webkit02.dat #5"
7723 html: "<html><body><img src=\"\" border=\"0\" alt=\"><div>A</div></body></html>"
7725 expected: "| <html>\n| <head>\n| <body>\n"
7727 name: "webkit02.dat #6"
7728 html: "<table><td></tbody>A"
7730 expected: "| <html>\n| <head>\n| <body>\n| \"A\"\n| <table>\n| <tbody>\n| <tr>\n| <td>\n"
7732 name: "webkit02.dat #7"
7733 html: "<table><td></thead>A"
7735 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"A\"\n"
7737 name: "webkit02.dat #8"
7738 html: "<table><td></tfoot>A"
7740 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| \"A\"\n"
7742 name: "webkit02.dat #9"
7743 html: "<table><thead><td></tbody>A"
7745 expected: "| <html>\n| <head>\n| <body>\n| <table>\n| <thead>\n| <tr>\n| <td>\n| \"A\"\n"
7747 name: "webkit02.dat #10"
7748 html: "<legend>test</legend>"
7749 expected: "| <html>\n| <head>\n| <body>\n| <legend>\n| \"test\"\n"
7751 name: "webkit02.dat #11"
7752 html: "<table><input>"
7753 expected: "| <html>\n| <head>\n| <body>\n| <input>\n| <table>\n"
7755 name: "webkit02.dat #12"
7756 html: "<b><em><foo><foo><aside></b>"
7757 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <em>\n| <foo>\n| <foo>\n| <em>\n| <aside>\n| <b>\n"
7759 name: "webkit02.dat #13"
7760 html: "<b><em><foo><foo><aside></b></em>"
7761 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <em>\n| <foo>\n| <foo>\n| <em>\n| <aside>\n| <em>\n| <b>\n"
7763 name: "webkit02.dat #14"
7764 html: "<b><em><foo><foo><foo><aside></b>"
7765 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <em>\n| <foo>\n| <foo>\n| <foo>\n| <aside>\n| <b>\n"
7767 name: "webkit02.dat #15"
7768 html: "<b><em><foo><foo><foo><aside></b></em>"
7769 expected: "| <html>\n| <head>\n| <body>\n| <b>\n| <em>\n| <foo>\n| <foo>\n| <foo>\n| <aside>\n| <b>\n"
7771 name: "webkit02.dat #16"
7772 html: "<b><em><foo><foo><foo><foo><foo><foo><foo><foo><foo><foo><aside></b></em>"
7774 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"
7776 name: "webkit02.dat #17"
7777 html: "<b><em><foo><foob><foob><foob><foob><fooc><fooc><fooc><fooc><food><aside></b></em>"
7779 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"
7781 name: "webkit02.dat #18"
7782 html: "<isindex action=\"x\">"
7784 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"
7786 name: "webkit02.dat #19"
7787 html: "<option><XH<optgroup></optgroup>"
7789 expected: "| <option>\n"
7791 name: "webkit02.dat #20"
7792 html: "<svg><foreignObject><div>foo</div><plaintext></foreignObject></svg><div>bar</div>"
7793 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"
7795 name: "webkit02.dat #21"
7796 html: "<svg><foreignObject></foreignObject><title></svg>foo"
7797 expected: "| <html>\n| <head>\n| <body>\n| <svg svg>\n| <svg foreignObject>\n| <svg title>\n| \"foo\"\n"
7799 name: "webkit02.dat #22"
7800 html: "</foreignObject><plaintext><div>foo</div>"
7801 expected: "| <html>\n| <head>\n| <body>\n| <plaintext>\n| \"<div>foo</div>\"\n"
7806 wheic = window.wheic
7808 wheic = require './wheic.js'
7810 serialize_els = (els, prefix = '| ') ->
7816 if el.namespace is wheic.NS_MATHML
7818 if el.namespace is wheic.NS_SVG
7820 ret += "#{el.name}>\n"
7824 attr_keys.sort() # TODO this should be "lexicographically by UTF-16 code unit"
7826 ret += "#{prefix} #{k}=\"#{el.attrs[k]}\"\n"
7827 if el.name is 'template' # ?check ns
7828 ret += "#{prefix} content\n"
7829 ret += serialize_els el.children, "#{prefix} "
7831 ret += serialize_els el.children, "#{prefix} "
7832 when wheic.TYPE_TEXT
7833 ret += "#{prefix}\"#{el.text}\"\n"
7834 when wheic.TYPE_COMMENT
7835 ret += "#{prefix}<!-- #{el.text} -->\n"
7836 when wheic.TYPE_DOCTYPE
7837 ret += "#{prefix}<!DOCTYPE #{el.name}"
7838 if (el.public_identifier? and el.public_identifier.length > 0) or (el.system_identifier? and el.system_identifier.length > 0)
7839 ret += " \"#{el.public_identifier ? ''}\""
7840 ret += " \"#{el.system_identifier ? ''}\""
7843 ret += "#{prefix}UNKNOWN TAG TYPE #{el.type}"
7846 test_results = passed: 0, failed: 0, fragment: 0
7847 test_parser = (args) ->
7848 if args.fragment? # hide fragment tests for now
7849 test_results.fragment += 1
7851 wheic.debug_log_reset()
7853 args.error_cb = (i) ->
7855 prev_node_id = 0 # reset counter
7856 parsed = wheic.parse_html args
7857 serialized = serialize_els parsed
7858 if serialized isnt args.expected
7859 #wheic.debug_log_each (str) ->
7861 console.log "FAILED: \"#{args.name}\""
7862 console.log " Input: #{args.html}"
7864 console.log " Fragment: #{args.fragment}"
7865 console.log " Correct: #{args.expected}"
7866 console.log " Output: #{serialized}"
7867 if parse_errors.length > 0
7868 console.log " parse errs: #{JSON.stringify parse_errors}"
7870 console.log " No parse errors"
7871 test_results.failed += 1
7873 console.log "passed \"#{args.name}\""
7874 test_results.passed += 1
7876 console.log "Tests passed: #{test_results.passed}, Failed: #{test_results.failed}, ignored: #{test_results.fragment}"
7880 run_tests_and_breathe = ->
7881 start_time = new Date()
7883 if next_test >= tests.length
7886 test_parser tests[next_test]
7889 if now - start_time > 100 # miliseconds
7891 setTimeout run_tests_and_breathe, 1
7892 run_tests_and_breathe()