tests2.dat 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. #data
  2. <!DOCTYPE html>Test
  3. #errors
  4. #document
  5. | <!DOCTYPE html>
  6. | <html>
  7. | <head>
  8. | <body>
  9. | "Test"
  10. #data
  11. <textarea>test</div>test
  12. #errors
  13. (1,10): expected-doctype-but-got-start-tag
  14. (1,24): expected-closing-tag-but-got-eof
  15. #document
  16. | <html>
  17. | <head>
  18. | <body>
  19. | <textarea>
  20. | "test</div>test"
  21. #data
  22. <table><td>
  23. #errors
  24. (1,7): expected-doctype-but-got-start-tag
  25. (1,11): unexpected-cell-in-table-body
  26. (1,11): expected-closing-tag-but-got-eof
  27. #document
  28. | <html>
  29. | <head>
  30. | <body>
  31. | <table>
  32. | <tbody>
  33. | <tr>
  34. | <td>
  35. #data
  36. <table><td>test</tbody></table>
  37. #errors
  38. (1,7): expected-doctype-but-got-start-tag
  39. (1,11): unexpected-cell-in-table-body
  40. #document
  41. | <html>
  42. | <head>
  43. | <body>
  44. | <table>
  45. | <tbody>
  46. | <tr>
  47. | <td>
  48. | "test"
  49. #data
  50. <frame>test
  51. #errors
  52. (1,7): expected-doctype-but-got-start-tag
  53. (1,7): unexpected-start-tag-ignored
  54. #document
  55. | <html>
  56. | <head>
  57. | <body>
  58. | "test"
  59. #data
  60. <!DOCTYPE html><frameset>test
  61. #errors
  62. (1,29): unexpected-char-in-frameset
  63. (1,29): unexpected-char-in-frameset
  64. (1,29): unexpected-char-in-frameset
  65. (1,29): unexpected-char-in-frameset
  66. (1,29): eof-in-frameset
  67. #document
  68. | <!DOCTYPE html>
  69. | <html>
  70. | <head>
  71. | <frameset>
  72. #data
  73. <!DOCTYPE html><frameset> te st
  74. #errors
  75. (1,29): unexpected-char-in-frameset
  76. (1,29): unexpected-char-in-frameset
  77. (1,29): unexpected-char-in-frameset
  78. (1,29): unexpected-char-in-frameset
  79. (1,29): eof-in-frameset
  80. #document
  81. | <!DOCTYPE html>
  82. | <html>
  83. | <head>
  84. | <frameset>
  85. | " "
  86. #data
  87. <!DOCTYPE html><frameset></frameset> te st
  88. #errors
  89. (1,29): unexpected-char-after-frameset
  90. (1,29): unexpected-char-after-frameset
  91. (1,29): unexpected-char-after-frameset
  92. (1,29): unexpected-char-after-frameset
  93. #document
  94. | <!DOCTYPE html>
  95. | <html>
  96. | <head>
  97. | <frameset>
  98. | " "
  99. #data
  100. <!DOCTYPE html><frameset><!DOCTYPE html>
  101. #errors
  102. (1,40): unexpected-doctype
  103. (1,40): eof-in-frameset
  104. #document
  105. | <!DOCTYPE html>
  106. | <html>
  107. | <head>
  108. | <frameset>
  109. #data
  110. <!DOCTYPE html><font><p><b>test</font>
  111. #errors
  112. (1,38): adoption-agency-1.3
  113. (1,38): adoption-agency-1.3
  114. #document
  115. | <!DOCTYPE html>
  116. | <html>
  117. | <head>
  118. | <body>
  119. | <font>
  120. | <p>
  121. | <font>
  122. | <b>
  123. | "test"
  124. #data
  125. <!DOCTYPE html><dt><div><dd>
  126. #errors
  127. (1,28): end-tag-too-early
  128. #document
  129. | <!DOCTYPE html>
  130. | <html>
  131. | <head>
  132. | <body>
  133. | <dt>
  134. | <div>
  135. | <dd>
  136. #data
  137. <script></x
  138. #errors
  139. (1,8): expected-doctype-but-got-start-tag
  140. (1,11): expected-named-closing-tag-but-got-eof
  141. #document
  142. | <html>
  143. | <head>
  144. | <script>
  145. | "</x"
  146. | <body>
  147. #data
  148. <table><plaintext><td>
  149. #errors
  150. (1,7): expected-doctype-but-got-start-tag
  151. (1,18): unexpected-start-tag-implies-table-voodoo
  152. (1,22): foster-parenting-character-in-table
  153. (1,22): foster-parenting-character-in-table
  154. (1,22): foster-parenting-character-in-table
  155. (1,22): foster-parenting-character-in-table
  156. (1,22): eof-in-table
  157. #document
  158. | <html>
  159. | <head>
  160. | <body>
  161. | <plaintext>
  162. | "<td>"
  163. | <table>
  164. #data
  165. <plaintext></plaintext>
  166. #errors
  167. (1,11): expected-doctype-but-got-start-tag
  168. (1,23): expected-closing-tag-but-got-eof
  169. #document
  170. | <html>
  171. | <head>
  172. | <body>
  173. | <plaintext>
  174. | "</plaintext>"
  175. #data
  176. <!DOCTYPE html><table><tr>TEST
  177. #errors
  178. (1,30): foster-parenting-character-in-table
  179. (1,30): foster-parenting-character-in-table
  180. (1,30): foster-parenting-character-in-table
  181. (1,30): foster-parenting-character-in-table
  182. (1,30): eof-in-table
  183. #document
  184. | <!DOCTYPE html>
  185. | <html>
  186. | <head>
  187. | <body>
  188. | "TEST"
  189. | <table>
  190. | <tbody>
  191. | <tr>
  192. #data
  193. <!DOCTYPE html><body t1=1><body t2=2><body t3=3 t4=4>
  194. #errors
  195. (1,37): unexpected-start-tag
  196. (1,53): unexpected-start-tag
  197. #document
  198. | <!DOCTYPE html>
  199. | <html>
  200. | <head>
  201. | <body>
  202. | t1="1"
  203. | t2="2"
  204. | t3="3"
  205. | t4="4"
  206. #data
  207. </b test
  208. #errors
  209. (1,8): eof-in-attribute-name
  210. (1,8): expected-doctype-but-got-eof
  211. #document
  212. | <html>
  213. | <head>
  214. | <body>
  215. #data
  216. <!DOCTYPE html></b test<b &=&amp>X
  217. #errors
  218. (1,24): invalid-character-in-attribute-name
  219. (1,32): named-entity-without-semicolon
  220. (1,33): attributes-in-end-tag
  221. (1,33): unexpected-end-tag-before-html
  222. #document
  223. | <!DOCTYPE html>
  224. | <html>
  225. | <head>
  226. | <body>
  227. | "X"
  228. #data
  229. <!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt
  230. #errors
  231. (1,9): need-space-after-doctype
  232. (1,54): expected-named-closing-tag-but-got-eof
  233. #document
  234. | <!DOCTYPE html>
  235. | <html>
  236. | <head>
  237. | <script>
  238. | type="text/x-foobar;baz"
  239. | "X</SCRipt"
  240. | <body>
  241. #data
  242. &
  243. #errors
  244. (1,1): expected-doctype-but-got-chars
  245. #document
  246. | <html>
  247. | <head>
  248. | <body>
  249. | "&"
  250. #data
  251. &#
  252. #errors
  253. (1,2): expected-numeric-entity
  254. (1,2): expected-doctype-but-got-chars
  255. #document
  256. | <html>
  257. | <head>
  258. | <body>
  259. | "&#"
  260. #data
  261. &#X
  262. #errors
  263. (1,3): expected-numeric-entity
  264. (1,3): expected-doctype-but-got-chars
  265. #document
  266. | <html>
  267. | <head>
  268. | <body>
  269. | "&#X"
  270. #data
  271. &#x
  272. #errors
  273. (1,3): expected-numeric-entity
  274. (1,3): expected-doctype-but-got-chars
  275. #document
  276. | <html>
  277. | <head>
  278. | <body>
  279. | "&#x"
  280. #data
  281. &#45
  282. #errors
  283. (1,4): numeric-entity-without-semicolon
  284. (1,4): expected-doctype-but-got-chars
  285. #document
  286. | <html>
  287. | <head>
  288. | <body>
  289. | "-"
  290. #data
  291. &x-test
  292. #errors
  293. (1,2): expected-doctype-but-got-chars
  294. #document
  295. | <html>
  296. | <head>
  297. | <body>
  298. | "&x-test"
  299. #data
  300. <!doctypehtml><p><li>
  301. #errors
  302. (1,9): need-space-after-doctype
  303. #document
  304. | <!DOCTYPE html>
  305. | <html>
  306. | <head>
  307. | <body>
  308. | <p>
  309. | <li>
  310. #data
  311. <!doctypehtml><p><dt>
  312. #errors
  313. (1,9): need-space-after-doctype
  314. #document
  315. | <!DOCTYPE html>
  316. | <html>
  317. | <head>
  318. | <body>
  319. | <p>
  320. | <dt>
  321. #data
  322. <!doctypehtml><p><dd>
  323. #errors
  324. (1,9): need-space-after-doctype
  325. #document
  326. | <!DOCTYPE html>
  327. | <html>
  328. | <head>
  329. | <body>
  330. | <p>
  331. | <dd>
  332. #data
  333. <!doctypehtml><p><form>
  334. #errors
  335. (1,9): need-space-after-doctype
  336. (1,23): expected-closing-tag-but-got-eof
  337. #document
  338. | <!DOCTYPE html>
  339. | <html>
  340. | <head>
  341. | <body>
  342. | <p>
  343. | <form>
  344. #data
  345. <!DOCTYPE html><p></P>X
  346. #errors
  347. #document
  348. | <!DOCTYPE html>
  349. | <html>
  350. | <head>
  351. | <body>
  352. | <p>
  353. | "X"
  354. #data
  355. &AMP
  356. #errors
  357. (1,4): named-entity-without-semicolon
  358. (1,4): expected-doctype-but-got-chars
  359. #document
  360. | <html>
  361. | <head>
  362. | <body>
  363. | "&"
  364. #data
  365. &AMp;
  366. #errors
  367. (1,3): expected-named-entity
  368. (1,3): expected-doctype-but-got-chars
  369. #document
  370. | <html>
  371. | <head>
  372. | <body>
  373. | "&AMp;"
  374. #data
  375. <!DOCTYPE html><html><head></head><body><thisISasillyTESTelementNameToMakeSureCrazyTagNamesArePARSEDcorrectLY>
  376. #errors
  377. (1,110): expected-closing-tag-but-got-eof
  378. #document
  379. | <!DOCTYPE html>
  380. | <html>
  381. | <head>
  382. | <body>
  383. | <thisisasillytestelementnametomakesurecrazytagnamesareparsedcorrectly>
  384. #data
  385. <!DOCTYPE html>X</body>X
  386. #errors
  387. (1,24): unexpected-char-after-body
  388. #document
  389. | <!DOCTYPE html>
  390. | <html>
  391. | <head>
  392. | <body>
  393. | "XX"
  394. #data
  395. <!DOCTYPE html><!-- X
  396. #errors
  397. (1,21): eof-in-comment
  398. #document
  399. | <!DOCTYPE html>
  400. | <!-- X -->
  401. | <html>
  402. | <head>
  403. | <body>
  404. #data
  405. <!DOCTYPE html><table><caption>test TEST</caption><td>test
  406. #errors
  407. (1,54): unexpected-cell-in-table-body
  408. (1,58): expected-closing-tag-but-got-eof
  409. #document
  410. | <!DOCTYPE html>
  411. | <html>
  412. | <head>
  413. | <body>
  414. | <table>
  415. | <caption>
  416. | "test TEST"
  417. | <tbody>
  418. | <tr>
  419. | <td>
  420. | "test"
  421. #data
  422. <!DOCTYPE html><select><option><optgroup>
  423. #errors
  424. (1,41): eof-in-select
  425. #document
  426. | <!DOCTYPE html>
  427. | <html>
  428. | <head>
  429. | <body>
  430. | <select>
  431. | <option>
  432. | <optgroup>
  433. #data
  434. <!DOCTYPE html><select><optgroup><option></optgroup><option><select><option>
  435. #errors
  436. (1,68): unexpected-select-in-select
  437. (1,76): expected-closing-tag-but-got-eof
  438. #document
  439. | <!DOCTYPE html>
  440. | <html>
  441. | <head>
  442. | <body>
  443. | <select>
  444. | <optgroup>
  445. | <option>
  446. | <option>
  447. | <option>
  448. #data
  449. <!DOCTYPE html><select><optgroup><option><optgroup>
  450. #errors
  451. (1,51): eof-in-select
  452. #document
  453. | <!DOCTYPE html>
  454. | <html>
  455. | <head>
  456. | <body>
  457. | <select>
  458. | <optgroup>
  459. | <option>
  460. | <optgroup>
  461. #data
  462. <!DOCTYPE html><datalist><option>foo</datalist>bar
  463. #errors
  464. #document
  465. | <!DOCTYPE html>
  466. | <html>
  467. | <head>
  468. | <body>
  469. | <datalist>
  470. | <option>
  471. | "foo"
  472. | "bar"
  473. #data
  474. <!DOCTYPE html><font><input><input></font>
  475. #errors
  476. #document
  477. | <!DOCTYPE html>
  478. | <html>
  479. | <head>
  480. | <body>
  481. | <font>
  482. | <input>
  483. | <input>
  484. #data
  485. <!DOCTYPE html><!-- XXX - XXX -->
  486. #errors
  487. #document
  488. | <!DOCTYPE html>
  489. | <!-- XXX - XXX -->
  490. | <html>
  491. | <head>
  492. | <body>
  493. #data
  494. <!DOCTYPE html><!-- XXX - XXX
  495. #errors
  496. (1,29): eof-in-comment
  497. #document
  498. | <!DOCTYPE html>
  499. | <!-- XXX - XXX -->
  500. | <html>
  501. | <head>
  502. | <body>
  503. #data
  504. <!DOCTYPE html><!-- XXX - XXX - XXX -->
  505. #errors
  506. #document
  507. | <!DOCTYPE html>
  508. | <!-- XXX - XXX - XXX -->
  509. | <html>
  510. | <head>
  511. | <body>
  512. #data
  513. test
  514. test
  515. #errors
  516. (2,4): expected-doctype-but-got-chars
  517. #document
  518. | <html>
  519. | <head>
  520. | <body>
  521. | "test
  522. test"
  523. #data
  524. <!DOCTYPE html><body><title>test</body></title>
  525. #errors
  526. #document
  527. | <!DOCTYPE html>
  528. | <html>
  529. | <head>
  530. | <body>
  531. | <title>
  532. | "test</body>"
  533. #data
  534. <!DOCTYPE html><body><title>X</title><meta name=z><link rel=foo><style>
  535. x { content:"</style" } </style>
  536. #errors
  537. #document
  538. | <!DOCTYPE html>
  539. | <html>
  540. | <head>
  541. | <body>
  542. | <title>
  543. | "X"
  544. | <meta>
  545. | name="z"
  546. | <link>
  547. | rel="foo"
  548. | <style>
  549. | "
  550. x { content:"</style" } "
  551. #data
  552. <!DOCTYPE html><select><optgroup></optgroup></select>
  553. #errors
  554. #document
  555. | <!DOCTYPE html>
  556. | <html>
  557. | <head>
  558. | <body>
  559. | <select>
  560. | <optgroup>
  561. #data
  562. #errors
  563. (2,1): expected-doctype-but-got-eof
  564. #document
  565. | <html>
  566. | <head>
  567. | <body>
  568. #data
  569. <!DOCTYPE html> <html>
  570. #errors
  571. #document
  572. | <!DOCTYPE html>
  573. | <html>
  574. | <head>
  575. | <body>
  576. #data
  577. <!DOCTYPE html><script>
  578. </script> <title>x</title> </head>
  579. #errors
  580. #document
  581. | <!DOCTYPE html>
  582. | <html>
  583. | <head>
  584. | <script>
  585. | "
  586. "
  587. | " "
  588. | <title>
  589. | "x"
  590. | " "
  591. | <body>
  592. #data
  593. <!DOCTYPE html><html><body><html id=x>
  594. #errors
  595. (1,38): non-html-root
  596. #document
  597. | <!DOCTYPE html>
  598. | <html>
  599. | id="x"
  600. | <head>
  601. | <body>
  602. #data
  603. <!DOCTYPE html>X</body><html id="x">
  604. #errors
  605. (1,36): non-html-root
  606. #document
  607. | <!DOCTYPE html>
  608. | <html>
  609. | id="x"
  610. | <head>
  611. | <body>
  612. | "X"
  613. #data
  614. <!DOCTYPE html><head><html id=x>
  615. #errors
  616. (1,32): non-html-root
  617. #document
  618. | <!DOCTYPE html>
  619. | <html>
  620. | id="x"
  621. | <head>
  622. | <body>
  623. #data
  624. <!DOCTYPE html>X</html>X
  625. #errors
  626. (1,24): expected-eof-but-got-char
  627. #document
  628. | <!DOCTYPE html>
  629. | <html>
  630. | <head>
  631. | <body>
  632. | "XX"
  633. #data
  634. <!DOCTYPE html>X</html>
  635. #errors
  636. #document
  637. | <!DOCTYPE html>
  638. | <html>
  639. | <head>
  640. | <body>
  641. | "X "
  642. #data
  643. <!DOCTYPE html>X</html><p>X
  644. #errors
  645. (1,26): expected-eof-but-got-start-tag
  646. #document
  647. | <!DOCTYPE html>
  648. | <html>
  649. | <head>
  650. | <body>
  651. | "X"
  652. | <p>
  653. | "X"
  654. #data
  655. <!DOCTYPE html>X<p/x/y/z>
  656. #errors
  657. (1,19): unexpected-character-after-solidus-in-tag
  658. (1,21): unexpected-character-after-solidus-in-tag
  659. (1,23): unexpected-character-after-solidus-in-tag
  660. #document
  661. | <!DOCTYPE html>
  662. | <html>
  663. | <head>
  664. | <body>
  665. | "X"
  666. | <p>
  667. | x=""
  668. | y=""
  669. | z=""
  670. #data
  671. <!DOCTYPE html><!--x--
  672. #errors
  673. (1,22): eof-in-comment-double-dash
  674. #document
  675. | <!DOCTYPE html>
  676. | <!-- x -->
  677. | <html>
  678. | <head>
  679. | <body>
  680. #data
  681. <!DOCTYPE html><table><tr><td></p></table>
  682. #errors
  683. (1,34): unexpected-end-tag
  684. #document
  685. | <!DOCTYPE html>
  686. | <html>
  687. | <head>
  688. | <body>
  689. | <table>
  690. | <tbody>
  691. | <tr>
  692. | <td>
  693. | <p>
  694. #data
  695. <!DOCTYPE <!DOCTYPE HTML>><!--<!--x-->-->
  696. #errors
  697. (1,20): expected-space-or-right-bracket-in-doctype
  698. (1,25): unknown-doctype
  699. (1,35): unexpected-char-in-comment
  700. #document
  701. | <!DOCTYPE <!doctype>
  702. | <html>
  703. | <head>
  704. | <body>
  705. | ">"
  706. | <!-- <!--x -->
  707. | "-->"
  708. #data
  709. <!doctype html><div><form></form><div></div></div>
  710. #errors
  711. #document
  712. | <!DOCTYPE html>
  713. | <html>
  714. | <head>
  715. | <body>
  716. | <div>
  717. | <form>
  718. | <div>