1.12.0.rc1 / 2021-07-09 #2289
flavorjones
announced in
Releases
Replies: 2 comments
-
This is a release candidate, so I'm anxious to hear any feedback -- positive or critical -- about this release before we ship a final v1.12.0. Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Planning to ship v1.12 final this coming weekend, around July 31st. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1.12.0.rc1 / 2021-07-09
Notable Addition: HTML5 Support (CRuby only)
HTML5 support has been added (to CRuby only) by merging Nokogumbo into Nokogiri. The Nokogumbo public API has been preserved, so this functionality is available under the
Nokogiri::HTML5
namespace. [#2204]Please note that HTML5 support is not available for JRuby in this version. However, we feel it is important to think about JRuby and we hope to work on this in the future. If you're interested in helping with HTML5 support on JRuby, please reach out to the maintainers by commenting on issue #2227.
Many thanks to Sam Ruby, Steve Checkoway, and Craig Barnes for creating and maintaining Nokogumbo and supporting the Gumbo HTML5 parser. They're now Nokogiri core contributors with all the powers and privileges pertaining thereto. 🙌
Notable Change:
Nokogiri::HTML4
module and namespaceNokogiri::HTML
has been renamed toNokogiri::HTML4
, andNokogiri::HTML
is aliased to preserve backwards-compatibility.Nokogiri::HTML
andNokogiri::HTML4
parse methods still use libxml2's (or NekoHTML's) HTML4 parser in the v1.12 release series.Take special note that if you rely on the class name of an object in your code, objects will now report a class of
Nokogiri::HTML4::Foo
where they previously reportedNokogiri::HTML::Foo
. Instead of relying on the string returned byObject#class
, preferClass#===
orObject#is_a?
orObject#instance_of?
.Future releases of Nokogiri may deprecate
HTML
methods or otherwise change this behavior, so please start usingHTML4
in place ofHTML
.Added
Nokogiri::VERSION_INFO["libxslt"]["datetime_enabled"]
is a new boolean value which describes whether libxslt (or, more properly, libexslt) has compiled-in datetime support. This generally going to betrue
, but some distros ship without this support (e.g., some mingw UCRT-based packages, see libxslt: Fix build failure and date/time issue in libxslt msys2/MINGW-packages#8957). See #2272 for more details.Changed
Nokogiri::XML::ParseOptions::DEFAULT_XSLT
, which adds the libxslt-preferred options ofNOENT | DTDLOAD | DTDATTR | NOCDATA
toParseOptions::DEFAULT_XML
.Nokogiri.XSLT
parses stylesheets usingParseOptions::DEFAULT_XSLT
, which should make some edge-case XSL transformations match libxslt's default behavior. [#1940]Fixed
Improved
libiconv
,libxml2
, andlibxslt
by using autoconf's--disable-dependency-tracking
option. ("ruby" platform gem only.)Deprecated
Nokogiri::HTML5.get
. This method will be removed in a future version of Nokogiri.Dependencies
~> 2.5.0
to~> 2.6.1
. ("ruby" platform gem only.)Checksums:
This discussion was created from the release 1.12.0.rc1 / 2021-07-09.
Beta Was this translation helpful? Give feedback.
All reactions