nokogiri 1.6.8.1 → 1.13.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of nokogiri might be problematic. Click here for more details.

Files changed (354) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +3 -20
  3. data/LICENSE-DEPENDENCIES.md +1903 -0
  4. data/LICENSE.md +9 -0
  5. data/README.md +197 -83
  6. data/bin/nokogiri +63 -50
  7. data/dependencies.yml +16 -22
  8. data/ext/nokogiri/depend +38 -358
  9. data/ext/nokogiri/extconf.rb +751 -432
  10. data/ext/nokogiri/gumbo.c +584 -0
  11. data/ext/nokogiri/html4_document.c +166 -0
  12. data/ext/nokogiri/html4_element_description.c +294 -0
  13. data/ext/nokogiri/html4_entity_lookup.c +37 -0
  14. data/ext/nokogiri/html4_sax_parser_context.c +120 -0
  15. data/ext/nokogiri/html4_sax_push_parser.c +95 -0
  16. data/ext/nokogiri/libxml2_backwards_compat.c +121 -0
  17. data/ext/nokogiri/nokogiri.c +228 -95
  18. data/ext/nokogiri/nokogiri.h +190 -98
  19. data/ext/nokogiri/test_global_handlers.c +40 -0
  20. data/ext/nokogiri/xml_attr.c +49 -40
  21. data/ext/nokogiri/xml_attribute_decl.c +18 -18
  22. data/ext/nokogiri/xml_cdata.c +24 -23
  23. data/ext/nokogiri/xml_comment.c +19 -26
  24. data/ext/nokogiri/xml_document.c +291 -217
  25. data/ext/nokogiri/xml_document_fragment.c +12 -16
  26. data/ext/nokogiri/xml_dtd.c +56 -50
  27. data/ext/nokogiri/xml_element_content.c +31 -26
  28. data/ext/nokogiri/xml_element_decl.c +22 -22
  29. data/ext/nokogiri/xml_encoding_handler.c +43 -18
  30. data/ext/nokogiri/xml_entity_decl.c +32 -30
  31. data/ext/nokogiri/xml_entity_reference.c +16 -18
  32. data/ext/nokogiri/xml_namespace.c +61 -58
  33. data/ext/nokogiri/xml_node.c +1194 -729
  34. data/ext/nokogiri/xml_node_set.c +178 -165
  35. data/ext/nokogiri/xml_processing_instruction.c +17 -19
  36. data/ext/nokogiri/xml_reader.c +226 -175
  37. data/ext/nokogiri/xml_relax_ng.c +52 -28
  38. data/ext/nokogiri/xml_sax_parser.c +115 -114
  39. data/ext/nokogiri/xml_sax_parser_context.c +105 -86
  40. data/ext/nokogiri/xml_sax_push_parser.c +88 -35
  41. data/ext/nokogiri/xml_schema.c +112 -33
  42. data/ext/nokogiri/xml_syntax_error.c +42 -21
  43. data/ext/nokogiri/xml_text.c +13 -17
  44. data/ext/nokogiri/xml_xpath_context.c +223 -115
  45. data/ext/nokogiri/xslt_stylesheet.c +265 -173
  46. data/gumbo-parser/CHANGES.md +63 -0
  47. data/gumbo-parser/Makefile +101 -0
  48. data/gumbo-parser/THANKS +27 -0
  49. data/gumbo-parser/src/Makefile +34 -0
  50. data/gumbo-parser/src/README.md +41 -0
  51. data/gumbo-parser/src/ascii.c +75 -0
  52. data/gumbo-parser/src/ascii.h +115 -0
  53. data/gumbo-parser/src/attribute.c +42 -0
  54. data/gumbo-parser/src/attribute.h +17 -0
  55. data/gumbo-parser/src/char_ref.c +22225 -0
  56. data/gumbo-parser/src/char_ref.h +29 -0
  57. data/gumbo-parser/src/char_ref.rl +2154 -0
  58. data/gumbo-parser/src/error.c +626 -0
  59. data/gumbo-parser/src/error.h +148 -0
  60. data/gumbo-parser/src/foreign_attrs.c +104 -0
  61. data/gumbo-parser/src/foreign_attrs.gperf +27 -0
  62. data/gumbo-parser/src/gumbo.h +943 -0
  63. data/gumbo-parser/src/insertion_mode.h +33 -0
  64. data/gumbo-parser/src/macros.h +91 -0
  65. data/gumbo-parser/src/parser.c +4875 -0
  66. data/gumbo-parser/src/parser.h +41 -0
  67. data/gumbo-parser/src/replacement.h +33 -0
  68. data/gumbo-parser/src/string_buffer.c +103 -0
  69. data/gumbo-parser/src/string_buffer.h +68 -0
  70. data/gumbo-parser/src/string_piece.c +48 -0
  71. data/gumbo-parser/src/svg_attrs.c +174 -0
  72. data/gumbo-parser/src/svg_attrs.gperf +77 -0
  73. data/gumbo-parser/src/svg_tags.c +137 -0
  74. data/gumbo-parser/src/svg_tags.gperf +55 -0
  75. data/gumbo-parser/src/tag.c +222 -0
  76. data/gumbo-parser/src/tag_lookup.c +382 -0
  77. data/gumbo-parser/src/tag_lookup.gperf +169 -0
  78. data/gumbo-parser/src/tag_lookup.h +13 -0
  79. data/gumbo-parser/src/token_buffer.c +79 -0
  80. data/gumbo-parser/src/token_buffer.h +71 -0
  81. data/gumbo-parser/src/token_type.h +17 -0
  82. data/gumbo-parser/src/tokenizer.c +3463 -0
  83. data/gumbo-parser/src/tokenizer.h +112 -0
  84. data/gumbo-parser/src/tokenizer_states.h +339 -0
  85. data/gumbo-parser/src/utf8.c +245 -0
  86. data/gumbo-parser/src/utf8.h +164 -0
  87. data/gumbo-parser/src/util.c +68 -0
  88. data/gumbo-parser/src/util.h +30 -0
  89. data/gumbo-parser/src/vector.c +111 -0
  90. data/gumbo-parser/src/vector.h +45 -0
  91. data/lib/nokogiri/class_resolver.rb +67 -0
  92. data/lib/nokogiri/css/node.rb +10 -8
  93. data/lib/nokogiri/css/parser.rb +410 -372
  94. data/lib/nokogiri/css/parser.y +260 -244
  95. data/lib/nokogiri/css/parser_extras.rb +54 -49
  96. data/lib/nokogiri/css/syntax_error.rb +3 -1
  97. data/lib/nokogiri/css/tokenizer.rb +107 -104
  98. data/lib/nokogiri/css/tokenizer.rex +7 -6
  99. data/lib/nokogiri/css/xpath_visitor.rb +226 -92
  100. data/lib/nokogiri/css.rb +50 -17
  101. data/lib/nokogiri/decorators/slop.rb +9 -7
  102. data/lib/nokogiri/extension.rb +31 -0
  103. data/lib/nokogiri/gumbo.rb +15 -0
  104. data/lib/nokogiri/html.rb +38 -27
  105. data/lib/nokogiri/{html → html4}/builder.rb +4 -2
  106. data/lib/nokogiri/{html → html4}/document.rb +104 -106
  107. data/lib/nokogiri/html4/document_fragment.rb +54 -0
  108. data/lib/nokogiri/{html → html4}/element_description.rb +3 -1
  109. data/lib/nokogiri/html4/element_description_defaults.rb +578 -0
  110. data/lib/nokogiri/{html → html4}/entity_lookup.rb +4 -2
  111. data/lib/nokogiri/{html → html4}/sax/parser.rb +24 -13
  112. data/lib/nokogiri/html4/sax/parser_context.rb +20 -0
  113. data/lib/nokogiri/{html → html4}/sax/push_parser.rb +12 -11
  114. data/lib/nokogiri/html4.rb +46 -0
  115. data/lib/nokogiri/html5/document.rb +91 -0
  116. data/lib/nokogiri/html5/document_fragment.rb +83 -0
  117. data/lib/nokogiri/html5/node.rb +100 -0
  118. data/lib/nokogiri/html5.rb +478 -0
  119. data/lib/nokogiri/jruby/dependencies.rb +21 -0
  120. data/lib/nokogiri/syntax_error.rb +2 -0
  121. data/lib/nokogiri/version/constant.rb +6 -0
  122. data/lib/nokogiri/version/info.rb +222 -0
  123. data/lib/nokogiri/version.rb +3 -107
  124. data/lib/nokogiri/xml/attr.rb +6 -3
  125. data/lib/nokogiri/xml/attribute_decl.rb +3 -1
  126. data/lib/nokogiri/xml/builder.rb +97 -53
  127. data/lib/nokogiri/xml/cdata.rb +3 -1
  128. data/lib/nokogiri/xml/character_data.rb +2 -0
  129. data/lib/nokogiri/xml/document.rb +231 -93
  130. data/lib/nokogiri/xml/document_fragment.rb +57 -44
  131. data/lib/nokogiri/xml/dtd.rb +4 -2
  132. data/lib/nokogiri/xml/element_content.rb +2 -0
  133. data/lib/nokogiri/xml/element_decl.rb +3 -1
  134. data/lib/nokogiri/xml/entity_decl.rb +4 -2
  135. data/lib/nokogiri/xml/entity_reference.rb +20 -0
  136. data/lib/nokogiri/xml/namespace.rb +3 -0
  137. data/lib/nokogiri/xml/node/save_options.rb +10 -5
  138. data/lib/nokogiri/xml/node.rb +911 -337
  139. data/lib/nokogiri/xml/node_set.rb +141 -84
  140. data/lib/nokogiri/xml/notation.rb +13 -0
  141. data/lib/nokogiri/xml/parse_options.rb +23 -9
  142. data/lib/nokogiri/xml/pp/character_data.rb +9 -6
  143. data/lib/nokogiri/xml/pp/node.rb +25 -26
  144. data/lib/nokogiri/xml/pp.rb +4 -2
  145. data/lib/nokogiri/xml/processing_instruction.rb +3 -1
  146. data/lib/nokogiri/xml/reader.rb +23 -28
  147. data/lib/nokogiri/xml/relax_ng.rb +8 -2
  148. data/lib/nokogiri/xml/sax/document.rb +45 -49
  149. data/lib/nokogiri/xml/sax/parser.rb +43 -40
  150. data/lib/nokogiri/xml/sax/parser_context.rb +8 -3
  151. data/lib/nokogiri/xml/sax/push_parser.rb +6 -5
  152. data/lib/nokogiri/xml/sax.rb +6 -4
  153. data/lib/nokogiri/xml/schema.rb +19 -9
  154. data/lib/nokogiri/xml/searchable.rb +138 -89
  155. data/lib/nokogiri/xml/syntax_error.rb +26 -1
  156. data/lib/nokogiri/xml/text.rb +2 -0
  157. data/lib/nokogiri/xml/xpath/syntax_error.rb +4 -2
  158. data/lib/nokogiri/xml/xpath.rb +15 -4
  159. data/lib/nokogiri/xml/xpath_context.rb +3 -3
  160. data/lib/nokogiri/xml.rb +39 -37
  161. data/lib/nokogiri/xslt/stylesheet.rb +3 -1
  162. data/lib/nokogiri/xslt.rb +29 -20
  163. data/lib/nokogiri.rb +49 -65
  164. data/lib/xsd/xmlparser/nokogiri.rb +26 -24
  165. data/patches/libxml2/0001-Remove-script-macro-support.patch +40 -0
  166. data/patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch +44 -0
  167. data/patches/libxml2/0003-libxml2.la-is-in-top_builddir.patch +25 -0
  168. data/patches/libxml2/0004-use-glibc-strlen.patch +53 -0
  169. data/patches/libxml2/0005-avoid-isnan-isinf.patch +81 -0
  170. data/patches/libxml2/0006-update-automake-files-for-arm64.patch +3040 -0
  171. data/patches/libxml2/0008-htmlParseComment-handle-abruptly-closed-comments.patch +61 -0
  172. data/patches/libxml2/0009-allow-wildcard-namespaces.patch +77 -0
  173. data/patches/libxml2/0010-Revert-Different-approach-to-fix-quadratic-behavior.patch +45 -0
  174. data/patches/libxslt/0001-update-automake-files-for-arm64.patch +3037 -0
  175. data/ports/archives/libxml2-2.9.13.tar.xz +0 -0
  176. data/ports/archives/libxslt-1.1.35.tar.xz +0 -0
  177. metadata +233 -258
  178. data/.autotest +0 -26
  179. data/.cross_rubies +0 -9
  180. data/.editorconfig +0 -17
  181. data/.gemtest +0 -0
  182. data/.travis.yml +0 -51
  183. data/CHANGELOG.rdoc +0 -1160
  184. data/CONTRIBUTING.md +0 -42
  185. data/C_CODING_STYLE.rdoc +0 -33
  186. data/LICENSE.txt +0 -31
  187. data/Manifest.txt +0 -364
  188. data/ROADMAP.md +0 -111
  189. data/Rakefile +0 -375
  190. data/STANDARD_RESPONSES.md +0 -47
  191. data/Y_U_NO_GEMSPEC.md +0 -155
  192. data/appveyor.yml +0 -22
  193. data/build_all +0 -45
  194. data/ext/nokogiri/html_document.c +0 -170
  195. data/ext/nokogiri/html_document.h +0 -10
  196. data/ext/nokogiri/html_element_description.c +0 -279
  197. data/ext/nokogiri/html_element_description.h +0 -10
  198. data/ext/nokogiri/html_entity_lookup.c +0 -32
  199. data/ext/nokogiri/html_entity_lookup.h +0 -8
  200. data/ext/nokogiri/html_sax_parser_context.c +0 -116
  201. data/ext/nokogiri/html_sax_parser_context.h +0 -11
  202. data/ext/nokogiri/html_sax_push_parser.c +0 -87
  203. data/ext/nokogiri/html_sax_push_parser.h +0 -9
  204. data/ext/nokogiri/xml_attr.h +0 -9
  205. data/ext/nokogiri/xml_attribute_decl.h +0 -9
  206. data/ext/nokogiri/xml_cdata.h +0 -9
  207. data/ext/nokogiri/xml_comment.h +0 -9
  208. data/ext/nokogiri/xml_document.h +0 -23
  209. data/ext/nokogiri/xml_document_fragment.h +0 -10
  210. data/ext/nokogiri/xml_dtd.h +0 -10
  211. data/ext/nokogiri/xml_element_content.h +0 -10
  212. data/ext/nokogiri/xml_element_decl.h +0 -9
  213. data/ext/nokogiri/xml_encoding_handler.h +0 -8
  214. data/ext/nokogiri/xml_entity_decl.h +0 -10
  215. data/ext/nokogiri/xml_entity_reference.h +0 -9
  216. data/ext/nokogiri/xml_io.c +0 -60
  217. data/ext/nokogiri/xml_io.h +0 -11
  218. data/ext/nokogiri/xml_libxml2_hacks.c +0 -112
  219. data/ext/nokogiri/xml_libxml2_hacks.h +0 -12
  220. data/ext/nokogiri/xml_namespace.h +0 -13
  221. data/ext/nokogiri/xml_node.h +0 -13
  222. data/ext/nokogiri/xml_node_set.h +0 -13
  223. data/ext/nokogiri/xml_processing_instruction.h +0 -9
  224. data/ext/nokogiri/xml_reader.h +0 -10
  225. data/ext/nokogiri/xml_relax_ng.h +0 -9
  226. data/ext/nokogiri/xml_sax_parser.h +0 -39
  227. data/ext/nokogiri/xml_sax_parser_context.h +0 -10
  228. data/ext/nokogiri/xml_sax_push_parser.h +0 -9
  229. data/ext/nokogiri/xml_schema.h +0 -9
  230. data/ext/nokogiri/xml_syntax_error.h +0 -13
  231. data/ext/nokogiri/xml_text.h +0 -9
  232. data/ext/nokogiri/xml_xpath_context.h +0 -10
  233. data/ext/nokogiri/xslt_stylesheet.h +0 -14
  234. data/lib/nokogiri/html/document_fragment.rb +0 -39
  235. data/lib/nokogiri/html/element_description_defaults.rb +0 -671
  236. data/lib/nokogiri/html/sax/parser_context.rb +0 -16
  237. data/patches/sort-patches-by-date +0 -25
  238. data/ports/archives/libxml2-2.9.4.tar.gz +0 -0
  239. data/ports/archives/libxslt-1.1.29.tar.gz +0 -0
  240. data/suppressions/README.txt +0 -1
  241. data/suppressions/nokogiri_ree-1.8.7.358.supp +0 -61
  242. data/suppressions/nokogiri_ruby-1.8.7.370.supp +0 -0
  243. data/suppressions/nokogiri_ruby-1.9.2.320.supp +0 -28
  244. data/suppressions/nokogiri_ruby-1.9.3.327.supp +0 -28
  245. data/tasks/test.rb +0 -100
  246. data/test/css/test_nthiness.rb +0 -226
  247. data/test/css/test_parser.rb +0 -369
  248. data/test/css/test_tokenizer.rb +0 -215
  249. data/test/css/test_xpath_visitor.rb +0 -96
  250. data/test/decorators/test_slop.rb +0 -20
  251. data/test/files/2ch.html +0 -108
  252. data/test/files/GH_1042.html +0 -18
  253. data/test/files/address_book.rlx +0 -12
  254. data/test/files/address_book.xml +0 -10
  255. data/test/files/atom.xml +0 -344
  256. data/test/files/bar/bar.xsd +0 -4
  257. data/test/files/bogus.xml +0 -0
  258. data/test/files/dont_hurt_em_why.xml +0 -422
  259. data/test/files/encoding.html +0 -82
  260. data/test/files/encoding.xhtml +0 -84
  261. data/test/files/exslt.xml +0 -8
  262. data/test/files/exslt.xslt +0 -35
  263. data/test/files/foo/foo.xsd +0 -4
  264. data/test/files/metacharset.html +0 -10
  265. data/test/files/namespace_pressure_test.xml +0 -1684
  266. data/test/files/noencoding.html +0 -47
  267. data/test/files/po.xml +0 -32
  268. data/test/files/po.xsd +0 -66
  269. data/test/files/saml/saml20assertion_schema.xsd +0 -283
  270. data/test/files/saml/saml20protocol_schema.xsd +0 -302
  271. data/test/files/saml/xenc_schema.xsd +0 -146
  272. data/test/files/saml/xmldsig_schema.xsd +0 -318
  273. data/test/files/shift_jis.html +0 -10
  274. data/test/files/shift_jis.xml +0 -5
  275. data/test/files/shift_jis_no_charset.html +0 -9
  276. data/test/files/slow-xpath.xml +0 -25509
  277. data/test/files/snuggles.xml +0 -3
  278. data/test/files/staff.dtd +0 -10
  279. data/test/files/staff.xml +0 -59
  280. data/test/files/staff.xslt +0 -32
  281. data/test/files/test_document_url/bar.xml +0 -2
  282. data/test/files/test_document_url/document.dtd +0 -4
  283. data/test/files/test_document_url/document.xml +0 -6
  284. data/test/files/tlm.html +0 -851
  285. data/test/files/to_be_xincluded.xml +0 -2
  286. data/test/files/valid_bar.xml +0 -2
  287. data/test/files/xinclude.xml +0 -4
  288. data/test/helper.rb +0 -181
  289. data/test/html/sax/test_parser.rb +0 -141
  290. data/test/html/sax/test_parser_context.rb +0 -46
  291. data/test/html/sax/test_push_parser.rb +0 -87
  292. data/test/html/test_builder.rb +0 -164
  293. data/test/html/test_document.rb +0 -701
  294. data/test/html/test_document_encoding.rb +0 -145
  295. data/test/html/test_document_fragment.rb +0 -301
  296. data/test/html/test_element_description.rb +0 -105
  297. data/test/html/test_named_characters.rb +0 -14
  298. data/test/html/test_node.rb +0 -212
  299. data/test/html/test_node_encoding.rb +0 -85
  300. data/test/namespaces/test_additional_namespaces_in_builder_doc.rb +0 -14
  301. data/test/namespaces/test_namespaces_aliased_default.rb +0 -24
  302. data/test/namespaces/test_namespaces_in_builder_doc.rb +0 -75
  303. data/test/namespaces/test_namespaces_in_cloned_doc.rb +0 -31
  304. data/test/namespaces/test_namespaces_in_created_doc.rb +0 -75
  305. data/test/namespaces/test_namespaces_in_parsed_doc.rb +0 -80
  306. data/test/namespaces/test_namespaces_preservation.rb +0 -31
  307. data/test/test_convert_xpath.rb +0 -135
  308. data/test/test_css_cache.rb +0 -45
  309. data/test/test_encoding_handler.rb +0 -48
  310. data/test/test_memory_leak.rb +0 -156
  311. data/test/test_nokogiri.rb +0 -138
  312. data/test/test_soap4r_sax.rb +0 -52
  313. data/test/test_xslt_transforms.rb +0 -314
  314. data/test/xml/node/test_save_options.rb +0 -28
  315. data/test/xml/node/test_subclass.rb +0 -44
  316. data/test/xml/sax/test_parser.rb +0 -394
  317. data/test/xml/sax/test_parser_context.rb +0 -115
  318. data/test/xml/sax/test_push_parser.rb +0 -157
  319. data/test/xml/test_attr.rb +0 -67
  320. data/test/xml/test_attribute_decl.rb +0 -86
  321. data/test/xml/test_builder.rb +0 -341
  322. data/test/xml/test_c14n.rb +0 -180
  323. data/test/xml/test_cdata.rb +0 -48
  324. data/test/xml/test_comment.rb +0 -40
  325. data/test/xml/test_document.rb +0 -982
  326. data/test/xml/test_document_encoding.rb +0 -31
  327. data/test/xml/test_document_fragment.rb +0 -271
  328. data/test/xml/test_dtd.rb +0 -187
  329. data/test/xml/test_dtd_encoding.rb +0 -31
  330. data/test/xml/test_element_content.rb +0 -56
  331. data/test/xml/test_element_decl.rb +0 -73
  332. data/test/xml/test_entity_decl.rb +0 -122
  333. data/test/xml/test_entity_reference.rb +0 -251
  334. data/test/xml/test_namespace.rb +0 -96
  335. data/test/xml/test_node.rb +0 -1244
  336. data/test/xml/test_node_attributes.rb +0 -115
  337. data/test/xml/test_node_encoding.rb +0 -69
  338. data/test/xml/test_node_inheritance.rb +0 -32
  339. data/test/xml/test_node_reparenting.rb +0 -549
  340. data/test/xml/test_node_set.rb +0 -775
  341. data/test/xml/test_parse_options.rb +0 -64
  342. data/test/xml/test_processing_instruction.rb +0 -30
  343. data/test/xml/test_reader.rb +0 -589
  344. data/test/xml/test_reader_encoding.rb +0 -134
  345. data/test/xml/test_relax_ng.rb +0 -60
  346. data/test/xml/test_schema.rb +0 -142
  347. data/test/xml/test_syntax_error.rb +0 -30
  348. data/test/xml/test_text.rb +0 -60
  349. data/test/xml/test_unparented_node.rb +0 -440
  350. data/test/xml/test_xinclude.rb +0 -83
  351. data/test/xml/test_xpath.rb +0 -445
  352. data/test/xslt/test_custom_functions.rb +0 -133
  353. data/test/xslt/test_exception_handling.rb +0 -37
  354. data/test_all +0 -107
