# \[ANN\] nokogiri 1.6.2 Released

**URL:** <https://rubytalk.org/t/ann-nokogiri-1-6-2-released/69431>\
**Category:** ruby-talk\
**Created:** [12 May 2014 22:35 UTC](https://rubytalk.org/t/ann-nokogiri-1-6-2-released/69431 "2014-05-12T22:35:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Dalessio1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/mike_dalessio1/32/1903_2.png) [@Mike\_Dalessio1](https://rubytalk.org/u/Mike_Dalessio1)\
**Post date:** [12 May 2014 22:35 UTC](https://rubytalk.org/t/ann-nokogiri-1-6-2-released/69431/1 "2014-05-12T22:35:44Z")

</div>

nokogiri version 1.6.2 has been released!

\* \<[http://nokogiri.org](http://nokogiri.org)\>  
\* \<[https://github.com/sparklemotion/nokogiri/wikis](https://github.com/sparklemotion/nokogiri/wikis)\>  
\* \<[https://github.com/sparklemotion/nokogiri/tree/master](https://github.com/sparklemotion/nokogiri/tree/master)\>  
\* \<[https://groups.google.com/group/nokogiri-talk](https://groups.google.com/group/nokogiri-talk)\>  
\* \<[https://github.com/sparklemotion/nokogiri/issues](https://github.com/sparklemotion/nokogiri/issues)\>

Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's  
many features is the ability to search documents via XPath or CSS3  
selectors.

==== Security Note

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:

> **···**
>
> \*  
> [https://git.gnome.org/browse/libxml2/commit/?id=4629ee02ac649c27f9c0cf98ba017c6b5526070f](https://git.gnome.org/browse/libxml2/commit/?id=4629ee02ac649c27f9c0cf98ba017c6b5526070f)  
> \* CVE-2013-2877  
> [https://git.gnome.org/browse/libxml2/commit/?id=e50ba8164eee06461c73cd8abb9b46aa0be81869](https://git.gnome.org/browse/libxml2/commit/?id=e50ba8164eee06461c73cd8abb9b46aa0be81869)  
> \* CVE-2014-0191  
> [https://git.gnome.org/browse/libxml2/commit/?id=9cd1c3cfbd32655d60572c0a413e017260c854df](https://git.gnome.org/browse/libxml2/commit/?id=9cd1c3cfbd32655d60572c0a413e017260c854df)
> 
> It is recommended that you upgrade from 1.6.x to this version as soon as  
> possible.
> 
> ==== Compatibility Note
> 
> Now requires libxml \>= 2.6.21 (was previously \>= 2.6.17).
> 
> ==== Features
> 
> \* Add cross building of fat binary gems for 64-Bit Windows (x64-mingw32)  
> and add support for native builds on Windows. #864, #989, #1072  
> \* (MRI) Alias CP932 to Windows-31J if iconv does not support Windows-31J.  
> \* (MRI) Nokogiri now links packaged libraries statically. To disable static  
> linking, pass --disable-static to extconf.rb. #923  
> \* (MRI) Fix a library path (LIBPATH) precedence problem caused by CRuby bug  
> #9760.  
> \* (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  
> \* (MRI) Nokogiri now builds libxml2 properly with iconv support on  
> platforms where libiconv is installed outside the system default  
> directories, such as FreeBSD.  
> \* Add support for an-b in nth selectors. #886 (Thanks, Magnus Bergmark!)  
> \* Add support for bare and multiple :not() functions in selectors. #887  
> (Thanks, Magnus Bergmark!)  
> \* (MRI) Add an extconf.rb option --use-system-libraries, alternative to  
> setting the environment variable NOKOGIRI\_USE\_SYSTEM\_LIBRARIES.  
> \* (MRI) Update packaged libraries: libxslt to 1.1.28, zlib to 1.2.8, and  
> libiconv to 1.14, respectively.  
> \* 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.  
> \* Nokogiri::XML::DTD#html\_dtd? and #html5\_dtd? are added.  
> \* Nokogiri::XML::Node#prepend\_child is added. #664  
> \* Nokogiri::XML::SAX::ParserContext#recovery is added. #453  
> \* Fix documentation for XML::Node#namespace. #803 #802 (Thanks, Hoylen Sue)  
> \* Allow Nokogiri::XML::Node#parse from unparented non-element nodes. #407
> 
> ==== Bugfixes
> 
> \* Ensure :only-child pseudo class works within :not pseudo class. #858  
> (Thanks, Yamagishi Kazutoshi!)  
> \* Don't call pkg\_config when using bundled libraries in extconf.rb #931  
> (Thanks, Shota Fukumori!)  
> \* Nokogiri.parse() does not mistake a non-HTML document like a RSS document  
> as HTML document. #932 (Thanks, Yamagishi Kazutoshi!)  
> \* (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  
> \* (JRuby) XSD validation crashes in Java version. #373  
> \* (JRuby) Document already has a root node error while using Builder. #646  
> \* (JRuby) c14n tests are all passing on JRuby. #226  
> \* Parsing empty documents raise SyntaxError in strict mode. #1005  
> \* (JRuby) Make xpath faster by caching the xpath context. #741  
> \* (JRuby) XML SAX push parser leaks memory on JRuby, but not on MRI. #998  
> \* (JRuby) Inconsistent behavior aliasing the default namespace. #940  
> \* (JRuby) Inconsistent behavior between parsing and adding namespaces. #943  
> \* (JRuby) Xpath returns inconsistent result set on cloned document with  
> namespaces and attributes. #1034  
> \* (JRuby) Java-Implementation forgets element namespaces #902  
> \* (JRuby) JRuby-Nokogiri does not recognise attributes inside namespaces  
> #1081  
> \* (JRuby) JRuby-Nokogiri has different comment node name #1080  
> \* (JRuby) JAXPExtensionsProvider / Java 7 / Secure Processing #1070
> 
> subject: [ANN] nokogiri 1.6.2.rc3 Released
> 
> nokogiri v1.6.2.rc3 has been released!
> 
> ---
> 
> NOTABLE CHANGES SINCE v1.6.1:
> 
> \* Add cross building of fat binary gems for 64-Bit Windows (x64-mingw32)  
> and add support for native builds on Windows. #864, #989, #1072  
> \* (MRI) Nokogiri now links packaged libraries statically. To disable static  
> linking, pass --disable-static to extconf.rb. #923  
> \* (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  
> \* Now requires libxml \>= 2.6.21 (was previously \>= 2.6.17).
> 
> ---
> 
> DETAILS OF CHANGES SINCE v1.6.2.rc2:
> 
> \* (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  
> \* (JRuby) Inconsistent behavior aliasing the default namespace. #940  
> \* (JRuby) Inconsistent behavior between parsing and adding namespaces. #943  
> \* (JRuby) Xpath returns inconsistent result set on cloned document with  
> namespaces and attributes. #1034  
> \* (JRuby) Java-Implementation forgets element namespaces #902  
> \* (JRuby) JRuby-Nokogiri does not recognise attributes inside namespaces  
> #1081  
> \* (JRuby) JRuby-Nokogiri has different comment node name #1080  
> \* (JRuby) JAXPExtensionsProvider / Java 7 / Secure Processing #1070
> 
> ---
> 
> FULL CHANGELOG:
> 
> ### 1.6.2 / unreleased
> 
> \* Notes
> 
> &nbsp;&nbsp;\* Now requires libxml \>= 2.6.21 (was previously \>= 2.6.17).
> 
> \* Features
> 
> &nbsp;&nbsp;\* Add cross building of fat binary gems for 64-Bit Windows (x64-mingw32)  
> and add support for native builds on Windows. #864, #989, #1072  
> &nbsp;&nbsp;\* (MRI) Alias CP932 to Windows-31J if iconv does not support Windows-31J.  
> &nbsp;&nbsp;\* (MRI) Nokogiri now links packaged libraries statically. To disable  
> static linking, pass --disable-static to extconf.rb. #923  
> &nbsp;&nbsp;\* (MRI) Fix a library path (LIBPATH) precedence problem caused by CRuby  
> bug #9760.  
> &nbsp;&nbsp;\* (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  
> &nbsp;&nbsp;\* (MRI) Nokogiri now builds libxml2 properly with iconv support on  
> platforms where libiconv is installed outside the system default  
> directories, such as FreeBSD.  
> &nbsp;&nbsp;\* Add support for an-b in nth selectors. #886 (Thanks, Magnus Bergmark!)  
> &nbsp;&nbsp;\* Add support for bare and multiple :not() functions in selectors. #887  
> (Thanks, Magnus Bergmark!)  
> &nbsp;&nbsp;\* (MRI) Add an extconf.rb option --use-system-libraries, alternative to  
> setting the environment variable NOKOGIRI\_USE\_SYSTEM\_LIBRARIES.  
> &nbsp;&nbsp;\* (MRI) Update packaged libraries: libxslt to 1.1.28, zlib to 1.2.8, and  
> libiconv to 1.14, respectively.  
> &nbsp;&nbsp;\* 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.  
> &nbsp;&nbsp;\* Nokogiri::XML::DTD#html\_dtd? and #html5\_dtd? are added.  
> &nbsp;&nbsp;\* Nokogiri::XML::Node#prepend\_child is added. #664  
> &nbsp;&nbsp;\* Nokogiri::XML::SAX::ParserContext#recovery is added. #453  
> &nbsp;&nbsp;\* Fix documentation for XML::Node#namespace. #803 #802 (Thanks, Hoylen  
> Sue)  
> &nbsp;&nbsp;\* Allow Nokogiri::XML::Node#parse from unparented non-element nodes. #407
> 
> \* Bugfixes
> 
> &nbsp;&nbsp;\* Ensure :only-child pseudo class works within :not pseudo class. #858  
> (Thanks, Yamagishi Kazutoshi!)  
> &nbsp;&nbsp;\* Don't call pkg\_config when using bundled libraries in extconf.rb #931  
> (Thanks, Shota Fukumori!)  
> &nbsp;&nbsp;\* Nokogiri.parse() does not mistake a non-HTML document like a RSS  
> document as HTML document. #932 (Thanks, Yamagishi Kazutoshi!)  
> &nbsp;&nbsp;\* (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  
> &nbsp;&nbsp;\* (JRuby) XSD validation crashes in Java version. #373  
> &nbsp;&nbsp;\* (JRuby) Document already has a root node error while using Builder. #646  
> &nbsp;&nbsp;\* (JRuby) c14n tests are all passing on JRuby. #226  
> &nbsp;&nbsp;\* Parsing empty documents raise SyntaxError in strict mode. #1005  
> &nbsp;&nbsp;\* (JRuby) Make xpath faster by caching the xpath context. #741  
> &nbsp;&nbsp;\* (JRuby) XML SAX push parser leaks memory on JRuby, but not on MRI. #998  
> &nbsp;&nbsp;\* (JRuby) Inconsistent behavior aliasing the default namespace. #940  
> &nbsp;&nbsp;\* (JRuby) Inconsistent behavior between parsing and adding namespaces.  
> #943  
> &nbsp;&nbsp;\* (JRuby) Xpath returns inconsistent result set on cloned document with  
> namespaces and attributes. #1034  
> &nbsp;&nbsp;\* (JRuby) Java-Implementation forgets element namespaces #902  
> &nbsp;&nbsp;\* (JRuby) JRuby-Nokogiri does not recognise attributes inside namespaces  
> #1081  
> &nbsp;&nbsp;\* (JRuby) JRuby-Nokogiri has different comment node name #1080  
> &nbsp;&nbsp;\* (JRuby) JAXPExtensionsProvider / Java 7 / Secure Processing #1070
