Nokogiri v1.3.0 Release Notes

Release Date: 2009-05-30 // almost 15 years ago
  • โž• Added

    • ๐Ÿ— Builder changes scope based on block arity
    • ๐Ÿ— Builder supports methods ending in underscore similar to tagz
    • Nokogiri::XML::Node#<=> compares nodes based on Document position
    • Nokogiri::XML::Node#matches? returns true if Node can be found with given selector.
    • Nokogiri::XML::Node#ancestors now returns an Nokogiri::XML::NodeSet
    • Nokogiri::XML::Node#ancestors will match parents against optional selector
    • Nokogiri::HTML::Document#meta_encoding for getting the meta encoding
    • Nokogiri::HTML::Document#meta_encoding= for setting the meta encoding
    • Nokogiri::XML::Document#encoding= to set the document encoding
    • Nokogiri::XML::Schema for validating documents against XSD schema
    • Nokogiri::XML::RelaxNG for validating documents against RelaxNG schema
    • Nokogiri::HTML::ElementDescription for fetching HTML element descriptions
    • Nokogiri::XML::Node#description to fetch the node description
    • Nokogiri::XML::Node#accept implements Visitor pattern
    • bin/nokogiri for easily examining documents (Thanks Yutaka HARA!)
    • ๐Ÿ‘ Nokogiri::XML::NodeSet now supports more Array and Enumerable operators: index, delete, slice, - (difference), + (concatenation), & (intersection), push, pop, shift, ==
    • ๐Ÿ“œ Nokogiri.XML, Nokogiri.HTML take blocks that receive Nokogiri::XML::ParseOptions objects
    • Nokogiri::XML::Node#namespace returns a Nokogiri::XML::Namespace
    • Nokogiri::XML::Node#namespace= for setting a node's namespace
    • Nokogiri::XML::DocumentFragment and Nokogiri::HTML::DocumentFragment have a sensible API and a more robust implementation.
    • ๐Ÿ’Ž JRuby 1.3.0 support via FFI.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed a problem with nil passed to CDATA constructor
    • Fragment method deals with regular expression characters (Thanks Joel!) LH #73
    • ๐Ÿ›  Fixing builder scope issues LH #61, LH #74, LH #70
    • ๐Ÿ›  Fixed a problem when adding a child could remove the child namespace LH#78
    • ๐Ÿ›  Fixed bug with unlinking a node then reparenting it. (GH#22)
    • ๐Ÿ›  Fixed failure to catch errors during XSLT parsing (GH#32)
    • ๐Ÿ›  Fixed a bug with attribute conditions in CSS selectors (GH#36)
    • ๐Ÿ›  Fixed intolerance of HTML attributes without values in Node#{before/after/inner_html=}. (GH#35)