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 positionNokogiri::XML::Node#matches?
returns true if Node can be found with given selector.Nokogiri::XML::Node#ancestors
now returns anNokogiri::XML::NodeSet
Nokogiri::XML::Node#ancestors
will match parents against optional selectorNokogiri::HTML::Document#meta_encoding
for getting the meta encodingNokogiri::HTML::Document#meta_encoding=
for setting the meta encodingNokogiri::XML::Document#encoding=
to set the document encodingNokogiri::XML::Schema
for validating documents against XSD schemaNokogiri::XML::RelaxNG
for validating documents against RelaxNG schemaNokogiri::HTML::ElementDescription
for fetching HTML element descriptionsNokogiri::XML::Node#description
to fetch the node descriptionNokogiri::XML::Node#accept
implements Visitor patternbin/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 receiveNokogiri::XML::ParseOptions
objects Nokogiri::XML::Node#namespace
returns aNokogiri::XML::Namespace
Nokogiri::XML::Node#namespace=
for setting a node's namespaceNokogiri::XML::DocumentFragment
andNokogiri::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)