html-to-markdown 2.24.6 → 2.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +1 -1
  4. data/ext/html-to-markdown-rb/native/Cargo.lock +9 -32
  5. data/ext/html-to-markdown-rb/native/Cargo.toml +1 -1
  6. data/lib/html_to_markdown/version.rb +1 -1
  7. data/rust-vendor/html-to-markdown-rs/Cargo.toml +0 -1
  8. data/rust-vendor/html-to-markdown-rs/src/converter/main_helpers.rs +1 -1
  9. data/rust-vendor/html-to-markdown-rs/src/hocr/converter/hierarchy.rs +20 -5
  10. data/rust-vendor/html-to-markdown-rs/src/lib.rs +1 -0
  11. data/rust-vendor/{markup5ever_rcdom/lib.rs → html-to-markdown-rs/src/rcdom.rs} +56 -91
  12. data/rust-vendor/html-to-markdown-rs/tests/hocr_compliance_test.rs +157 -0
  13. data/rust-vendor/memmap2/.cargo-checksum.json +1 -1
  14. data/rust-vendor/memmap2/.cargo_vcs_info.json +1 -1
  15. data/rust-vendor/memmap2/CHANGELOG.md +8 -0
  16. data/rust-vendor/memmap2/Cargo.lock +1 -1
  17. data/rust-vendor/memmap2/Cargo.toml +2 -1
  18. data/rust-vendor/memmap2/Cargo.toml.orig +2 -1
  19. data/rust-vendor/memmap2/src/lib.rs +25 -1
  20. data/rust-vendor/memmap2/src/stub.rs +1 -4
  21. data/rust-vendor/memmap2/src/unix.rs +14 -1
  22. data/rust-vendor/png/.cargo-checksum.json +1 -1
  23. data/rust-vendor/png/.cargo_vcs_info.json +1 -1
  24. data/rust-vendor/png/CHANGES.md +44 -0
  25. data/rust-vendor/png/Cargo.lock +124 -171
  26. data/rust-vendor/png/Cargo.toml +1 -1
  27. data/rust-vendor/png/Cargo.toml.orig +1 -1
  28. data/rust-vendor/png/benches/expand_paletted.rs +5 -5
  29. data/rust-vendor/png/benches/unfilter.rs +3 -3
  30. data/rust-vendor/png/src/adam7.rs +17 -10
  31. data/rust-vendor/png/src/common.rs +8 -8
  32. data/rust-vendor/png/src/decoder/mod.rs +53 -20
  33. data/rust-vendor/png/src/decoder/stream.rs +263 -78
  34. data/rust-vendor/png/src/decoder/unfiltering_buffer.rs +210 -53
  35. data/rust-vendor/png/src/decoder/zlib.rs +130 -90
  36. data/rust-vendor/png/src/encoder.rs +4 -2
  37. data/rust-vendor/png/src/{filter.rs → filter/mod.rs} +100 -367
  38. data/rust-vendor/png/src/filter/optimization-notes.md +104 -0
  39. data/rust-vendor/png/src/filter/paeth.rs +398 -0
  40. data/rust-vendor/png/src/filter/simd.rs +308 -0
  41. data/rust-vendor/png/src/lib.rs +1 -0
  42. data/rust-vendor/syn/.cargo-checksum.json +1 -1
  43. data/rust-vendor/syn/.cargo_vcs_info.json +1 -1
  44. data/rust-vendor/syn/Cargo.lock +40 -41
  45. data/rust-vendor/syn/Cargo.toml +1 -1
  46. data/rust-vendor/syn/Cargo.toml.orig +1 -1
  47. data/rust-vendor/syn/src/item.rs +61 -40
  48. data/rust-vendor/syn/src/lib.rs +2 -1
  49. data/rust-vendor/syn/tests/test_item.rs +54 -0
  50. data/rust-vendor/unicode-ident/.cargo-checksum.json +1 -1
  51. data/rust-vendor/unicode-ident/.cargo_vcs_info.json +1 -1
  52. data/rust-vendor/unicode-ident/Cargo.lock +21 -21
  53. data/rust-vendor/unicode-ident/Cargo.toml +1 -1
  54. data/rust-vendor/unicode-ident/Cargo.toml.orig +1 -1
  55. data/rust-vendor/unicode-ident/src/lib.rs +1 -1
  56. data/rust-vendor/unicode-ident/src/tables.rs +87 -97
  57. data/rust-vendor/unicode-ident/tests/static_size.rs +1 -1
  58. metadata +7 -177
  59. data/rust-vendor/markup5ever_rcdom/.cargo-checksum.json +0 -1
  60. data/rust-vendor/markup5ever_rcdom/.cargo_vcs_info.json +0 -7
  61. data/rust-vendor/markup5ever_rcdom/Cargo.lock +0 -658
  62. data/rust-vendor/markup5ever_rcdom/Cargo.toml +0 -109
  63. data/rust-vendor/markup5ever_rcdom/Cargo.toml.orig +0 -42
  64. data/rust-vendor/markup5ever_rcdom/LICENSE-APACHE +0 -201
  65. data/rust-vendor/markup5ever_rcdom/LICENSE-MIT +0 -25
  66. data/rust-vendor/markup5ever_rcdom/README.md +0 -7
  67. data/rust-vendor/markup5ever_rcdom/custom-html5lib-tokenizer-tests/regression.test +0 -69
  68. data/rust-vendor/markup5ever_rcdom/data/test/ignore +0 -1
  69. data/rust-vendor/markup5ever_rcdom/examples/hello_xml.rs +0 -39
  70. data/rust-vendor/markup5ever_rcdom/examples/html2html.rs +0 -51
  71. data/rust-vendor/markup5ever_rcdom/examples/print-rcdom.rs +0 -78
  72. data/rust-vendor/markup5ever_rcdom/examples/xml_tree_printer.rs +0 -67
  73. data/rust-vendor/markup5ever_rcdom/html5lib-tests/.gitattributes +0 -2
  74. data/rust-vendor/markup5ever_rcdom/html5lib-tests/.github/workflows/downstream.yml +0 -76
  75. data/rust-vendor/markup5ever_rcdom/html5lib-tests/.github/workflows/lint.yml +0 -25
  76. data/rust-vendor/markup5ever_rcdom/html5lib-tests/.gitignore +0 -79
  77. data/rust-vendor/markup5ever_rcdom/html5lib-tests/AUTHORS.rst +0 -34
  78. data/rust-vendor/markup5ever_rcdom/html5lib-tests/LICENSE +0 -21
  79. data/rust-vendor/markup5ever_rcdom/html5lib-tests/encoding/chardet/test_big5.txt +0 -51
  80. data/rust-vendor/markup5ever_rcdom/html5lib-tests/encoding/scripted/tests1.dat +0 -5
  81. data/rust-vendor/markup5ever_rcdom/html5lib-tests/encoding/test-yahoo-jp.dat +0 -10
  82. data/rust-vendor/markup5ever_rcdom/html5lib-tests/encoding/tests1.dat +0 -388
  83. data/rust-vendor/markup5ever_rcdom/html5lib-tests/encoding/tests2.dat +0 -115
  84. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint +0 -6
  85. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/__init__.py +0 -0
  86. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/_vendor/__init__.py +0 -0
  87. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/_vendor/funcparserlib/LICENSE +0 -18
  88. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/_vendor/funcparserlib/__init__.py +0 -0
  89. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/_vendor/funcparserlib/lexer.py +0 -211
  90. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/_vendor/funcparserlib/lexer.pyi +0 -34
  91. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/_vendor/funcparserlib/parser.py +0 -872
  92. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/_vendor/funcparserlib/parser.pyi +0 -83
  93. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/_vendor/funcparserlib/py.typed +0 -0
  94. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/_vendor/funcparserlib/util.py +0 -72
  95. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/_vendor/funcparserlib/util.pyi +0 -7
  96. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/_vendor/vendor.txt +0 -1
  97. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/_vendor-patches/funcparserlib.patch +0 -24
  98. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/lint.py +0 -280
  99. data/rust-vendor/markup5ever_rcdom/html5lib-tests/lint_lib/parser.py +0 -177
  100. data/rust-vendor/markup5ever_rcdom/html5lib-tests/pyproject.toml +0 -7
  101. data/rust-vendor/markup5ever_rcdom/html5lib-tests/serializer/core.test +0 -125
  102. data/rust-vendor/markup5ever_rcdom/html5lib-tests/serializer/injectmeta.test +0 -66
  103. data/rust-vendor/markup5ever_rcdom/html5lib-tests/serializer/optionaltags.test +0 -965
  104. data/rust-vendor/markup5ever_rcdom/html5lib-tests/serializer/options.test +0 -60
  105. data/rust-vendor/markup5ever_rcdom/html5lib-tests/serializer/whitespace.test +0 -51
  106. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/README.md +0 -107
  107. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/contentModelFlags.test +0 -93
  108. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/domjs.test +0 -335
  109. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/entities.test +0 -542
  110. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/escapeFlag.test +0 -36
  111. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/namedEntities.test +0 -42422
  112. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/numericEntities.test +0 -1677
  113. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/pendingSpecChanges.test +0 -9
  114. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/test1.test +0 -353
  115. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/test2.test +0 -275
  116. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/test3.test +0 -11233
  117. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/test4.test +0 -532
  118. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/unicodeChars.test +0 -1577
  119. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/unicodeCharsProblematic.test +0 -41
  120. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tokenizer/xmlViolation.test +0 -20
  121. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/README.md +0 -108
  122. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/adoption01.dat +0 -354
  123. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/adoption02.dat +0 -39
  124. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/blocks.dat +0 -695
  125. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/comments01.dat +0 -217
  126. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/doctype01.dat +0 -474
  127. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/domjs-unsafe.dat +0 -0
  128. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/entities01.dat +0 -943
  129. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/entities02.dat +0 -309
  130. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/foreign-fragment.dat +0 -645
  131. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/html5test-com.dat +0 -301
  132. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/inbody01.dat +0 -54
  133. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/isindex.dat +0 -49
  134. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/main-element.dat +0 -46
  135. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/math.dat +0 -104
  136. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/menuitem-element.dat +0 -240
  137. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/namespace-sensitivity.dat +0 -22
  138. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/noscript01.dat +0 -237
  139. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/pending-spec-changes-plain-text-unsafe.dat +0 -0
  140. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/pending-spec-changes.dat +0 -46
  141. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/plain-text-unsafe.dat +0 -0
  142. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/quirks01.dat +0 -53
  143. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/ruby.dat +0 -302
  144. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/scriptdata01.dat +0 -372
  145. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/scripted/adoption01.dat +0 -16
  146. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/scripted/ark.dat +0 -27
  147. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/scripted/webkit01.dat +0 -30
  148. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/search-element.dat +0 -46
  149. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/svg.dat +0 -104
  150. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tables01.dat +0 -322
  151. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/template.dat +0 -1673
  152. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests1.dat +0 -1956
  153. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests10.dat +0 -849
  154. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests11.dat +0 -523
  155. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests12.dat +0 -62
  156. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests14.dat +0 -75
  157. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests15.dat +0 -216
  158. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests16.dat +0 -2602
  159. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests17.dat +0 -179
  160. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests18.dat +0 -558
  161. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests19.dat +0 -1398
  162. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests2.dat +0 -831
  163. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests20.dat +0 -842
  164. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests21.dat +0 -306
  165. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests22.dat +0 -190
  166. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests23.dat +0 -168
  167. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests24.dat +0 -79
  168. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests25.dat +0 -288
  169. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests26.dat +0 -453
  170. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests3.dat +0 -305
  171. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests4.dat +0 -74
  172. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests5.dat +0 -210
  173. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests6.dat +0 -663
  174. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests7.dat +0 -453
  175. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests8.dat +0 -165
  176. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests9.dat +0 -472
  177. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tests_innerHTML_1.dat +0 -843
  178. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/tricky01.dat +0 -336
  179. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/webkit01.dat +0 -785
  180. data/rust-vendor/markup5ever_rcdom/html5lib-tests/tree-construction/webkit02.dat +0 -554
  181. data/rust-vendor/markup5ever_rcdom/tests/foreach_html5lib_test/mod.rs +0 -41
  182. data/rust-vendor/markup5ever_rcdom/tests/html-driver.rs +0 -29
  183. data/rust-vendor/markup5ever_rcdom/tests/html-serializer.rs +0 -265
  184. data/rust-vendor/markup5ever_rcdom/tests/html-tokenizer.rs +0 -487
  185. data/rust-vendor/markup5ever_rcdom/tests/html-tree-builder.rs +0 -298
  186. data/rust-vendor/markup5ever_rcdom/tests/html-tree-sink.rs +0 -141
  187. data/rust-vendor/markup5ever_rcdom/tests/util/find_tests.rs +0 -34
  188. data/rust-vendor/markup5ever_rcdom/tests/util/runner.rs +0 -48
  189. data/rust-vendor/markup5ever_rcdom/tests/xml-driver.rs +0 -101
  190. data/rust-vendor/markup5ever_rcdom/tests/xml-tokenizer.rs +0 -374
  191. data/rust-vendor/markup5ever_rcdom/tests/xml-tree-builder.rs +0 -237
  192. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/AUTHORS.rst +0 -9
  193. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/LICENSE +0 -21
  194. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tokenizer/README.md +0 -92
  195. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tokenizer/comments.test +0 -274
  196. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tokenizer/doctype.test +0 -3232
  197. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tokenizer/entities.test +0 -283
  198. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tokenizer/eof.test +0 -113
  199. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tokenizer/namedEntities.test +0 -42210
  200. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tokenizer/numericEntities.test +0 -1349
  201. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tokenizer/test1.test +0 -162
  202. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tokenizer/test2.test +0 -64
  203. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tokenizer/unicodeChars.test +0 -1295
  204. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tree-construction/README.md +0 -104
  205. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tree-construction/namespace.dat +0 -119
  206. data/rust-vendor/markup5ever_rcdom/xml5lib-tests/tree-construction/test1.dat +0 -124
  207. data/rust-vendor/xml5ever/.cargo-checksum.json +0 -1
  208. data/rust-vendor/xml5ever/.cargo_vcs_info.json +0 -6
  209. data/rust-vendor/xml5ever/Cargo.lock +0 -752
  210. data/rust-vendor/xml5ever/Cargo.toml +0 -69
  211. data/rust-vendor/xml5ever/Cargo.toml.orig +0 -29
  212. data/rust-vendor/xml5ever/LICENSE-APACHE +0 -201
  213. data/rust-vendor/xml5ever/LICENSE-MIT +0 -25
  214. data/rust-vendor/xml5ever/README.md +0 -72
  215. data/rust-vendor/xml5ever/benches/xml5ever.rs +0 -77
  216. data/rust-vendor/xml5ever/data/bench/strong.xml +0 -1
  217. data/rust-vendor/xml5ever/examples/README.md +0 -223
  218. data/rust-vendor/xml5ever/examples/example.xml +0 -3
  219. data/rust-vendor/xml5ever/examples/simple_xml_tokenizer.rs +0 -81
  220. data/rust-vendor/xml5ever/examples/xml_tokenizer.rs +0 -115
  221. data/rust-vendor/xml5ever/src/driver.rs +0 -90
  222. data/rust-vendor/xml5ever/src/lib.rs +0 -47
  223. data/rust-vendor/xml5ever/src/macros.rs +0 -18
  224. data/rust-vendor/xml5ever/src/serialize/mod.rs +0 -216
  225. data/rust-vendor/xml5ever/src/tokenizer/char_ref/mod.rs +0 -456
  226. data/rust-vendor/xml5ever/src/tokenizer/interface.rs +0 -116
  227. data/rust-vendor/xml5ever/src/tokenizer/mod.rs +0 -1344
  228. data/rust-vendor/xml5ever/src/tokenizer/qname.rs +0 -84
  229. data/rust-vendor/xml5ever/src/tokenizer/states.rs +0 -167
  230. data/rust-vendor/xml5ever/src/tree_builder/mod.rs +0 -774
  231. data/rust-vendor/xml5ever/src/tree_builder/types.rs +0 -37
