Nokogiri v1.4.3 Release Notes

Release Date: 2010-07-28 // over 13 years ago
  • โž• Added

    • XML::Reader#empty_element? returns true for empty elements. #262
    • ๐Ÿšš Node#remove_namespaces! now removes namespace declarations as well. #294
    • NodeSet#at_xpath, NodeSet#at_css and NodeSet#> do what the corresponding methods of Node do.

    ๐Ÿ›  Fixed

    • XML::NodeSet#{include?,delete,push} accept an XML::Namespace
    • ๐Ÿ“œ XML::Document#parse added for parsing in the context of a document
    • ๐Ÿ“œ XML::DocumentFragment#inner_html= works with contextual parsing! #298, #281
    • ๐Ÿ“œ lib/nokogiri/css/parser.y Combined CSS functions + pseudo selectors fixed
    • ๐Ÿ”€ Reparenting text nodes is safe, even when the operation frees adjacent merged nodes. #283
    • ๐Ÿ›  Fixed libxml2 versionitis issue with xmlFirstElementChild et al. #303
    • XML::Attr#add_namespace now works as expected. #252
    • HTML::DocumentFragment uses the string's encoding. #305
    • ๐Ÿ›  Fix the CSS3 selector translation rule for the general sibling combinator (a.k.a. preceding selector) that incorrectly converted "E ~ F G" to "//F//G[preceding-sibling::E]".