tests10.dat 14 KB

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