data/CHANGELOG.rdoc DELETED
@@ -1,1160 +0,0 @@
1
- === 1.6.8.1 / 2016-10-03
2
-
3
- ==== Dependency License Notes
4
-
5
- Removes required dependency on the `pkg-config` gem. This dependency
6
- was introduced in v1.6.8 and, because it's distributed under LGPL, was
7
- objectionable to many Nokogiri users (#1488, #1496).
8
-
9
- This version makes `pkg-config` an optional dependency. If it's
10
- installed, it's used; but otherwise Nokogiri will attempt to work
11
- around its absence.
12
-
13
-
14
- === 1.6.8 / 2016-06-06
15
-
16
- ==== Security Notes
17
-
18
- [MRI] Bundled libxml2 is upgraded to 2.9.4, which fixes many security issues. Many of these had previously been patched in the vendored libxml 2.9.2 in the 1.6.7.x branch, but some are newer.
19
-
20
- See these libxml2 email posts for more:
21
-
22
- * https://mail.gnome.org/archives/xml/2015-November/msg00012.html
23
- * https://mail.gnome.org/archives/xml/2016-May/msg00023.html
24
-
25
- For a more detailed analysis, you may care to read Canonical's take on these security issues:
26
-
27
- * http://www.ubuntu.com/usn/usn-2994-1
28
-
29
-
30
- [MRI] Bundled libxslt is upgraded to 1.1.29, which fixes a security issue as well as many long-known outstanding bugs, some features, some portability improvements, and general cleanup.
31
-
32
- See this libxslt email post for more:
33
-
34
- * https://mail.gnome.org/archives/xslt/2016-May/msg00004.html
35
-
36
-
37
- ==== Features
38
-
39
- Several changes were made to improve performance:
40
-
41
- * [MRI] Simplify NodeSet#to_a with a minor speed-up. (#1397)
42
- * XML::Node#ancestors optimization. (#1297) (Thanks, Bruno Sutic!)
43
- * Use Symbol#to_proc where we weren't previously. (#1296) (Thanks, Bruno Sutic!)
44
- * XML::DTD#each uses implicit block calls. (Thanks, @glaucocustodio!)
45
- * Fall back to the `pkg-config` gem if we're having trouble finding the system libxml2. This should help many FreeBSD users. (#1417)
46
- * Set document encoding appropriately even on blank document. (#1043) (Thanks, @batter!)
47
-
48
-
49
- ==== Bug Fixes
50
-
51
- * [JRuby] fix slow add_child (#692)
52
- * [JRuby] fix load errors when deploying to JRuby/Torquebox (#1114) (Thanks, @atambo and @jvshahid!)
53
- * [JRuby] fix NPE when inspecting nodes returned by NodeSet#drop (#1042) (Thanks, @mkristian!)
54
- * [JRuby] fix nil attriubte node's namespace in reader (#1327) (Thanks, @codekitchen!)
55
- * [JRuby] fix Nokogiri munging unicode characters that require more than 2 bytes (#1113) (Thanks, @mkristian!)
56
- * [JRuby] allow unlinking an unparented node (#1112, #1152) (Thanks, @esse!)
57
- * [JRuby] allow Fragment parsing on a frozen string (#444, #1077)
58
- * [JRuby] HTML `style` tags are no longer encoded (#1316) (Thanks, @tbeauvais!)
59
- * [MRI] fix assertion failure while accessing attribute node's namespace in reader (#843) (Thanks, @2potatocakes!)
60
- * [MRI] fix issue with GCing namespace nodes returned in an xpath query. (#1155)
61
- * [MRI] Ensure C strings are null-terminated. (#1381)
62
- * [MRI] Ensure Rubygems is loaded before using mini_portile2 at installation. (#1393, #1411) (Thanks, @JonRowe!)
63
- * [MRI] Handling another edge case where the `libxml-ruby` gem's global callbacks were smashing the heap. (#1426). (Thanks to @bbergstrom for providing an isolated test case!)
64
- * [MRI] Ensure encodings are passed to Sax::Parser xmldecl callback. (#844)
65
- * [MRI] Ensure default ns prefix is applied correctly when reparenting nodes to another document. (#391) (Thanks, @ylecuyer!)
66
- * [MRI] Ensure Reader handles non-existent attributes as expected. (#1254) (Thanks, @ccutrer!)
67
- * [MRI] Cleanup around namespace handling when reparenting nodes. (#1332, #1333, #1444) (Thanks, @cuttrer and @bradleybeddoes!)
68
- * unescape special characters in CSS queries (#1303) (Thanks, @twalpole!)
69
- * consistently handle empty documents (#1349)
70
- * Update to mini_portile2 2.1.0 to address whitespace-handling during patching. (#1402)
71
- * Fix encoding of xml node namespaces.
72
- * Work around issue installing Nokogiri on overlayfs (commonly used in Docker containers). (#1370, #1405)
73
-
74
-
75
-
76
- ==== Other Notes
77
-
78
- * Removed legacy code remaining from Ruby 1.8.x support.
79
- * Removed legacy code remaining from REE support.
80
- * Removing hacky workarounds for bugs in some older versions of libxml2.
81
- * Handling C strings in a forward-compatible manner, see https://github.com/ruby/ruby/blob/v2_2_0/NEWS#L319
82
-
83
-
84
- === 1.6.7.2 / 2016-01-20
85
-
86
- This version pulls in several upstream patches to the vendored libxml2 and libxslt to address:
87
-
88
- CVE-2015-7499
89
-
90
- Ubuntu classifies this as "Priority: Low", RedHat classifies this as "Impact: Moderate", and NIST classifies this as "Severity: 5.0 (MEDIUM)".
91
-
92
- MITRE record is https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-7499
93
-
94
-
95
- === 1.6.7.1 / 2015-12-16
96
-
97
- This version pulls in several upstream patches to the vendored libxml2 and libxslt to address:
98
-
99
- CVE-2015-5312
100
- CVE-2015-7497
101
- CVE-2015-7498
102
- CVE-2015-7499
103
- CVE-2015-7500
104
- CVE-2015-8241
105
- CVE-2015-8242
106
- CVE-2015-8317
107
-
108
- See also http://www.ubuntu.com/usn/usn-2834-1/
109
-
110
-
111
- === 1.6.7 / 2015-11-29
112
-
113
- ==== Notes
114
-
115
- This version supports native builds on Windows using the RubyInstaller
116
- DevKit. It also supports Ruby 2.2.x on Windows, as well as making
117
- several other improvements to the installation process on various
118
- platforms.
119
-
120
- This version also includes the security patches already applied in
121
- v1.6.6.3 and v1.6.6.4 to the vendored libxml2 and libxslt source.
122
- See #1374 and #1376 for details.
123
-
124
- ==== Features
125
-
126
- * Cross-built gems now have a proper ruby version requirement. (#1266)
127
- * Ruby 2.2.x is supported on Windows.
128
- * Native build is supported on Windows.
129
- * [MRI] libxml2 and libxslt `config.guess` files brought up to date. (#1326) (Thanks, @hernan-erasmo!)
130
- * [JRuby] fix error in validating files with jruby (#1355, #1361) (Thanks, @twalpole!)
131
- * [MRI, OSX] Patch to handle nonstandard location of `iconv.h`. (#1206, #1210, #1218, #1345) (Thanks, @neonichu!)
132
-
133
- ==== Bug Fixes
134
-
135
- * [JRuby] reset the namespace cache when replacing the document's innerHtml (#1265) (Thanks, @mkristian!)
136
- * [JRuby] Document#parse should support IO objects that respond to #read. (#1124) (Thanks, Jake Byman!)
137
- * [MRI] Duplicate-id errors when setting the `id` attribute on HTML documents are now silenced. (#1262)
138
- * [JRuby] SAX parser cuts texts in pieces when square brackets exist. (#1261)
139
- * [JRuby] Namespaced attributes aren't removed by remove_attribute. (#1299)
140
-
141
-
142
- === 1.6.6.4 / 2015-11-19
143
-
144
- This version pulls in an upstream patch to the vendored libxml2 to address:
145
-
146
- * unclosed comment uninitialized access issue (#1376)
147
-
148
- This issue was assigned CVE-2015-8710 after the fact. See http://seclists.org/oss-sec/2015/q4/616 for details.
149
-
150
-
151
- === 1.6.6.3 / 2015-11-16
152
-
153
- This version pulls in several upstream patches to the vendored libxml2 and libxslt to address:
154
-
155
- * CVE-2015-1819
156
- * CVE-2015-7941_1
157
- * CVE-2015-7941_2
158
- * CVE-2015-7942
159
- * CVE-2015-7942-2
160
- * CVE-2015-8035
161
- * CVE-2015-7995
162
-
163
- See #1374 for details.
164
-
165
-
166
- === 1.6.6.2 / 2015-01-23
167
-
168
- ==== Bug fixes
169
-
170
- * Fixed installation issue affecting compiler arguments. (#1230)
171
-
172
-
173
- === 1.6.6.1 / 2015-01-22
174
-
175
- Note that 1.6.6.0 was not released.
176
-
177
-
178
- ==== Features
179
-
180
- * Unified Node and NodeSet implementations of #search, #xpath and #css.
181
- * Added Node#lang and Node#lang=.
182
- * bin/nokogiri passes the URI to parse() if an HTTP URL is given.
183
- * bin/nokogiri now loads ~/.nokogirirc so user can define helper methods, etc.
184
- * bin/nokogiri can be configured to use Pry instead of IRB by adding a couple of lines to ~/.nokogirirc. (#1198)
185
- * bin/nokogiri can better handle urls from STDIN (aiding use of xargs). (#1065)
186
- * JRuby 9K support.
187
-
188
-
189
- ==== Bug fixes
190
-
191
- * DocumentFragment#search now matches against root nodes. (#1205)
192
- * (MRI) More fixes related to handling libxml2 parse errors during DocumentFragment#dup. (#1196)
193
- * (JRuby) Builder now handles namespace hrefs properly when there is a default ns. (#1039)
194
- * (JRuby) Clear the XPath cache on attr removal. (#1109)
195
- * `XML::Comment.new` argument types are now consistent and safe (and documented) across MRI and JRuby. (#1224)
196
- * (MRI) Restoring support for Ruby 1.9.2 that was broken in v1.6.4.1 and v1.6.5. (#1207)
197
- * Check if `zlib` is available before building `libxml2`. (#1188)
198
- * (JRuby) HtmlSaxPushParser now exists. (#1147) (Thanks, Piotr Szmielew!)
199
-
200
-
201
- === 1.6.5 / 2014-11-26
202
-
203
- ==== Features
204
-
205
- * Implement Slop#respond_to_missing?. (#1176)
206
- * Optimized the XPath query generated by an `an+b` CSS query.
207
-
208
-
209
- ==== Bug fixes
210
-
211
- * Capture non-parse errors from Document#dup in Document#errors. (#1196)
212
- * (JRuby) Document#canonicalize parameters are now consistent with MRI. (#1189)
213
-
214
-
215
- === 1.6.4.1 / 2014-11-05
216
-
217
- ==== Bug fixes
218
-
219
- * (MRI) Fix a bug where CFLAGS passed in are dropped. (#1188)
220
- * Fix a bug where CSS selector :nth(n) did not work. (#1187)
221
-
222
-
223
- === 1.6.4 / 2014-11-04
224
-
225
- ==== Features
226
-
227
- * (MRI) Bundled Libxml2 is upgraded to 2.9.2.
228
- * (MRI) `nokogiri --version` will include a list of applied patches.
229
- * (MRI) Nokogiri no longer prints messages directly to TTY while building the extension.
230
- * (MRI) Detect and help user fix a missing /usr/include/iconv.h on OS X. (#1111)
231
- * (MRI) Improve the iconv detection for building libxml2.
232
-
233
- ==== Bug fixes
234
-
235
- * (MRI) Fix DocumentFragment#element_children (#1138).
236
- * Fix a bug with CSS attribute selector without any prefix where "foo [bar]" was treated as "foo[bar]". (#1174)
237
-
238
-
239
- === 1.6.3.1 / 2014-07-21
240
-
241
- ==== Bug fixes
242
-
243
- * Addressing an Apple Macintosh installation problem for GCC users. #1130 (Thanks, @zenspider!)
244
-
245
-
246
- === 1.6.3 / 2014-07-20
247
-
248
- ==== Features
249
-
250
- * Added Node#document? and Node#processing_instruction?
251
-
252
-
253
- ==== Bug fixes
254
-
255
- * [JRuby] Fix Ruby memory exhaustion vulnerability. #1087 (Thanks, @ocher)
256
- * [MRI] Fix segfault during GC when using `libxml-ruby` and `nokogiri` together in multi-threaded environment. #895 (Thanks, @ender672!)
257
- * Building on OSX 10.9 stock ruby 2.0.0 now works. #1101 (Thanks, @zenspider!)
258
- * Node#parse now works again for HTML document nodes (broken in 1.6.2+).
259
- * Processing instructions can now be added via Node#add_next_sibling.
260
-
261
-
262
- === 1.6.2.1 / 2014-05-13
263
-
264
- ==== Bug fixes
265
-
266
- * Fix statically-linked libxml2 installation when using universal builds of Ruby. #1104
267
- * Patching `mini_portile` to address the git dependency detailed in #1102.
268
- * Library load fix to address segfault reported on some systems. #1097
269
-
270
-
271
- === 1.6.2 / 2014-05-12
272
-
273
- ==== Security Note
274
-
275
- A set of security and bugfix patches have been backported from the libxml2 and libxslt repositories onto the version of 2.8.0 packaged with Nokogiri, including these notable security fixes:
276
-
277
- * https://git.gnome.org/browse/libxml2/commit/?id=4629ee02ac649c27f9c0cf98ba017c6b5526070f
278
- * CVE-2013-2877 https://git.gnome.org/browse/libxml2/commit/?id=e50ba8164eee06461c73cd8abb9b46aa0be81869
279
- * CVE-2014-0191 https://git.gnome.org/browse/libxml2/commit/?id=9cd1c3cfbd32655d60572c0a413e017260c854df
280
-
281
- It is recommended that you upgrade from 1.6.x to this version as soon as possible.
282
-
283
- ==== Compatibility Note
284
-
285
- Now requires libxml >= 2.6.21 (was previously >= 2.6.17).
286
-
287
- ==== Features
288
-
289
- * Add cross building of fat binary gems for 64-Bit Windows (x64-mingw32) and add support for native builds on Windows. #864, #989, #1072
290
- * (MRI) Alias CP932 to Windows-31J if iconv does not support Windows-31J.
291
- * (MRI) Nokogiri now links packaged libraries statically. To disable static linking, pass --disable-static to extconf.rb. #923
292
- * (MRI) Fix a library path (LIBPATH) precedence problem caused by CRuby bug #9760.
293
- * (MRI) Nokogiri automatically deletes directories of packaged libraries only used during build. To keep them for debugging purposes, pass --disable-clean to extconf.rb. #952
294
- * (MRI) Nokogiri now builds libxml2 properly with iconv support on platforms where libiconv is installed outside the system default directories, such as FreeBSD.
295
- * Add support for an-b in nth selectors. #886 (Thanks, Magnus Bergmark!)
296
- * Add support for bare and multiple :not() functions in selectors. #887 (Thanks, Magnus Bergmark!)
297
- * (MRI) Add an extconf.rb option --use-system-libraries, alternative to setting the environment variable NOKOGIRI_USE_SYSTEM_LIBRARIES.
298
- * (MRI) Update packaged libraries: libxslt to 1.1.28, zlib to 1.2.8, and libiconv to 1.14, respectively.
299
- * Nokogiri::HTML::Document#title= and #meta_encoding= now always add an element if not present, trying hard to find the best place to put it.
300
- * Nokogiri::XML::DTD#html_dtd? and #html5_dtd? are added.
301
- * Nokogiri::XML::Node#prepend_child is added. #664
302
- * Nokogiri::XML::SAX::ParserContext#recovery is added. #453
303
- * Fix documentation for XML::Node#namespace. #803 #802 (Thanks, Hoylen Sue)
304
- * Allow Nokogiri::XML::Node#parse from unparented non-element nodes. #407
305
-
306
- ==== Bugfixes
307
-
308
- * Ensure :only-child pseudo class works within :not pseudo class. #858 (Thanks, Yamagishi Kazutoshi!)
309
- * Don't call pkg_config when using bundled libraries in extconf.rb #931 (Thanks, Shota Fukumori!)
310
- * Nokogiri.parse() does not mistake a non-HTML document like a RSS document as HTML document. #932 (Thanks, Yamagishi Kazutoshi!)
311
- * (MRI) Perform a node type check before adding a child node to another. Previously adding a text node to another as a child could cause a SEGV. #1092
312
- * (JRuby) XSD validation crashes in Java version. #373
313
- * (JRuby) Document already has a root node error while using Builder. #646
314
- * (JRuby) c14n tests are all passing on JRuby. #226
315
- * Parsing empty documents raise SyntaxError in strict mode. #1005
316
- * (JRuby) Make xpath faster by caching the xpath context. #741
317
- * (JRuby) XML SAX push parser leaks memory on JRuby, but not on MRI. #998
318
- * (JRuby) Inconsistent behavior aliasing the default namespace. #940
319
- * (JRuby) Inconsistent behavior between parsing and adding namespaces. #943
320
- * (JRuby) Xpath returns inconsistent result set on cloned document with namespaces and attributes. #1034
321
- * (JRuby) Java-Implementation forgets element namespaces #902
322
- * (JRuby) JRuby-Nokogiri does not recognise attributes inside namespaces #1081
323
- * (JRuby) JRuby-Nokogiri has different comment node name #1080
324
- * (JRuby) JAXPExtensionsProvider / Java 7 / Secure Processing #1070
325
-
326
- === 1.6.1 / 2013-12-14
327
-
328
- * Bugfixes
329
-
330
- * (JRuby) Fix out of memory bug when certain invalid documents are parsed.
331
- * (JRuby) Fix regression of billion-laughs vulnerability. #586
332
-
333
-
334
- === 1.6.0 / 2013-06-08
335
-
336
- This release was based on v1.5.10 and 1.6.0.rc1, and contains changes
337
- mentioned in both.
338
-
339
- * Deprecations
340
-
341
- * Remove pre 1.9 monitoring from Travis.
342
-
343
-
344
- === 1.6.0.rc1 / 2013-04-14
345
-
346
- This release was based on v1.5.9, and so does not contain any fixes
347
- mentioned in the notes for v1.5.10.
348
-
349
- * Notes
350
-
351
- * mini_portile is now a runtime dependency
352
- * Ruby 1.9.2 and higher now required
353
-
354
-
355
- * Features
356
-
357
- * (MRI) Source code for libxml 2.8.0 and libxslt 1.2.26 is packaged
358
- with the gem. These libraries are compiled at gem install time
359
- unless the environment variable NOKOGIRI_USE_SYSTEM_LIBRARIES is
360
- set. VERSION_INFO (also `nokogiri -v`) exposes whether libxml was
361
- compiled from packaged source, or the system library was used.
362
- * (Windows) libxml upgraded to 2.8.0
363
-
364
-
365
- * Deprecations
366
-
367
- * Support for Ruby 1.8.7 and prior has been dropped
368
-
369
-
370
- === 1.5.11 / 2013-12-14
371
-
372
- * Bugfixes
373
-
374
- * (JRuby) Fix out of memory bug when certain invalid documents are parsed.
375
- * (JRuby) Fix regression of billion-laughs vulnerability. #586
376
-
377
-
378
- === 1.5.10 / 2013-06-07
379
-
380
- * Bugfixes
381
-
382
- * (JRuby) Fix "null document" error when parsing an empty IO in jruby 1.7.3. #883
383
- * (JRuby) Fix schema validation when XSD has DOCTYPE set to DTD. #912 (Thanks, Patrick Cheng!)
384
- * (MRI) Fix segfault when there is no default subelement for an HTML node. #917
385
-
386
-
387
- * Notes
388
-
389
- * Use rb_ary_entry instead of RARRAY_PTR (you know, for Rubinius). #877 (Thanks, Dirkjan Bussink!)
390
- * Fix TypeError when running tests. #900 (Thanks, Cédric Boutillier!)
391
-
392
-
393
- === 1.5.9 / 2013-03-21
394
-
395
- * Bugfixes
396
-
397
- * Ensure that prefixed attributes are properly namespaced when reparented. #869
398
- * Fix for inconsistent namespaced attribute access for SVG nested in HTML. #861
399
- * (MRI) Fixed a memory leak in fragment parsing if nodes are not all subsequently reparented. #856
400
-
401
-
402
- === 1.5.8 / 2013-03-19
403
-
404
- * Bugfixes
405
-
406
- * (JRuby) Fix EmptyStackException thrown by elements with xlink:href attributes and no base_uri #534, #805. (Thanks, Patrick Quinn and Brian Hoffman!)
407
- * Fixes duplicate attributes issue introduced in 1.5.7. #865
408
- * Allow use of a prefixed namespace on a root node using Nokogiri::XML::Builder #868
409
-
410
-
411
- === 1.5.7 / 2013-03-18
412
-
413
- * Features
414
-
415
- * Windows support for Ruby 2.0.
416
-
417
-
418
- * Bugfixes
419
-
420
- * SAX::Parser.parse_io throw an error when used with lower case encoding. #828
421
- * (JRuby) Java Nokogiri is finally green (passes all tests) under 1.8 and 1.9 mode. High five everyone. #798, #705
422
- * (JRuby) Nokogiri::XML::Reader broken (as a pull parser) on jruby - reads the whole XML document. #831
423
- * (JRuby) JRuby hangs parsing "&". #837
424
- * (JRuby) JRuby NPE parsing an invalid XML instruction. #838
425
- * (JRuby) Node#content= incompatibility. #839
426
- * (JRuby) to_xhtml doesn't print the last slash for self-closing tags in JRuby. #834
427
- * (JRuby) Adding an EntityReference after a Text node mangles the entity in JRuby. #835
428
- * (JRuby) JRuby version inconsistency: nil for empty attributes. #818
429
- * CSS queries for classes (e.g., ".foo") now treat all whitespace identically. #854
430
- * Namespace behavior cleaned up and made consistent between JRuby and MRI. #846, #801 (Thanks, Michael Klein!)
431
- * (MRI) SAX parser handles empty processing instructions. #845
432
-
433
-
434
- === 1.5.6 / 2012-12-19
435
-
436
- * Features
437
-
438
- * Improved performance of XML::Document#collect_namespaces. #761 (Thanks, Juergen Mangler!)
439
- * New callback SAX::Document#processing_instruction (Thanks, Kitaiti Makoto!)
440
- * Node#native_content= allows setting unescaped node contant. #768
441
- * XPath lookup with namespaces supports symbol keys. #729 (Thanks, Ben Langfeld.)
442
- * XML::Node#[]= stringifies values. #729 (Thanks, Ben Langfeld.)
443
- * bin/nokogiri will process a document from $stdin
444
- * bin/nokogiri -e will execute a program from the command line
445
- * (JRuby) bin/nokogiri --version will print the Xerces and NekoHTML versions.
446
-
447
-
448
- * Bugfixes
449
-
450
- * Nokogiri now detects XSLT transform errors. #731 (Thanks, Justin Fitzsimmons!)
451
- * Don't throw an Error when trying to replace top-level text node in DocumentFragment. #775
452
- * Raise an ArgumentError if an invalid encoding is passed to the SAX parser. #756 (Thanks, Bradley Schaefer!)
453
- * Prefixed element inconsistency between CRuby and JRuby. #712
454
- * (JRuby) space prior to xml preamble causes nokogiri to fail parsing. (fixed along with #748) #790
455
- * (JRuby) Fixed the bug Nokogiri::XML::Node#content inconsistency between Java and C. #794, #797
456
- * (JRuby) raises INVALID_CHARACTER_ERR exception when EntityReference name starts with '#'. #719
457
- * (JRuby) doesn't coerce namespaces out of strings on a direct subclass of Node. #715
458
- * (JRuby) Node#content now renders newlines properly. #737 (Thanks, Piotr Szmielew!)
459
- * (JRuby) Unknown namespace are ignore when the recover option is used. #748
460
- * (JRuby) XPath queries for namespaces should not throw exceptions when called twice in a row. #764
461
- * (JRuby) More consistent (with libxml2) whitespace formatting when emitting XML. #771
462
- * (JRuby) namespaced attributes broken when appending raw xml to builder. #770
463
- * (JRuby) Nokogiri::XML::Document#wrap raises undefined method `length' for nil:NilClass when trying to << to a node. #781
464
- * (JRuby) Fixed "bad file descriptor" bug when closing open file descriptors. #495
465
- * (JRuby) JRuby/CRuby incompatibility for attribute decorators. #785
466
- * (JRuby) Issues parsing valid XML with no internal subset in the DTD. #547, #811
467
- * (JRuby) Issues parsing valid node content when it contains colons. #728
468
- * (JRuby) Correctly parse the doc type of html documents. #733
469
- * (JRuby) Include dtd in the xml output when a builder is used with create_internal_subset. #751
470
- * (JRuby) builder requires textwrappers for valid utf8 in jruby, not in mri. #784
471
-
472
-
473
- === 1.5.5 / 2012-06-24
474
-
475
- * Features
476
-
477
- * Much-improved support for JRuby in 1.9 mode! Yay!
478
-
479
- * Bugfixes
480
-
481
- * Regression in JRuby Nokogiri add_previous_sibling (1.5.0 -> 1.5.1) #691 (Thanks, John Shahid!)
482
- * JRuby unable to create HTML doc if URL arg provided #674 (Thanks, John Shahid!)
483
- * JRuby raises NullPointerException when given HTML document is nil or empty string. #699
484
- * JRuby 1.9 error, uncaught throw 'encoding_found', has been fixed. #673
485
- * Invalid encoding returned in JRuby with US-ASCII. #583
486
- * XmlSaxPushParser raises IndexOutOfBoundsException when over 512 characters are given. #567, #615
487
- * When xpath evaluation returns empty NodeSet, decorating NodeSet's base document raises exception. #514
488
- * JRuby raises exception when xpath with namespace is specified. pull request #681 (Thanks, Piotr Szmielew)
489
- * JRuby renders nodes without their namespace when subclassing Node. #695
490
- * JRuby raises NAMESPACE_ERR (org.w3c.dom.DOMException) while instantiating RDF::RDFXML::Writer. #683
491
- * JRuby is not able to use namespaces in xpath. #493
492
- * JRuby's Entity resolving should be consistent with C-Nokogiri #704, #647, #703
493
-
494
-
495
- === 1.5.4 / 2012-06-12
496
-
497
- * Features
498
-
499
- * The "nokogiri" script now has more verbose output when passed the `--rng` option. #675 (Thanks, Dan Radez!)
500
- * Build support on hardened Debian systems that use `-Werror=format-security`. #680.
501
- * Better build support for systems with pkg-config. #584
502
- * Better build support for systems with multiple iconv installations.
503
-
504
- * Bugfixes
505
-
506
- * Segmentation fault when creating a comment node for a DocumentFragment. #677, #678.
507
- * Treat '.' as xpath in at() and search(). #690
508
-
509
- * (MRI, Security) Default parse options for XML documents were
510
- changed to not make network connections during document parsing,
511
- to avoid XXE vulnerability. #693
512
-
513
- To re-enable this behavior, the configuration method `nononet` may
514
- be called, like this:
515
-
516
- Nokogiri::XML::Document.parse(xml) { |config| config.nononet }
517
-
518
- Insert your own joke about double-negatives here.
519
-
520
-
521
- === 1.5.3 / 2012-06-01
522
-
523
- * Features
524
-
525
- * Support for "prefixless" CSS selectors ~, > and + like jQuery
526
- supports. #621, #623. (Thanks, David Lee!)
527
- * Attempting to improve installation on homebrew 0.9 (with regards
528
- to iconv). Isn't package management convenient?
529
-
530
- * Bugfixes
531
-
532
- * Custom xpath functions with empty nodeset arguments cause a
533
- segfault. #634.
534
- * Nokogiri::XML::Node#css now works for XML documents with default
535
- namespaces when the rule contains attribute selector without
536
- namespace.
537
- * Fixed marshalling bugs around how arguments are passed to (and
538
- returned from) XSLT custom xpath functions. #640.
539
- * Nokogiri::XML::Reader#outer_xml is broken in JRuby #617
540
- * Nokogiri::XML::Attribute on JRuby returns a nil namespace #647
541
- * Nokogiri::XML::Node#namespace= cannot set a namespace without a
542
- prefix on JRuby #648
543
- * (JRuby) 1.9 mode causes dead lock while running rake #571
544
- * HTML::Document#meta_encoding does not raise exception on docs with
545
- malformed content-type. #655
546
- * Fixing segfault related to unsupported encodings in in-context
547
- parsing on 1.8.7. #643
548
- * (JRuby) Concurrency issue in XPath parsing. #682
549
-
550
-
551
- === 1.5.2 / 2012-03-09
552
-
553
- Repackaging of 1.5.1 with a gemspec that is compatible with older Rubies. #631, #632.
554
-
555
-
556
- === 1.5.1 / 2012-03-09
557
-
558
- * Features
559
-
560
- * XML::Builder#comment allows creation of comment nodes.
561
- * CSS searches now support namespaced attributes. #593
562
- * Java integration feature is added. Now, XML::Document.wrap
563
- and XML::Document#to_java methods are available.
564
- * RelaxNG validator support in the `nokogiri` cli utility. #591 (thanks, Dan Radez!)
565
-
566
- * Bugfixes
567
-
568
- * Fix many memory leaks and segfault opportunities. Thanks, Tim Elliott!
569
- * extconf searches homebrew paths if homebrew is installed.
570
- * Inconsistent behavior of Nokogiri 1.5.0 Java #620
571
- * Inheriting from Nokogiri::XML::Node on JRuby (1.6.4/5) fails #560
572
- * XML::Attr nodes are not allowed to be added as node children, so an
573
- exception is raised. #558
574
- * No longer defensively "pickle" adjacent text nodes on
575
- Node#add_next_sibling and Node#add_previous_sibling calls. #595.
576
- * Java version inconsistency: it returns nil for empty attributes #589
577
- * to_xhtml incorrectly generates <p /></p> when tag is empty #557
578
- * Document#add_child now accepts a Node, NodeSet, DocumentFragment,
579
- or String. #546.
580
- * Document#create_element now recognizes namespaces containing
581
- non-word characters (like "SOAP-ENV"). This is mostly relevant to
582
- users of Builder, which calls Document#create_element for nearly
583
- everything. #531.
584
- * File encoding broken in 1.5.0 / jruby / windows #529
585
- * Java version does not return namespace defs as attrs for ::HTML #542
586
- * Bad file descriptor with Nokogiri 1.5.0 #495
587
- * remove_namespace! doesn't work in pure java version #492
588
- * The Nokogiri Java native build throws a null pointer exception
589
- when ActiveSupport's .blank? method is called directly on a parsed
590
- object. #489
591
- * 1.5.0 Not using correct character encoding #488
592
- * Raw XML string in XML Builder broken on JRuby #486
593
- * Nokogiri 1.5.0 XML generation broken on JRuby #484
594
- * Do not allow multiple root nodes. #550
595
- * Fixes for custom XPath functions. #605, #606 (thanks, Juan Wajnerman!)
596
- * Node#to_xml does not override :save_with if it is provided. #505
597
- * Node#set is a private method (JRuby). #564 (thanks, Nick Sieger!)
598
- * C14n cleanup and Node#canonicalize (thanks, Ivan Pirlik!) #563
599
-
600
-
601
- === 1.5.0 / 2011-07-01
602
-
603
- * Notes
604
-
605
- * See changelog from 1.4.7
606
-
607
- * Features
608
-
609
- * extracted sets of Node::SaveOptions into Node::SaveOptions::DEFAULT_{X,H,XH}TML (refactor)
610
-
611
- * Bugfixes
612
-
613
- * default output of XML on JRuby is no longer formatted due to
614
- inconsistent whitespace handling. #415
615
- * (JRuby) making empty NodeSets with null `nodes` member safe to operate on. #443
616
- * Fix a bug in advanced encoding detection that leads to partially
617
- duplicated document when parsing an HTML file with unknown
618
- encoding.
619
- * Add support for <meta charset="...">.
620
-
621
-
622
- === 1.5.0 beta3 / 2010/12/02
623
-
624
- * Notes
625
-
626
- * JRuby performance tuning
627
- * See changelog from 1.4.4
628
-
629
- * Bugfixes
630
-
631
- * Node#inner_text no longer returns nil. (JRuby) #264
632
-
633
-
634
- === 1.5.0 beta2 / 2010/07/30
635
-
636
- * Notes
637
-
638
- * See changelog from 1.4.3
639
-
640
-
641
- === 1.5.0 beta1 / 2010/05/22
642
-
643
- * Notes
644
-
645
- * JRuby support is provided by a new pure-java backend.
646
-
647
- * Deprecations
648
-
649
- * Ruby 1.8.6 is deprecated. Nokogiri will install, but official support is ended.
650
- * LibXML 2.6.16 and earlier are deprecated. Nokogiri will refuse to install.
651
- * FFI support is removed.
652
-
653
-
654
- === 1.4.7 / 2011-07-01
655
-
656
- * Bugfixes
657
-
658
- * Fix a bug in advanced encoding detection that leads to partially
659
- duplicated document when parsing an HTML file with unknown
660
- encoding. Thanks, Timothy Elliott (@ender672)! #478
661
-
662
-
663
- === 1.4.6 / 2011-06-19
664
-
665
- * Notes
666
-
667
- * This version is functionally identical to 1.4.5.
668
- * Ruby 1.8.6 support has been restored.
669
-
670
-
671
- === 1.4.5 / 2011-05-19
672
-
673
- * New Features
674
-
675
- * Nokogiri::HTML::Document#title accessor gets and sets the document title.
676
- * extracted sets of Node::SaveOptions into Node::SaveOptions::DEFAULT_{X,H,XH}TML (refactor)
677
- * Raise an exception if a string is passed to Nokogiri::XML::Schema#validate. #406
678
-
679
- * Bugfixes
680
-
681
- * Node#serialize-and-friends now accepts a SaveOption object as the, erm, save object.
682
- * Nokogiri::CSS::Parser has-a Nokogiri::CSS::Tokenizer
683
- * (JRUBY+FFI only) Weak references are now threadsafe. #355
684
- * Make direct start_element() callback (currently used for
685
- HTML::SAX::Parser) pass attributes in assoc array, just as
686
- emulated start_element() callback does. rel. #356
687
- * HTML::SAX::Parser should call back a block given to parse*() if any, just as XML::SAX::Parser does.
688
- * Add further encoding detection to HTML parser that libxml2 does not do.
689
- * Document#remove_namespaces! now handles attributes with namespaces. #396
690
- * XSLT::Stylesheet#transform no longer segfaults when handed a non-XML::Document. #452
691
- * XML::Reader no longer segfaults when under GC pressure. #439
692
-
693
-
694
- === 1.4.4 / 2010-11-15
695
-
696
- * New Features
697
-
698
- * XML::Node#children= sets the node's inner html (much like #inner_html=), but returns the reparent node(s).
699
- * XSLT supports function extensions. #336
700
- * XPath bind parameter substitution. #329
701
- * XML::Reader node type constants. #369
702
- * SAX Parser context provides line and column information
703
-
704
- * Bugfixes
705
-
706
- * XML::DTD#attributes returns an empty hash instead of nil when there are no attributes.
707
- * XML::DTD#{keys,each} now work as expected. #324
708
- * {XML,HTML}::DocumentFragment.{new,parse} no longer strip leading and trailing whitespace. #319
709
- * XML::Node#{add_child,add_previous_sibling,add_next_sibling,replace} return a NodeSet when passed a string.
710
- * Unclosed tags parsed more robustly in fragments. #315
711
- * XML::Node#{replace,add_previous_sibling,add_next_sibling} edge cases fixed related to libxml's text node merging. #308
712
- * Fixed a segfault when GC occurs during xpath handler argument marshalling. #345
713
- * Added hack to Slop decorator to work with previously defined methods. #330
714
- * Fix a memory leak when duplicating child nodes. #353
715
- * Fixed off-by-one bug with nth-last-{child,of-type} CSS selectors when NOT using an+b notation. #354
716
- * Fixed passing of non-namespace attributes to SAX::Document#start_element. #356
717
- * Workaround for libxml2 in-context parsing bug. #362
718
- * Fixed NodeSet#wrap on nodes within a fragment. #331
719
-
720
-
721
- === 1.4.3 / 2010/07/28
722
-
723
- * New Features
724
-
725
- * XML::Reader#empty_element? returns true for empty elements. #262
726
- * Node#remove_namespaces! now removes namespace *declarations* as well. #294
727
- * NodeSet#at_xpath, NodeSet#at_css and NodeSet#> do what the corresponding
728
- methods of Node do.
729
-
730
- * Bugfixes
731
-
732
- * XML::NodeSet#{include?,delete,push} accept an XML::Namespace
733
- * XML::Document#parse added for parsing in the context of a document
734
- * XML::DocumentFragment#inner_html= works with contextual parsing! #298, #281
735
- * lib/nokogiri/css/parser.y Combined CSS functions + pseudo selectors fixed
736
- * Reparenting text nodes is safe, even when the operation frees adjacent merged nodes. #283
737
- * Fixed libxml2 versionitis issue with xmlFirstElementChild et al. #303
738
- * XML::Attr#add_namespace now works as expected. #252
739
- * HTML::DocumentFragment uses the string's encoding. #305
740
- * Fix the CSS3 selector translation rule for the general sibling combinator
741
- (a.k.a. preceding selector) that incorrectly converted "E ~ F G" to
742
- "//F//G[preceding-sibling::E]".
743
-
744
-
745
- === 1.4.2 / 2010/05/22
746
-
747
- * New Features
748
-
749
- * XML::Node#parse will parse XML or HTML fragments with respect to the
750
- context node.
751
- * XML::Node#namespaces returns all namespaces defined in the node and all
752
- ancestor nodes
753
- (previously did not return ancestors' namespace definitions).
754
- * Added Enumerable to XML::Node
755
- * Nokogiri::XML::Schema#validate now uses xmlSchemaValidateFile if a
756
- filename is passed, which is faster and more memory-efficient. GH #219
757
- * XML::Document#create_entity will create new EntityDecl objects. GH #174
758
- * JRuby FFI implementation no longer uses ObjectSpace._id2ref,
759
- instead using Charles Nutter's rocking Weakling gem.
760
- * Nokogiri::XML::Node#first_element_child fetch the first child node that is
761
- an ELEMENT node.
762
- * Nokogiri::XML::Node#last_element_child fetch the last child node that is
763
- an ELEMENT node.
764
- * Nokogiri::XML::Node#elements fetch all children nodes that are ELEMENT
765
- nodes.
766
- * Nokogiri::XML::Node#add_child, #add_previous_sibling, #before,
767
- #add_next_sibling, #after, #inner_html, #swap and #replace all now
768
- accept a Node, DocumentFragment, NodeSet, or a string containing
769
- markup.
770
- * Node#fragment? indicates whether a node is a DocumentFragment.
771
-
772
- * Bugfixes
773
-
774
- * XML::NodeSet is now always decorated (if the document has decorators).
775
- GH #198
776
- * XML::NodeSet#slice gracefully handles offset+length larger than the set
777
- length. GH #200
778
- * XML::Node#content= safely unlinks previous content. GH #203
779
- * XML::Node#namespace= takes nil as a parameter
780
- * XML::Node#xpath returns things other than NodeSet objects. GH #208
781
- * XSLT::StyleSheet#transform accepts hashes for parameters. GH #223
782
- * Psuedo selectors inside not() work. GH #205
783
- * XML::Builder doesn't break when nodes are unlinked.
784
- Thanks to vihai! GH #228
785
- * Encoding can be forced on the SAX parser. Thanks Eugene Pimenov! GH #204
786
- * XML::DocumentFragment uses XML::Node#parse to determine children.
787
- * Fixed a memory leak in xml reader. Thanks sdor! GH #244
788
- * Node#replace returns the new child node as claimed in the
789
- RDoc. Previously returned +self+.
790
-
791
- * Notes
792
-
793
- * The Windows gems now bundle DLLs for libxml 2.7.6 and libxslt
794
- 1.1.26. Prior to this release, libxml 2.7.3 and libxslt 1.1.24
795
- were bundled.
796
-
797
-
798
- === 1.4.1 / 2009/12/10
799
-
800
- * New Features
801
-
802
- * Added Nokogiri::LIBXML_ICONV_ENABLED
803
- * Alias Node#[] to Node#attr
804
- * XML::Node#next_element added
805
- * XML::Node#> added for searching a nodes immediate children
806
- * XML::NodeSet#reverse added
807
- * Added fragment support to Node#add_child, Node#add_next_sibling,
808
- Node#add_previous_sibling, and Node#replace.
809
- * XML::Node#previous_element implemented
810
- * Rubinius support
811
- * Ths CSS selector engine now supports :has()
812
- * XML::NodeSet#filter() was added
813
- * XML::Node.next= and .previous= are aliases for add_next_sibling and add_previous_sibling. GH #183
814
-
815
- * Bugfixes
816
-
817
- * XML fragments with namespaces do not raise an exception (regression in 1.4.0)
818
- * Node#matches? works in nodes contained by a DocumentFragment. GH #158
819
- * Document should not define add_namespace() method. GH #169
820
- * XPath queries returning namespace declarations do not segfault.
821
- * Node#replace works with nodes from different documents. GH #162
822
- * Adding XML::Document#collect_namespaces
823
- * Fixed bugs in the SOAP4R adapter
824
- * Fixed bug in XML::Node#next_element for certain edge cases
825
- * Fixed load path issue with JRuby under Windows. GH #160.
826
- * XSLT#apply_to will honor the "output method". Thanks richardlehane!
827
- * Fragments containing leading text nodes with newlines now parse properly. GH #178.
828
-
829
-
830
- === 1.4.0 / 2009/10/30
831
-
832
- * Happy Birthday!
833
-
834
- * New Features
835
-
836
- * Node#at_xpath returns the first element of the NodeSet matching the XPath
837
- expression.
838
- * Node#at_css returns the first element of the NodeSet matching the CSS
839
- selector.
840
- * NodeSet#| for unions GH #119 (Thanks Serabe!)
841
- * NodeSet#inspect makes prettier output
842
- * Node#inspect implemented for more rubyish document inspecting
843
- * Added XML::DTD#external_id
844
- * Added XML::DTD#system_id
845
- * Added XML::ElementContent for DTD Element content validity
846
- * Better namespace declaration support in Nokogiri::XML::Builder
847
- * Added XML::Node#external_subset
848
- * Added XML::Node#create_external_subset
849
- * Added XML::Node#create_internal_subset
850
- * XML Builder can append raw strings (GH #141, patch from dudleyf)
851
- * XML::SAX::ParserContext added
852
- * XML::Document#remove_namespaces! for the namespace-impaired
853
-
854
- * Bugfixes
855
-
856
- * returns nil when HTML documents do not declare a meta encoding tag. GH #115
857
- * Uses RbConfig::CONFIG['host_os'] to adjust ENV['PATH'] GH #113
858
- * NodeSet#search is more efficient GH #119 (Thanks Serabe!)
859
- * NodeSet#xpath handles custom xpath functions
860
- * Fixing a SEGV when XML::Reader gets attributes for current node
861
- * Node#inner_html takes the same arguments as Node#to_html GH #117
862
- * DocumentFragment#css delegates to it's child nodes GH #123
863
- * NodeSet#[] works with slices larger than NodeSet#length GH #131
864
- * Reparented nodes maintain their namespace. GH #134
865
- * Fixed SEGV when adding an XML::Document to NodeSet
866
- * XML::SyntaxError can be duplicated. GH #148
867
-
868
- * Deprecations
869
-
870
- * Hpricot compatibility layer removed
871
-
872
-
873
- === 1.3.3 / 2009/07/26
874
-
875
- * New Features
876
-
877
- * NodeSet#children returns all children of all nodes
878
-
879
- * Bugfixes
880
-
881
- * Override libxml-ruby's global error handler
882
- * ParseOption#strict fixed
883
- * Fixed a segfault when sending an empty string to Node#inner_html= GH #88
884
- * String encoding is now set to UTF-8 in Ruby 1.9
885
- * Fixed a segfault when moving root nodes between documents. GH #91
886
- * Fixed an O(n) penalty on node creation. GH #101
887
- * Allowing XML documents to be output as HTML documents
888
-
889
- * Deprecations
890
-
891
- * Hpricot compatibility layer will be removed in 1.4.0
892
-
893
-
894
- === 1.3.2 / 2009-06-22
895
-
896
- * New Features
897
-
898
- * Nokogiri::XML::DTD#validate will validate your document
899
-
900
- * Bugfixes
901
-
902
- * Nokogiri::XML::NodeSet#search will search top level nodes. GH #73
903
- * Removed namespace related methods from Nokogiri::XML::Document
904
- * Fixed a segfault when a namespace was added twice
905
- * Made nokogiri work with Snow Leopard GH #79
906
- * Mailing list has moved to: http://groups.google.com/group/nokogiri-talk
907
- * HTML fragments now correctly handle comments and CDATA blocks. GH #78
908
- * Nokogiri::XML::Document#clone is now an alias of dup
909
-
910
- * Deprecations
911
-
912
- * Nokogiri::XML::SAX::Document#start_element_ns is deprecated, please switch
913
- to Nokogiri::XML::SAX::Document#start_element_namespace
914
- * Nokogiri::XML::SAX::Document#end_element_ns is deprecated, please switch
915
- to Nokogiri::XML::SAX::Document#end_element_namespace
916
-
917
-
918
- === 1.3.1 / 2009-06-07
919
-
920
- * Bugfixes
921
-
922
- * extconf.rb checks for optional RelaxNG and Schema functions
923
- * Namespace nodes are added to the Document node cache
924
-
925
-
926
- === 1.3.0 / 2009-05-30
927
-
928
- * New Features
929
-
930
- * Builder changes scope based on block arity
931
- * Builder supports methods ending in underscore similar to tagz
932
- * Nokogiri::XML::Node#<=> compares nodes based on Document position
933
- * Nokogiri::XML::Node#matches? returns true if Node can be found with
934
- given selector.
935
- * Nokogiri::XML::Node#ancestors now returns an Nokogiri::XML::NodeSet
936
- * Nokogiri::XML::Node#ancestors will match parents against optional selector
937
- * Nokogiri::HTML::Document#meta_encoding for getting the meta encoding
938
- * Nokogiri::HTML::Document#meta_encoding= for setting the meta encoding
939
- * Nokogiri::XML::Document#encoding= to set the document encoding
940
- * Nokogiri::XML::Schema for validating documents against XSD schema
941
- * Nokogiri::XML::RelaxNG for validating documents against RelaxNG schema
942
- * Nokogiri::HTML::ElementDescription for fetching HTML element descriptions
943
- * Nokogiri::XML::Node#description to fetch the node description
944
- * Nokogiri::XML::Node#accept implements Visitor pattern
945
- * bin/nokogiri for easily examining documents (Thanks Yutaka HARA!)
946
- * Nokogiri::XML::NodeSet now supports more Array and Enumerable operators:
947
- index, delete, slice, - (difference), + (concatenation), & (intersection),
948
- push, pop, shift, ==
949
- * Nokogiri.XML, Nokogiri.HTML take blocks that receive
950
- Nokogiri::XML::ParseOptions objects
951
- * Nokogiri::XML::Node#namespace returns a Nokogiri::XML::Namespace
952
- * Nokogiri::XML::Node#namespace= for setting a node's namespace
953
- * Nokogiri::XML::DocumentFragment and Nokogiri::HTML::DocumentFragment
954
- have a sensible API and a more robust implementation.
955
- * JRuby 1.3.0 support via FFI.
956
-
957
- * Bugfixes
958
-
959
- * Fixed a problem with nil passed to CDATA constructor
960
- * Fragment method deals with regular expression characters
961
- (Thanks Joel!) LH #73
962
- * Fixing builder scope issues LH #61, LH #74, LH #70
963
- * Fixed a problem when adding a child could remove the child namespace LH#78
964
- * Fixed bug with unlinking a node then reparenting it. (GH#22)
965
- * Fixed failure to catch errors during XSLT parsing (GH#32)
966
- * Fixed a bug with attribute conditions in CSS selectors (GH#36)
967
- * Fixed intolerance of HTML attributes without values in Node#before/after/inner_html=. (GH#35)
968
-
969
-
970
- === 1.2.3 / 2009-03-22
971
-
972
- * Bugfixes
973
-
974
- * Fixing bug where a node is passed in to Node#new
975
- * Namespace should be assigned on DocumentFragment creation. LH #66
976
- * Nokogiri::XML::NodeSet#dup works GH #10
977
- * Nokogiri::HTML returns an empty Document when given a blank string GH#11
978
- * Adding a child will remove duplicate namespace declarations LH #67
979
- * Builder methods take a hash as a second argument
980
-
981
-
982
- === 1.2.2 / 2009-03-14
983
-
984
- * New features
985
-
986
- * Nokogiri may be used with soap4r. See XSD::XMLParser::Nokogiri
987
- * Nokogiri::XML::Node#inner_html= to set the inner html for a node
988
- * Nokogiri builder interface improvements
989
- * Nokogiri::XML::Node#swap swaps html for current node (LH #50)
990
-
991
- * Bugfixes
992
-
993
- * Fixed a tag nesting problem in the Builder API (LH #41)
994
- * Nokogiri::HTML.fragment will properly handle text only nodes (LH #43)
995
- * Nokogiri::XML::Node#before will prepend text nodes (LH #44)
996
- * Nokogiri::XML::Node#after will append text nodes
997
- * Nokogiri::XML::Node#search automatically registers root namespaces (LH #42)
998
- * Nokogiri::XML::NodeSet#search automatically registers namespaces
999
- * Nokogiri::HTML::NamedCharacters delegates to libxml2
1000
- * Nokogiri::XML::Node#[] can take a symbol (LH #48)
1001
- * vasprintf for windows updated. Thanks Geoffroy Couprie!
1002
- * Nokogiri::XML::Node#[]= should not encode entities (LH #55)
1003
- * Namespaces should be copied to reparented nodes (LH #56)
1004
- * Nokogiri uses encoding set on the string for default in Ruby 1.9
1005
- * Document#dup should create a new document of the same type (LH #59)
1006
- * Document should not have a parent method (LH #64)
1007
-
1008
-
1009
- === 1.2.1 / 2009-02-23
1010
-
1011
- * Bugfixes
1012
-
1013
- * Fixed a CSS selector space bug
1014
- * Fixed Ruby 1.9 String Encoding (Thanks 角谷さん!)
1015
-
1016
-
1017
- === 1.2.0 / 2009-02-22
1018
-
1019
- * New features
1020
-
1021
- * CSS search now supports CSS3 namespace queries
1022
- * Namespaces on the root node are automatically registered
1023
- * CSS queries use the default namespace
1024
- * Nokogiri::XML::Document#encoding get encoding used for this document
1025
- * Nokogiri::XML::Document#url get the document url
1026
- * Nokogiri::XML::Node#add_namespace add a namespace to the node LH#38
1027
- * Nokogiri::XML::Node#each iterate over attribute name, value pairs
1028
- * Nokogiri::XML::Node#keys get all attribute names
1029
- * Nokogiri::XML::Node#line get the line number for a node (Thanks Dirkjan Bussink!)
1030
- * Nokogiri::XML::Node#serialize now takes an optional encoding parameter
1031
- * Nokogiri::XML::Node#to_html, to_xml, and to_xhtml take an optional encoding
1032
- * Nokogiri::XML::Node#to_str
1033
- * Nokogiri::XML::Node#to_xhtml to produce XHTML documents
1034
- * Nokogiri::XML::Node#values get all attribute values
1035
- * Nokogiri::XML::Node#write_to writes the node to an IO object with optional encoding
1036
- * Nokogiri::XML::ProcessingInstrunction.new
1037
- * Nokogiri::XML::SAX::PushParser for all your push parsing needs.
1038
-
1039
- * Bugfixes
1040
-
1041
- * Fixed Nokogiri::XML::Document#dup
1042
- * Fixed header detection. Thanks rubikitch!
1043
- * Fixed a problem where invalid CSS would cause the parser to hang
1044
-
1045
- * Deprecations
1046
-
1047
- * Nokogiri::XML::Node.new_from_str will be deprecated in 1.3.0
1048
-
1049
- * API Changes
1050
-
1051
- * Nokogiri::HTML.fragment now returns an XML::DocumentFragment (LH #32)
1052
-
1053
-
1054
- === 1.1.1
1055
-
1056
- * New features
1057
-
1058
- * Added XML::Node#elem?
1059
- * Added XML::Node#attribute_nodes
1060
- * Added XML::Attr
1061
- * XML::Node#delete added.
1062
- * XML::NodeSet#inner_html added.
1063
-
1064
- * Bugfixes
1065
-
1066
- * Not including an HTML entity for \r for HTML nodes.
1067
- * Removed CSS::SelectorHandler and XML::XPathHandler
1068
- * XML::Node#attributes returns an Attr node for the value.
1069
- * XML::NodeSet implements to_xml
1070
-
1071
-
1072
- === 1.1.0
1073
-
1074
- * New Features
1075
-
1076
- * Custom XPath functions are now supported. See Nokogiri::XML::Node#xpath
1077
- * Custom CSS pseudo classes are now supported. See Nokogiri::XML::Node#css
1078
- * Nokogiri::XML::Node#<< will add a child to the current node
1079
-
1080
- * Bugfixes
1081
-
1082
- * Mutex lock on CSS cache access
1083
- * Fixed build problems with GCC 3.3.5
1084
- * XML::Node#to_xml now takes an indentation argument
1085
- * XML::Node#dup takes an optional depth argument
1086
- * XML::Node#add_previous_sibling returns new sibling node.
1087
-
1088
-
1089
- === 1.0.7
1090
-
1091
- * Bugfixes
1092
-
1093
- * Fixed memory leak when using Dike
1094
- * SAX parser now parses IO streams
1095
- * Comment nodes have their own class
1096
- * Nokogiri() should delegate to Nokogiri.parse()
1097
- * Prepending rather than appending to ENV['PATH'] on windows
1098
- * Fixed a bug in complex CSS negation selectors
1099
-
1100
-
1101
- === 1.0.6
1102
-
1103
- * 5 Bugfixes
1104
-
1105
- * XPath Parser raises a SyntaxError on parse failure
1106
- * CSS Parser raises a SyntaxError on parse failure
1107
- * filter() and not() hpricot compatibility added
1108
- * CSS searches via Node#search are now always relative
1109
- * CSS to XPath conversion is now cached
1110
-
1111
-
1112
- === 1.0.5
1113
-
1114
- * Bugfixes
1115
-
1116
- * Added mailing list and ticket tracking information to the README.txt
1117
- * Sets ENV['PATH'] on windows if it doesn't exist
1118
- * Caching results of NodeSet#[] on Document
1119
-
1120
-
1121
- === 1.0.4
1122
-
1123
- * Bugfixes
1124
-
1125
- * Changed memory management from weak refs to document refs
1126
- * Plugged some memory leaks
1127
- * Builder blocks can call methods from surrounding contexts
1128
-
1129
-
1130
- === 1.0.3
1131
-
1132
- * 5 Bugfixes
1133
-
1134
- * NodeSet now implements to_ary
1135
- * XML::Document should not implement parent
1136
- * More GC Bugs fixed. (Mike is AWESOME!)
1137
- * Removed RARRAY_LEN for 1.8.5 compatibility. Thanks Shane Hanna.
1138
- * inner_html fixed. (Thanks Yehuda!)
1139
-
1140
-
1141
- === 1.0.2
1142
-
1143
- * 1 Bugfix
1144
-
1145
- * extconf.rb should not check for frex and racc
1146
-
1147
-
1148
- === 1.0.1
1149
-
1150
- * 1 Bugfix
1151
-
1152
- * Made sure extconf.rb searched libdir and prefix so that ports libxml/ruby
1153
- will link properly. Thanks lucsky!
1154
-
1155
-
1156
- === 1.0.0 / 2008-07-13
1157
-
1158
- * 1 major enhancement
1159
-
1160
- * Birthday!