Nokogiri v1.5.6 Release Notes

Release Date: 2012-12-19 // almost 10 years ago
  • โž• Added

    • ๐Ÿ‘Œ Improved performance of XML::Document#collect_namespaces. #761 (Thanks, Juergen Mangler!)
    • ๐Ÿ†• New callback SAX::Document#processing_instruction (Thanks, Kitaiti Makoto!)
    • Node#native_content= allows setting unescaped node content. #768
    • ๐Ÿ‘ XPath lookup with namespaces supports symbol keys. #729 (Thanks, Ben Langfeld.)
    • XML::Node#[]= stringifies values. #729 (Thanks, Ben Langfeld.)
    • bin/nokogiri will process a document from $stdin
    • ๐Ÿ’ป bin/nokogiri -e will execute a program from the command line
    • ๐Ÿ–จ (JRuby) bin/nokogiri --version will print the Xerces and NekoHTML versions.

    ๐Ÿ›  Fixed

    • Nokogiri now detects XSLT transform errors. #731 (Thanks, Justin Fitzsimmons!)
    • Don't throw an Error when trying to replace top-level text node in DocumentFragment. #775
    • ๐Ÿ“œ Raise an ArgumentError if an invalid encoding is passed to the SAX parser. #756 (Thanks, Bradley Schaefer!)
    • ๐Ÿ’Ž Prefixed element inconsistency between CRuby and JRuby. #712
    • ๐Ÿ“œ (JRuby) space prior to xml preamble causes nokogiri to fail parsing. (fixed along with #748) #790
    • ๐Ÿ’Ž (JRuby) Fixed the bug Nokogiri::XML::Node#content inconsistency between Java and C. #794, #797
    • (JRuby) raises INVALID_CHARACTER_ERR exception when EntityReference name starts with '#'. #719
    • ๐Ÿ’Ž (JRuby) doesn't coerce namespaces out of strings on a direct subclass of Node. #715
    • ๐Ÿ’Ž (JRuby) Node#content now renders newlines properly. #737 (Thanks, Piotr Szmielew!)
    • ๐Ÿ’Ž (JRuby) Unknown namespace are ignore when the recover option is used. #748
    • ๐Ÿ’Ž (JRuby) XPath queries for namespaces should not throw exceptions when called twice in a row. #764
    • ๐Ÿ’Ž (JRuby) More consistent (with libxml2) whitespace formatting when emitting XML. #771
    • ๐Ÿ— (JRuby) namespaced attributes broken when appending raw xml to builder. #770
    • ๐Ÿ’Ž (JRuby) Nokogiri::XML::Document#wrap raises undefined method `length' for nil:NilClass when trying to << to a node. #781
    • ๐Ÿ’Ž (JRuby) Fixed "bad file descriptor" bug when closing open file descriptors. #495
    • ๐Ÿ’Ž (JRuby) JRuby/CRuby incompatibility for attribute decorators. #785
    • ๐Ÿ“œ (JRuby) Issues parsing valid XML with no internal subset in the DTD. #547, #811
    • ๐Ÿ“œ (JRuby) Issues parsing valid node content when it contains colons. #728
    • ๐Ÿ“œ (JRuby) Correctly parse the doc type of html documents. #733
    • (JRuby) Include dtd in the xml output when a builder is used with create_internal_subset. #751
    • ๐Ÿ— (JRuby) builder requires textwrappers for valid utf8 in jruby, not in mri. #784