Nokogiri v1.6.2 Release Notes

Release Date: 2014-05-12 // almost 10 years ago
  • ๐Ÿ”’ Security

    ๐Ÿ›  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:

    โฌ†๏ธ It is recommended that you upgrade from 1.6.x to this version as soon as possible.

    Dependencies

    Now requires libxml >= 2.6.21 (was previously >= 2.6.17).

    โž• Added

    • โž• 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

    ๐Ÿ›  Fixed

    • 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
    • 0๏ธโƒฃ (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