nokogiri 1.9.0.rc1 → 1.9.0

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