From: Mike Dalessio Date: 2012-12-20T01:49:57+09:00 Subject: [ANN] nokogiri 1.5.6 Released --00235429d754131b9d04d1374bc5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable nokogiri version 1.5.6 has been released! * * * * * Nokogiri (=E9=8B=B8) is an HTML, XML, SAX, and Reader parser. Among Nokogi= ri's many features is the ability to search documents via XPath or CSS3 selectors. XML is like violence - if it doesn=E2=80=99t solve your problems, you are n= ot using enough of it. Changes: ## 1.5.6 / 2012-12-19 * Features * Improved performance of XML::Document#collect_namespaces. #761 (Thanks, Juergen Mangler!) * New callback SAX::Document#processing_instruction (Thanks, Kitaiti Makoto!) * Node#native_content=3D allows setting unescaped node contant. #768 * XPath lookup with namespaces supports symbol keys. #729 (Thanks, Ben Langfeld.) * XML::Node#[]=3D 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 * bin/nokogiri --version will print the Xerces and NekoHTML versions when ran with JRuby. * Bugfixes * 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!) * [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 --00235429d754131b9d04d1374bc5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
nokogiri version 1.5.6 has been released!
<= br>

Nokogiri (=E9=8B=B8) is an HTML, XML, SAX, and Reader parser. =C2=A0Among= Nokogiri's
many features is the ability to search documents via XPath or CSS3 sel= ectors.

XML is like violence - if it doesn=E2=80= =99t solve your problems, you are not using
enough of it.

Changes:

## 1.5.6 / 2012-12-19

* Features

=C2=A0 * Improved perf= ormance of XML::Document#collect_namespaces. #761 (Thanks, Juergen Mangler!= )
=C2=A0 * New callback SAX::Document#processing_instruction (Thanks, Ki= taiti Makoto!)
=C2=A0 * Node#native_content=3D allows setting une= scaped node contant. #768
=C2=A0 * XPath lookup with namespaces s= upports symbol keys. #729 (Thanks, Ben Langfeld.)
=C2=A0 * XML::Node#[]=3D stringifies values. #729 (Thanks, Ben Langfel= d.)
=C2=A0 * bin/nokogiri will process a document from $stdin
=C2=A0 * bin/nokogiri -e will execute a program from the command lin= e
=C2=A0 * bin/nokogiri --version will print the Xerces and NekoH= TML versions when ran with JRuby.


* Bugfixes
=C2=A0 * Nokogiri n= ow detects XSLT transform errors. #731 (Thanks, Justin Fitzsimmons!)
<= div>=C2=A0 * Don't throw an Error when trying to replace top-level text= node in DocumentFragment. #775
=C2=A0 * Raise an ArgumentError if an invalid encoding is passed to th= e SAX parser. #756 (Thanks, Bradley Schaefer!)
=C2=A0 * [JRuby] s= pace prior to xml preamble causes nokogiri to fail parsing. (fixed along wi= th #748) #790
=C2=A0 * [JRuby] Fixed the bug Nokogiri::XML::Node#content inconsisten= cy between Java and C. #794, #797
=C2=A0 * [JRuby] raises INVALID= _CHARACTER_ERR exception when EntityReference name starts with '#'.= #719
=C2=A0 * [JRuby] doesn't coerce namespaces out of strings on a dir= ect subclass of Node. #715
=C2=A0 * [JRuby] Node#content now rend= ers newlines properly. #737 (Thanks, Piotr Szmielew!)
=C2=A0 * [J= Ruby] Unknown namespace are ignore when the recover option is used. #748
=C2=A0 * [JRuby] XPath queries for namespaces should not throw excepti= ons when called twice in a row. #764
=C2=A0 * [JRuby] More consis= tent (with libxml2) whitespace formatting when emitting XML. #771
=C2=A0 * [JRuby] namespaced attributes broken when appending raw xml to bu= ilder. #770
=C2=A0 * [JRuby] Nokogiri::XML::Document#wrap raises undefined method = `length' for nil:NilClass when trying to << to a node. #781
=
=C2=A0 * [JRuby] Fixed "bad file descriptor" bug when closin= g open file descriptors. #495
=C2=A0 * [JRuby] JRuby/CRuby incompatibility for attribute decorators.= #785
=C2=A0 * [JRuby] Issues parsing valid XML with no internal = subset in the DTD. #547, #811
=C2=A0 * [JRuby] Issues parsing val= id node content when it contains colons. #728
=C2=A0 * [JRuby] Correctly parse the doc type of html documents. #733<= /div>
=C2=A0 * [JRuby] Include dtd in the xml output when a builder is = used with create_internal_subset. #751
=C2=A0 * [JRuby] builder r= equires textwrappers for valid utf8 in jruby, not in mri. #784

--00235429d754131b9d04d1374bc5--