html5test-com.dat 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. #data
  2. <div<div>
  3. #errors
  4. (1,9): expected-doctype-but-got-start-tag
  5. (1,9): expected-closing-tag-but-got-eof
  6. #document
  7. | <html>
  8. | <head>
  9. | <body>
  10. | <div<div>
  11. #data
  12. <div foo<bar=''>
  13. #errors
  14. (1,9): invalid-character-in-attribute-name
  15. (1,16): expected-doctype-but-got-start-tag
  16. (1,16): expected-closing-tag-but-got-eof
  17. #document
  18. | <html>
  19. | <head>
  20. | <body>
  21. | <div>
  22. | foo<bar=""
  23. #data
  24. <div foo=`bar`>
  25. #errors
  26. (1,10): equals-in-unquoted-attribute-value
  27. (1,14): unexpected-character-in-unquoted-attribute-value
  28. (1,15): expected-doctype-but-got-start-tag
  29. (1,15): expected-closing-tag-but-got-eof
  30. #document
  31. | <html>
  32. | <head>
  33. | <body>
  34. | <div>
  35. | foo="`bar`"
  36. #data
  37. <div \"foo=''>
  38. #errors
  39. (1,7): invalid-character-in-attribute-name
  40. (1,14): expected-doctype-but-got-start-tag
  41. (1,14): expected-closing-tag-but-got-eof
  42. #document
  43. | <html>
  44. | <head>
  45. | <body>
  46. | <div>
  47. | \"foo=""
  48. #data
  49. <a href='\nbar'></a>
  50. #errors
  51. (1,16): expected-doctype-but-got-start-tag
  52. #document
  53. | <html>
  54. | <head>
  55. | <body>
  56. | <a>
  57. | href="\nbar"
  58. #data
  59. <!DOCTYPE html>
  60. #errors
  61. #document
  62. | <!DOCTYPE html>
  63. | <html>
  64. | <head>
  65. | <body>
  66. #data
  67. &lang;&rang;
  68. #errors
  69. (1,6): expected-doctype-but-got-chars
  70. #document
  71. | <html>
  72. | <head>
  73. | <body>
  74. | "⟨⟩"
  75. #data
  76. &apos;
  77. #errors
  78. (1,6): expected-doctype-but-got-chars
  79. #document
  80. | <html>
  81. | <head>
  82. | <body>
  83. | "'"
  84. #data
  85. &ImaginaryI;
  86. #errors
  87. (1,12): expected-doctype-but-got-chars
  88. #document
  89. | <html>
  90. | <head>
  91. | <body>
  92. | "ⅈ"
  93. #data
  94. &Kopf;
  95. #errors
  96. (1,6): expected-doctype-but-got-chars
  97. #document
  98. | <html>
  99. | <head>
  100. | <body>
  101. | "𝕂"
  102. #data
  103. &notinva;
  104. #errors
  105. (1,9): expected-doctype-but-got-chars
  106. #document
  107. | <html>
  108. | <head>
  109. | <body>
  110. | "∉"
  111. #data
  112. <?import namespace="foo" implementation="#bar">
  113. #errors
  114. (1,1): expected-tag-name-but-got-question-mark
  115. (1,47): expected-doctype-but-got-eof
  116. #document
  117. | <!-- ?import namespace="foo" implementation="#bar" -->
  118. | <html>
  119. | <head>
  120. | <body>
  121. #data
  122. <!--foo--bar-->
  123. #errors
  124. (1,10): unexpected-char-in-comment
  125. (1,15): expected-doctype-but-got-eof
  126. #document
  127. | <!-- foo--bar -->
  128. | <html>
  129. | <head>
  130. | <body>
  131. #data
  132. <![CDATA[x]]>
  133. #errors
  134. (1,2): expected-dashes-or-doctype
  135. (1,13): expected-doctype-but-got-eof
  136. #document
  137. | <!-- [CDATA[x]] -->
  138. | <html>
  139. | <head>
  140. | <body>
  141. #data
  142. <textarea><!--</textarea>--></textarea>
  143. #errors
  144. (1,10): expected-doctype-but-got-start-tag
  145. (1,39): unexpected-end-tag
  146. #document
  147. | <html>
  148. | <head>
  149. | <body>
  150. | <textarea>
  151. | "<!--"
  152. | "-->"
  153. #data
  154. <textarea><!--</textarea>-->
  155. #errors
  156. (1,10): expected-doctype-but-got-start-tag
  157. #document
  158. | <html>
  159. | <head>
  160. | <body>
  161. | <textarea>
  162. | "<!--"
  163. | "-->"
  164. #data
  165. <style><!--</style>--></style>
  166. #errors
  167. (1,7): expected-doctype-but-got-start-tag
  168. (1,30): unexpected-end-tag
  169. #document
  170. | <html>
  171. | <head>
  172. | <style>
  173. | "<!--"
  174. | <body>
  175. | "-->"
  176. #data
  177. <style><!--</style>-->
  178. #errors
  179. (1,7): expected-doctype-but-got-start-tag
  180. #document
  181. | <html>
  182. | <head>
  183. | <style>
  184. | "<!--"
  185. | <body>
  186. | "-->"
  187. #data
  188. <ul><li>A </li> <li>B</li></ul>
  189. #errors
  190. (1,4): expected-doctype-but-got-start-tag
  191. #document
  192. | <html>
  193. | <head>
  194. | <body>
  195. | <ul>
  196. | <li>
  197. | "A "
  198. | " "
  199. | <li>
  200. | "B"
  201. #data
  202. <table><form><input type=hidden><input></form><div></div></table>
  203. #errors
  204. (1,7): expected-doctype-but-got-start-tag
  205. (1,13): unexpected-form-in-table
  206. (1,32): unexpected-hidden-input-in-table
  207. (1,39): unexpected-start-tag-implies-table-voodoo
  208. (1,46): unexpected-end-tag-implies-table-voodoo
  209. (1,46): unexpected-end-tag
  210. (1,51): unexpected-start-tag-implies-table-voodoo
  211. (1,57): unexpected-end-tag-implies-table-voodoo
  212. #document
  213. | <html>
  214. | <head>
  215. | <body>
  216. | <input>
  217. | <div>
  218. | <table>
  219. | <form>
  220. | <input>
  221. | type="hidden"
  222. #data
  223. <i>A<b>B<p></i>C</b>D
  224. #errors
  225. (1,3): expected-doctype-but-got-start-tag
  226. (1,15): adoption-agency-1.3
  227. (1,20): adoption-agency-1.3
  228. #document
  229. | <html>
  230. | <head>
  231. | <body>
  232. | <i>
  233. | "A"
  234. | <b>
  235. | "B"
  236. | <b>
  237. | <p>
  238. | <b>
  239. | <i>
  240. | "C"
  241. | "D"
  242. #data
  243. <div></div>
  244. #errors
  245. (1,5): expected-doctype-but-got-start-tag
  246. #document
  247. | <html>
  248. | <head>
  249. | <body>
  250. | <div>
  251. #data
  252. <svg></svg>
  253. #errors
  254. (1,5): expected-doctype-but-got-start-tag
  255. #document
  256. | <html>
  257. | <head>
  258. | <body>
  259. | <svg svg>
  260. #data
  261. <math></math>
  262. #errors
  263. (1,6): expected-doctype-but-got-start-tag
  264. #document
  265. | <html>
  266. | <head>
  267. | <body>
  268. | <math math>