tests2.dat 13 KB

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