Nokogiri v1.4.0 Release Notes

Release Date: 2009-10-30 // over 14 years ago
  • โž• Added

    • Node#at_xpath returns the first element of the NodeSet matching the XPath expression.
    • Node#at_css returns the first element of the NodeSet 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 adjust ENV['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 as Node#to_html GH #117
    • DocumentFragment#css delegates to it's child nodes GH #123
    • NodeSet#[] works with slices larger than NodeSet#length GH #131
    • Reparented nodes maintain their namespace. GH #134
    • ๐Ÿ›  Fixed SEGV when adding an XML::Document to NodeSet
    • XML::SyntaxError can be duplicated. GH #148

    โœ‚ Removed

    • ๐Ÿšš Hpricot compatibility layer removed