Nokogiri v1.4.0 Release Notes
Release Date: 2009-10-30 // over 14 years ago-
โ Added
Node#at_xpath
returns the first element of theNodeSet
matching the XPath expression.Node#at_css
returns the first element of theNodeSet
matching the CSS selector.NodeSet#|
for unions GH #119 (Thanks Serabe!)NodeSet#inspect
makes prettier output- ๐
Node#inspect
implemented for more rubyish document inspecting - โ Added
XML::DTD#external_id
- โ Added
XML::DTD#system_id
- โ Added
XML::ElementContent
for DTD Element content validity - ๐ Better namespace declaration support in
Nokogiri::XML::Builder
- โ Added
XML::Node#external_subset
- Added
XML::Node#create_external_subset
- Added
XML::Node#create_internal_subset
- ๐ XML Builder can append raw strings (GH #141, patch from dudleyf)
- ๐
XML::SAX::ParserContext
added - ๐
XML::Document#remove_namespaces!
for the namespace-impaired
๐ Fixed
- returns nil when HTML documents do not declare a meta encoding tag. GH #115
- ๐ Uses
RbConfig::CONFIG['host_os']
to adjustENV['PATH']
GH #113 NodeSet#search
is more efficient GH #119 (Thanks Serabe!)NodeSet#xpath
handles custom xpath functions- ๐ Fixing a SEGV when
XML::Reader
gets attributes for current node Node#inner_html
takes the same arguments asNode#to_html
GH #117DocumentFragment#css
delegates to it's child nodes GH #123NodeSet#[]
works with slices larger thanNodeSet#length
GH #131- Reparented nodes maintain their namespace. GH #134
- ๐ Fixed SEGV when adding an
XML::Document
toNodeSet
XML::SyntaxError
can be duplicated. GH #148
โ Removed
- ๐ Hpricot compatibility layer removed