@@ -1,785 +0,0 @@
1
- #data
2
- Test
3
- #errors
4
- (1,4): expected-doctype-but-got-chars
5
- #document
6
- | <html>
7
- | <head>
8
- | <body>
9
- | "Test"
10
-
11
- #data
12
- <div></div>
13
- #errors
14
- (1,5): expected-doctype-but-got-start-tag
15
- #document
16
- | <html>
17
- | <head>
18
- | <body>
19
- | <div>
20
-
21
- #data
22
- <div>Test</div>
23
- #errors
24
- (1,5): expected-doctype-but-got-start-tag
25
- #document
26
- | <html>
27
- | <head>
28
- | <body>
29
- | <div>
30
- | "Test"
31
-
32
- #data
33
- <di
34
- #errors
35
- (1,3): eof-in-tag-name
36
- (1,3): expected-doctype-but-got-eof
37
- #new-errors
38
- (1:4) eof-in-tag
39
- #document
40
- | <html>
41
- | <head>
42
- | <body>
43
-
44
- #data
45
- <div>Hello</div>
46
- <script>
47
- console.log("PASS");
48
- </script>
49
- <div>Bye</div>
50
- #errors
51
- (1,5): expected-doctype-but-got-start-tag
52
- #document
53
- | <html>
54
- | <head>
55
- | <body>
56
- | <div>
57
- | "Hello"
58
- | "
59
- "
60
- | <script>
61
- | "
62
- console.log("PASS");
63
- "
64
- | "
65
- "
66
- | <div>
67
- | "Bye"
68
-
69
- #data
70
- <div foo="bar">Hello</div>
71
- #errors
72
- (1,15): expected-doctype-but-got-start-tag
73
- #document
74
- | <html>
75
- | <head>
76
- | <body>
77
- | <div>
78
- | foo="bar"
79
- | "Hello"
80
-
81
- #data
82
- <div>Hello</div>
83
- <script>
84
- console.log("FOO<span>BAR</span>BAZ");
85
- </script>
86
- <div>Bye</div>
87
- #errors
88
- (1,5): expected-doctype-but-got-start-tag
89
- #document
90
- | <html>
91
- | <head>
92
- | <body>
93
- | <div>
94
- | "Hello"
95
- | "
96
- "
97
- | <script>
98
- | "
99
- console.log("FOO<span>BAR</span>BAZ");
100
- "
101
- | "
102
- "
103
- | <div>
104
- | "Bye"
105
-
106
- #data
107
- <foo bar="baz"></foo><potato quack="duck"></potato>
108
- #errors
109
- (1,15): expected-doctype-but-got-start-tag
110
- #document
111
- | <html>
112
- | <head>
113
- | <body>
114
- | <foo>
115
- | bar="baz"
116
- | <potato>
117
- | quack="duck"
118
-
119
- #data
120
- <foo bar="baz"><potato quack="duck"></potato></foo>
121
- #errors
122
- (1,15): expected-doctype-but-got-start-tag
123
- #document
124
- | <html>
125
- | <head>
126
- | <body>
127
- | <foo>
128
- | bar="baz"
129
- | <potato>
130
- | quack="duck"
131
-
132
- #data
133
- <foo></foo bar="baz"><potato></potato quack="duck">
134
- #errors
135
- (1,5): expected-doctype-but-got-start-tag
136
- (1,21): attributes-in-end-tag
137
- (1,51): attributes-in-end-tag
138
- #new-errors
139
- (1:21) end-tag-with-attributes
140
- (1:51) end-tag-with-attributes
141
- #document
142
- | <html>
143
- | <head>
144
- | <body>
145
- | <foo>
146
- | <potato>
147
-
148
- #data
149
- </ tttt>
150
- #errors
151
- (1,2): expected-closing-tag-but-got-char
152
- (1,8): expected-doctype-but-got-eof
153
- #new-errors
154
- (1:3) invalid-first-character-of-tag-name
155
- #document
156
- | <!-- tttt -->
157
- | <html>
158
- | <head>
159
- | <body>
160
-
161
- #data
162
- <div FOO ><img><img></div>
163
- #errors
164
- (1,10): expected-doctype-but-got-start-tag
165
- #document
166
- | <html>
167
- | <head>
168
- | <body>
169
- | <div>
170
- | foo=""
171
- | <img>
172
- | <img>
173
-
174
- #data
175
- <p>Test</p<p>Test2</p>
176
- #errors
177
- (1,3): expected-doctype-but-got-start-tag
178
- (1,13): unexpected-end-tag
179
- #document
180
- | <html>
181
- | <head>
182
- | <body>
183
- | <p>
184
- | "TestTest2"
185
-
186
- #data
187
- <rdar://problem/6869687>
188
- #errors
189
- (1,7): unexpected-character-after-solidus-in-tag
190
- (1,8): unexpected-character-after-solidus-in-tag
191
- (1,16): unexpected-character-after-solidus-in-tag
192
- (1,24): expected-doctype-but-got-start-tag
193
- (1,24): expected-closing-tag-but-got-eof
194
- #new-errors
195
- (1:8) unexpected-solidus-in-tag
196
- (1:9) unexpected-solidus-in-tag
197
- (1:17) unexpected-solidus-in-tag
198
- #document
199
- | <html>
200
- | <head>
201
- | <body>
202
- | <rdar:>
203
- | 6869687=""
204
- | problem=""
205
-
206
- #data
207
- <A>test< /A>
208
- #errors
209
- (1,3): expected-doctype-but-got-start-tag
210
- (1,8): expected-tag-name
211
- (1,12): expected-closing-tag-but-got-eof
212
- #new-errors
213
- (1:9) invalid-first-character-of-tag-name
214
- #document
215
- | <html>
216
- | <head>
217
- | <body>
218
- | <a>
219
- | "test< /A>"
220
-
221
- #data
222
- &lt;
223
- #errors
224
- (1,4): expected-doctype-but-got-chars
225
- #document
226
- | <html>
227
- | <head>
228
- | <body>
229
- | "<"
230
-
231
- #data
232
- <body foo='bar'><body foo='baz' yo='mama'>
233
- #errors
234
- (1,16): expected-doctype-but-got-start-tag
235
- (1,42): unexpected-start-tag
236
- #document
237
- | <html>
238
- | <head>
239
- | <body>
240
- | foo="bar"
241
- | yo="mama"
242
-
243
- #data
244
- <body></br foo="bar"></body>
245
- #errors
246
- (1,6): expected-doctype-but-got-start-tag
247
- (1,21): attributes-in-end-tag
248
- (1,21): unexpected-end-tag-treated-as
249
- #new-errors
250
- (1:21) end-tag-with-attributes
251
- #document
252
- | <html>
253
- | <head>
254
- | <body>
255
- | <br>
256
-
257
- #data
258
- <bdy><br foo="bar"></body>
259
- #errors
260
- (1,5): expected-doctype-but-got-start-tag
261
- (1,26): expected-one-end-tag-but-got-another
262
- #document
263
- | <html>
264
- | <head>
265
- | <body>
266
- | <bdy>
267
- | <br>
268
- | foo="bar"
269
-
270
- #data
271
- <body></body></br foo="bar">
272
- #errors
273
- (1,6): expected-doctype-but-got-start-tag
274
- (1,28): attributes-in-end-tag
275
- (1,28): unexpected-end-tag-after-body
276
- (1,28): unexpected-end-tag-treated-as
277
- #new-errors
278
- (1:28) end-tag-with-attributes
279
- #document
280
- | <html>
281
- | <head>
282
- | <body>
283
- | <br>
284
-
285
- #data
286
- <bdy></body><br foo="bar">
287
- #errors
288
- (1,5): expected-doctype-but-got-start-tag
289
- (1,12): expected-one-end-tag-but-got-another
290
- (1,26): unexpected-start-tag-after-body
291
- (1,26): expected-closing-tag-but-got-eof
292
- #document
293
- | <html>
294
- | <head>
295
- | <body>
296
- | <bdy>
297
- | <br>
298
- | foo="bar"
299
-
300
- #data
301
- <html><body></body></html><!-- Hi there -->
302
- #errors
303
- (1,6): expected-doctype-but-got-start-tag
304
- #document
305
- | <html>
306
- | <head>
307
- | <body>
308
- | <!-- Hi there -->
309
-
310
- #data
311
- <html><body></body></html><!-- Comment A --><!-- Comment B --><!-- Comment C --><!-- Comment D --><!-- Comment E -->
312
- #errors
313
- (1,6): expected-doctype-but-got-start-tag
314
- #document
315
- | <html>
316
- | <head>
317
- | <body>
318
- | <!-- Comment A -->
319
- | <!-- Comment B -->
320
- | <!-- Comment C -->
321
- | <!-- Comment D -->
322
- | <!-- Comment E -->
323
-
324
- #data
325
- <html><body></body></html>x<!-- Hi there -->
326
- #errors
327
- (1,6): expected-doctype-but-got-start-tag
328
- (1,27): expected-eof-but-got-char
329
- #document
330
- | <html>
331
- | <head>
332
- | <body>
333
- | "x"
334
- | <!-- Hi there -->
335
-
336
- #data
337
- <html><body></body></html>x<!-- Hi there --></html><!-- Again -->
338
- #errors
339
- (1,6): expected-doctype-but-got-start-tag
340
- (1,27): expected-eof-but-got-char
341
- #document
342
- | <html>
343
- | <head>
344
- | <body>
345
- | "x"
346
- | <!-- Hi there -->
347
- | <!-- Again -->
348
-
349
- #data
350
- <html><body></body></html>x<!-- Hi there --></body></html><!-- Again -->
351
- #errors
352
- (1,6): expected-doctype-but-got-start-tag
353
- (1,27): expected-eof-but-got-char
354
- #document
355
- | <html>
356
- | <head>
357
- | <body>
358
- | "x"
359
- | <!-- Hi there -->
360
- | <!-- Again -->
361
-
362
- #data
363
- <html><body></body>
364
- <!-- Hi there --></html>
365
- #errors
366
- no-doctype
367
- #document
368
- | <html>
369
- | <head>
370
- | <body>
371
- | "
372
- "
373
- | <!-- Hi there -->
374
-
375
- #data
376
- <html><body></body></html>
377
- <!-- Hi there -->
378
- #errors
379
- no-doctype
380
- #document
381
- | <html>
382
- | <head>
383
- | <body>
384
- | "
385
- "
386
- | <!-- Hi there -->
387
-
388
- #data
389
- <html><body><ruby><div><rp>xx</rp></div></ruby></body></html>
390
- #errors
391
- (1,6): expected-doctype-but-got-start-tag
392
- (1,27): XXX-undefined-error
393
- #document
394
- | <html>
395
- | <head>
396
- | <body>
397
- | <ruby>
398
- | <div>
399
- | <rp>
400
- | "xx"
401
-
402
- #data
403
- <html><body><ruby><div><rt>xx</rt></div></ruby></body></html>
404
- #errors
405
- (1,6): expected-doctype-but-got-start-tag
406
- (1,27): XXX-undefined-error
407
- #document
408
- | <html>
409
- | <head>
410
- | <body>
411
- | <ruby>
412
- | <div>
413
- | <rt>
414
- | "xx"
415
-
416
- #data
417
- <html><frameset><!--1--><noframes>A</noframes><!--2--></frameset><!--3--><noframes>B</noframes><!--4--></html><!--5--><noframes>C</noframes><!--6-->
418
- #errors
419
- (1,6): expected-doctype-but-got-start-tag
420
- #document
421
- | <html>
422
- | <head>
423
- | <frameset>
424
- | <!-- 1 -->
425
- | <noframes>
426
- | "A"
427
- | <!-- 2 -->
428
- | <!-- 3 -->
429
- | <noframes>
430
- | "B"
431
- | <!-- 4 -->
432
- | <noframes>
433
- | "C"
434
- | <!-- 5 -->
435
- | <!-- 6 -->
436
-
437
- #data
438
- <select><option>A<select><option>B<select><option>C<select><option>D<select><option>E<select><option>F<select><option>G<select>
439
- #errors
440
- (1,8): expected-doctype-but-got-start-tag
441
- (1,25): unexpected-select-in-select
442
- (1,59): unexpected-select-in-select
443
- (1,93): unexpected-select-in-select
444
- (1,127): unexpected-select-in-select
445
- #document
446
- | <html>
447
- | <head>
448
- | <body>
449
- | <select>
450
- | <option>
451
- | "A"
452
- | <option>
453
- | "B"
454
- | <select>
455
- | <option>
456
- | "C"
457
- | <option>
458
- | "D"
459
- | <select>
460
- | <option>
461
- | "E"
462
- | <option>
463
- | "F"
464
- | <select>
465
- | <option>
466
- | "G"
467
-
468
- #data
469
- <dd><dd><dt><dt><dd><li><li>
470
- #errors
471
- (1,4): expected-doctype-but-got-start-tag
472
- #document
473
- | <html>
474
- | <head>
475
- | <body>
476
- | <dd>
477
- | <dd>
478
- | <dt>
479
- | <dt>
480
- | <dd>
481
- | <li>
482
- | <li>
483
-
484
- #data
485
- <div><b></div><div><nobr>a<nobr>
486
- #errors
487
- (1,5): expected-doctype-but-got-start-tag
488
- (1,14): end-tag-too-early
489
- (1,32): unexpected-start-tag-implies-end-tag
490
- (1,32): expected-closing-tag-but-got-eof
491
- #document
492
- | <html>
493
- | <head>
494
- | <body>
495
- | <div>
496
- | <b>
497
- | <div>
498
- | <b>
499
- | <nobr>
500
- | "a"
501
- | <nobr>
502
-
503
- #data
504
- <head></head>
505
- <body></body>
506
- #errors
507
- (1,6): expected-doctype-but-got-start-tag
508
- #document
509
- | <html>
510
- | <head>
511
- | "
512
- "
513
- | <body>
514
-
515
- #data
516
- <head></head> <style></style>ddd
517
- #errors
518
- (1,6): expected-doctype-but-got-start-tag
519
- (1,21): unexpected-start-tag-out-of-my-head
520
- #document
521
- | <html>
522
- | <head>
523
- | <style>
524
- | " "
525
- | <body>
526
- | "ddd"
527
-
528
- #data
529
- <kbd><table></kbd><col><select><tr>
530
- #errors
531
- (1,5): expected-doctype-but-got-start-tag
532
- (1,18): unexpected-end-tag-implies-table-voodoo
533
- (1,18): unexpected-end-tag
534
- (1,31): unexpected-start-tag-implies-table-voodoo
535
- (1,35): unexpected-table-element-start-tag-in-select-in-table
536
- (1,35): eof-in-table
537
- #document
538
- | <html>
539
- | <head>
540
- | <body>
541
- | <kbd>
542
- | <select>
543
- | <table>
544
- | <colgroup>
545
- | <col>
546
- | <tbody>
547
- | <tr>
548
-
549
- #data
550
- <kbd><table></kbd><col><select><tr></table><div>
551
- #errors
552
- (1,5): expected-doctype-but-got-start-tag
553
- (1,18): unexpected-end-tag-implies-table-voodoo
554
- (1,18): unexpected-end-tag
555
- (1,31): unexpected-start-tag-implies-table-voodoo
556
- (1,35): unexpected-table-element-start-tag-in-select-in-table
557
- (1,48): expected-closing-tag-but-got-eof
558
- #document
559
- | <html>
560
- | <head>
561
- | <body>
562
- | <kbd>
563
- | <select>
564
- | <table>
565
- | <colgroup>
566
- | <col>
567
- | <tbody>
568
- | <tr>
569
- | <div>
570
-
571
- #data
572
- <a><li><style></style><title></title></a>
573
- #errors
574
- (1,3): expected-doctype-but-got-start-tag
575
- (1,41): adoption-agency-1.3
576
- #document
577
- | <html>
578
- | <head>
579
- | <body>
580
- | <a>
581
- | <li>
582
- | <a>
583
- | <style>
584
- | <title>
585
-
586
- #data
587
- <font></p><p><meta><title></title></font>
588
- #errors
589
- (1,6): expected-doctype-but-got-start-tag
590
- (1,10): unexpected-end-tag
591
- (1,41): adoption-agency-1.3
592
- #document
593
- | <html>
594
- | <head>
595
- | <body>
596
- | <font>
597
- | <p>
598
- | <p>
599
- | <font>
600
- | <meta>
601
- | <title>
602
-
603
- #data
604
- <a><center><title></title><a>
605
- #errors
606
- (1,3): expected-doctype-but-got-start-tag
607
- (1,29): unexpected-start-tag-implies-end-tag
608
- (1,29): adoption-agency-1.3
609
- (1,29): expected-closing-tag-but-got-eof
610
- #document
611
- | <html>
612
- | <head>
613
- | <body>
614
- | <a>
615
- | <center>
616
- | <a>
617
- | <title>
618
- | <a>
619
-
620
- #data
621
- <svg><title><div>
622
- #errors
623
- (1,5): expected-doctype-but-got-start-tag
624
- (1,17): expected-closing-tag-but-got-eof
625
- #document
626
- | <html>
627
- | <head>
628
- | <body>
629
- | <svg svg>
630
- | <svg title>
631
- | <div>
632
-
633
- #data
634
- <svg><title><rect><div>
635
- #errors
636
- (1,5): expected-doctype-but-got-start-tag
637
- (1,23): expected-closing-tag-but-got-eof
638
- #document
639
- | <html>
640
- | <head>
641
- | <body>
642
- | <svg svg>
643
- | <svg title>
644
- | <rect>
645
- | <div>
646
-
647
- #data
648
- <svg><title><svg><div>
649
- #errors
650
- (1,5): expected-doctype-but-got-start-tag
651
- (1,22): unexpected-html-element-in-foreign-content
652
- (1,22): expected-closing-tag-but-got-eof
653
- #document
654
- | <html>
655
- | <head>
656
- | <body>
657
- | <svg svg>
658
- | <svg title>
659
- | <svg svg>
660
- | <div>
661
-
662
- #data
663
- <img <="" FAIL>
664
- #errors
665
- (1,6): invalid-character-in-attribute-name
666
- (1,15): expected-doctype-but-got-start-tag
667
- #new-errors
668
- (1:6) unexpected-character-in-attribute-name
669
- #document
670
- | <html>
671
- | <head>
672
- | <body>
673
- | <img>
674
- | <=""
675
- | fail=""
676
-
677
- #data
678
- <ul><li><div id='foo'/>A</li><li>B<div>C</div></li></ul>
679
- #errors
680
- (1,4): expected-doctype-but-got-start-tag
681
- (1,23): non-void-element-with-trailing-solidus
682
- (1,29): end-tag-too-early
683
- #new-errors
684
- (1:9-1:24) non-void-html-element-start-tag-with-trailing-solidus
685
- #document
686
- | <html>
687
- | <head>
688
- | <body>
689
- | <ul>
690
- | <li>
691
- | <div>
692
- | id="foo"
693
- | "A"
694
- | <li>
695
- | "B"
696
- | <div>
697
- | "C"
698
-
699
- #data
700
- <svg><em><desc></em>
701
- #errors
702
- (1,5): expected-doctype-but-got-start-tag
703
- (1,9): unexpected-html-element-in-foreign-content
704
- (1,20): adoption-agency-1.3
705
- #document
706
- | <html>
707
- | <head>
708
- | <body>
709
- | <svg svg>
710
- | <em>
711
- | <desc>
712
-
713
- #data
714
- <table><tr><td><svg><desc><td></desc><circle>
715
- #errors
716
- (1,7): expected-doctype-but-got-start-tag
717
- (1,30): unexpected-start-tag
718
- (1,37): unexpected-end-tag
719
- (1,22): expected-closing-tag-but-got-eof
720
- #document
721
- | <html>
722
- | <head>
723
- | <body>
724
- | <table>
725
- | <tbody>
726
- | <tr>
727
- | <td>
728
- | <svg svg>
729
- | <svg desc>
730
- | <td>
731
- | <circle>
732
-
733
- #data
734
- <svg><tfoot></mi><td>
735
- #errors
736
- (1,5): expected-doctype-but-got-start-tag
737
- (1,17): unexpected-end-tag
738
- (1,17): unexpected-end-tag
739
- (1,21): expected-closing-tag-but-got-eof
740
- #document
741
- | <html>
742
- | <head>
743
- | <body>
744
- | <svg svg>
745
- | <svg tfoot>
746
- | <svg td>
747
-
748
- #data
749
- <math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math>
750
- #errors
751
- (1,6): expected-doctype-but-got-start-tag
752
- #document
753
- | <html>
754
- | <head>
755
- | <body>
756
- | <math math>
757
- | <math mrow>
758
- | <math mrow>
759
- | <math mn>
760
- | "1"
761
- | <math mi>
762
- | "a"
763
-
764
- #data
765
- <!doctype html><input type="hidden"><frameset>
766
- #errors
767
- (1,46): unexpected-start-tag
768
- (1,46): eof-in-frameset
769
- #document
770
- | <!DOCTYPE html>
771
- | <html>
772
- | <head>
773
- | <frameset>
774
-
775
- #data
776
- <!doctype html><input type="button"><frameset>
777
- #errors
778
- (1,46): unexpected-start-tag
779
- #document
780
- | <!DOCTYPE html>
781
- | <html>
782
- | <head>
783
- | <body>
784
- | <input>
785
- | type="button"