comments01.dat 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. #data
  2. FOO<!-- BAR -->BAZ
  3. #errors
  4. (1,3): expected-doctype-but-got-chars
  5. #document
  6. | <html>
  7. | <head>
  8. | <body>
  9. | "FOO"
  10. | <!-- BAR -->
  11. | "BAZ"
  12. #data
  13. FOO<!-- BAR --!>BAZ
  14. #errors
  15. (1,3): expected-doctype-but-got-chars
  16. (1,15): unexpected-bang-after-double-dash-in-comment
  17. #document
  18. | <html>
  19. | <head>
  20. | <body>
  21. | "FOO"
  22. | <!-- BAR -->
  23. | "BAZ"
  24. #data
  25. FOO<!-- BAR -- >BAZ
  26. #errors
  27. (1,3): expected-doctype-but-got-chars
  28. (1,15): unexpected-char-in-comment
  29. (1,21): eof-in-comment
  30. #document
  31. | <html>
  32. | <head>
  33. | <body>
  34. | "FOO"
  35. | <!-- BAR -- >BAZ -->
  36. #data
  37. FOO<!-- BAR -- <QUX> -- MUX -->BAZ
  38. #errors
  39. (1,3): expected-doctype-but-got-chars
  40. (1,15): unexpected-char-in-comment
  41. (1,24): unexpected-char-in-comment
  42. #document
  43. | <html>
  44. | <head>
  45. | <body>
  46. | "FOO"
  47. | <!-- BAR -- <QUX> -- MUX -->
  48. | "BAZ"
  49. #data
  50. FOO<!-- BAR -- <QUX> -- MUX --!>BAZ
  51. #errors
  52. (1,3): expected-doctype-but-got-chars
  53. (1,15): unexpected-char-in-comment
  54. (1,24): unexpected-char-in-comment
  55. (1,31): unexpected-bang-after-double-dash-in-comment
  56. #document
  57. | <html>
  58. | <head>
  59. | <body>
  60. | "FOO"
  61. | <!-- BAR -- <QUX> -- MUX -->
  62. | "BAZ"
  63. #data
  64. FOO<!-- BAR -- <QUX> -- MUX -- >BAZ
  65. #errors
  66. (1,3): expected-doctype-but-got-chars
  67. (1,15): unexpected-char-in-comment
  68. (1,24): unexpected-char-in-comment
  69. (1,31): unexpected-char-in-comment
  70. (1,35): eof-in-comment
  71. #document
  72. | <html>
  73. | <head>
  74. | <body>
  75. | "FOO"
  76. | <!-- BAR -- <QUX> -- MUX -- >BAZ -->
  77. #data
  78. FOO<!---->BAZ
  79. #errors
  80. (1,3): expected-doctype-but-got-chars
  81. #document
  82. | <html>
  83. | <head>
  84. | <body>
  85. | "FOO"
  86. | <!-- -->
  87. | "BAZ"
  88. #data
  89. FOO<!--->BAZ
  90. #errors
  91. (1,3): expected-doctype-but-got-chars
  92. (1,9): incorrect-comment
  93. #document
  94. | <html>
  95. | <head>
  96. | <body>
  97. | "FOO"
  98. | <!-- -->
  99. | "BAZ"
  100. #data
  101. FOO<!-->BAZ
  102. #errors
  103. (1,3): expected-doctype-but-got-chars
  104. (1,8): incorrect-comment
  105. #document
  106. | <html>
  107. | <head>
  108. | <body>
  109. | "FOO"
  110. | <!-- -->
  111. | "BAZ"
  112. #data
  113. <?xml version="1.0">Hi
  114. #errors
  115. (1,1): expected-tag-name-but-got-question-mark
  116. (1,22): expected-doctype-but-got-chars
  117. #document
  118. | <!-- ?xml version="1.0" -->
  119. | <html>
  120. | <head>
  121. | <body>
  122. | "Hi"
  123. #data
  124. <?xml version="1.0">
  125. #errors
  126. (1,1): expected-tag-name-but-got-question-mark
  127. (1,20): expected-doctype-but-got-eof
  128. #document
  129. | <!-- ?xml version="1.0" -->
  130. | <html>
  131. | <head>
  132. | <body>
  133. #data
  134. <?xml version
  135. #errors
  136. (1,1): expected-tag-name-but-got-question-mark
  137. (1,13): expected-doctype-but-got-eof
  138. #document
  139. | <!-- ?xml version -->
  140. | <html>
  141. | <head>
  142. | <body>
  143. #data
  144. FOO<!----->BAZ
  145. #errors
  146. (1,3): expected-doctype-but-got-chars
  147. (1,10): unexpected-dash-after-double-dash-in-comment
  148. #document
  149. | <html>
  150. | <head>
  151. | <body>
  152. | "FOO"
  153. | <!-- - -->
  154. | "BAZ"
  155. #data
  156. <html><!-- comment --><title>Comment before head</title>
  157. #errors
  158. (1,6): expected-doctype-but-got-start-tag
  159. #document
  160. | <html>
  161. | <!-- comment -->
  162. | <head>
  163. | <title>
  164. | "Comment before head"
  165. | <body>