All Versions
110
Latest Version
Avg Release Cycle
28 days
Latest Release
102 days ago
Changelog History
Page 9
Changelog History
Page 9
-
v1.5.3 Changes
June 01, 2012โ Added
- ๐ Support for "prefixless" CSS selectors ~, > and + like jQuery supports. #621, #623. (Thanks, David Lee!)
- ๐ฆ Attempting to improve installation on homebrew 0.9 (with regards to iconv). Isn't package management convenient?
๐ Fixed
- Custom xpath functions with empty nodeset arguments cause a segfault. #634.
- 0๏ธโฃ
Nokogiri::XML::Node#css
now works for XML documents with default namespaces when the rule contains attribute selector without namespace. - ๐ Fixed marshalling bugs around how arguments are passed to (and returned from) XSLT custom xpath functions. #640.
- ๐
Nokogiri::XML::Reader#outer_xml
is broken in JRuby #617 - ๐
Nokogiri::XML::Attribute
on JRuby returns a nil namespace #647 - ๐
Nokogiri::XML::Node#namespace=
cannot set a namespace without a prefix on JRuby #648 - ๐ (JRuby) 1.9 mode causes dead lock while running rake #571
- ๐ป
HTML::Document#meta_encoding
does not raise exception on docs with malformed content-type. #655 - ๐ Fixing segfault related to unsupported encodings in in-context parsing on 1.8.7. #643
- ๐ (JRuby) Concurrency issue in XPath parsing. #682
-
v1.5.2 Changes
March 09, 2012 -
v1.5.1 Changes
March 09, 2012โ Added
- ๐
XML::Builder#comment
allows creation of comment nodes. - ๐ CSS searches now support namespaced attributes. #593
- Java integration feature is added. Now,
XML::Document.wrap
andXML::Document#to_java
methods are available. - ๐ RelaxNG validator support in the
nokogiri
cli utility. #591 (thanks, Dan Radez!)
๐ Fixed
- ๐ Fix many memory leaks and segfault opportunities. Thanks, Tim Elliott!
- extconf searches homebrew paths if homebrew is installed.
- Inconsistent behavior of Nokogiri 1.5.0 Java #620
- ๐ Inheriting from
Nokogiri::XML::Node
on JRuby (1.6.4/5) fails #560 - ๐ป
XML::Attr
nodes are not allowed to be added as node children, so an exception is raised. #558 - No longer defensively "pickle" adjacent text nodes on
Node#add_next_sibling
andNode#add_previous_sibling
calls. #595. - Java version inconsistency: it returns nil for empty attributes #589
- to_xhtml incorrectly generates
<p /></p>
when tag is empty #557 Document#add_child
now accepts aNode
,NodeSet
,DocumentFragment
, orString
. #546.- ๐
Document#create_element
now recognizes namespaces containing non-word characters (like "SOAP-ENV"). This is mostly relevant to users of Builder, which callsDocument#create_element
for nearly everything. #531. - ๐ File encoding broken in 1.5.0 / jruby / windows #529
- Java version does not return namespace defs as attrs for
::HTML
#542 - Bad file descriptor with Nokogiri 1.5.0 #495
- โ remove_namespace! doesn't work in pure java version #492
- ๐ The Nokogiri Java native build throws a null pointer exception when ActiveSupport's .blank? method is called directly on a parsed object. #489
- 1.5.0 Not using correct character encoding #488
- ๐ Raw XML string in XML Builder broken on JRuby #486
- ๐ Nokogiri 1.5.0 XML generation broken on JRuby #484
- Do not allow multiple root nodes. #550
- ๐ Fixes for custom XPath functions. #605, #606 (thanks, Juan Wajnerman!)
Node#to_xml
does not override:save_with
if it is provided. #505- ๐
Node#set
is a private method (JRuby). #564 (thanks, Nick Sieger!) - C14n cleanup and
Node#canonicalize
(thanks, Ivan Pirlik!) #563
- ๐
-
v1.5.0 Changes
July 01, 2011Notes
- ๐ See changelog from 1.4.7
โ Added
- ๐จ extracted sets of
Node::SaveOptions
intoNode::SaveOptions::DEFAULT_{X,H,XH}TML
(refactor)
๐ Fixed
- 0๏ธโฃ default output of XML on JRuby is no longer formatted due to inconsistent whitespace handling. #415
- ๐ (JRuby) making empty
NodeSet
s with nullnodes
member safe to operate on. #443 - ๐ Fix a bug in advanced encoding detection that leads to partially duplicated document when parsing an HTML file with unknown encoding.
- โ Add support for
<meta charset="...">
.
-
v1.4.7 Changes
July 01, 2011 -
v1.4.6 Changes
June 19, 2011Notes
- This version is functionally identical to 1.4.5.
- Ruby 1.8.6 support has been restored.
-
v1.4.5 Changes
May 19, 2011โ Added
Nokogiri::HTML::Document#title
accessor gets and sets the document title.- ๐จ extracted sets of
Node::SaveOptions
intoNode::SaveOptions::DEFAULT_{X,H,XH}TML
(refactor) - ๐ป Raise an exception if a string is passed to
Nokogiri::XML::Schema#validate
. #406
๐ Fixed
Node#serialize
-and-friends now accepts aSaveOption
object as the, erm, save object.- ๐
Nokogiri::CSS::Parser
has-aNokogiri::CSS::Tokenizer
- ๐ (JRUBY+FFI only) Weak references are now threadsafe. #355
- ๐ Make direct
start_element()
callback (currently used forHTML::SAX::Parser
) pass attributes in assoc array, just as emulatedstart_element()
callback does. rel. #356 - ๐
HTML::SAX::Parser
should call back a block given toparse*()
if any, just asXML::SAX::Parser
does. - โ Add further encoding detection to HTML parser that libxml2 does not do.
- ๐
Document#remove_namespaces!
now handles attributes with namespaces. #396 - ๐
XSLT::Stylesheet#transform
no longer segfaults when handed a non-XML::Document
. #452 XML::Reader
no longer segfaults when under GC pressure. #439
-
v1.4.4 Changes
November 15, 2010โ Added
XML::Node#children=
sets the node's inner html (much like #inner_html=), but returns the reparent node(s).- ๐ XSLT supports function extensions. #336
- XPath bind parameter substitution. #329
XML::Reader
node type constants. #369- ๐ SAX Parser context provides line and column information
๐ Fixed
XML::DTD#attributes
returns an empty hash instead of nil when there are no attributes.XML::DTD#{keys,each}
now work as expected. #324- ๐
{XML,HTML}::DocumentFragment.{new,parse}
no longer strip leading and trailing whitespace. #319 XML::Node#{add_child,add_previous_sibling,add_next_sibling,replace}
return aNodeSet
when passed a string.- ๐ Unclosed tags parsed more robustly in fragments. #315
XML::Node#{replace,add_previous_sibling,add_next_sibling}
edge cases fixed related to libxml's text node merging. #308- ๐ Fixed a segfault when GC occurs during xpath handler argument marshalling. #345
- โ Added hack to
Slop
decorator to work with previously defined methods. #330 - ๐ Fix a memory leak when duplicating child nodes. #353
- ๐ Fixed off-by-one bug with
nth-last-{child,of-type}
CSS selectors when NOT usingan+b
notation. #354 - ๐ Fixed passing of non-namespace attributes to
SAX::Document#start_element
. #356 - โช Workaround for libxml2 in-context parsing bug. #362
- ๐ Fixed
NodeSet#wrap
on nodes within a fragment. #331
-
v1.4.3 Changes
July 28, 2010โ 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
andNodeSet#>
do what the corresponding methods ofNode
do.
๐ Fixed
XML::NodeSet#{include?,delete,push}
accept anXML::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. #252HTML::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]".
-
v1.4.2 Changes
May 22, 2010โ Added
- ๐
XML::Node#parse
will parse XML or HTML fragments with respect to the context node. XML::Node#namespaces
returns all namespaces defined in the node and all ancestor nodes (previously did not return ancestors' namespace definitions).- โ Added
Enumerable
toXML::Node
Nokogiri::XML::Schema#validate
now uses xmlSchemaValidateFile if a filename is passed, which is faster and more memory-efficient. GH #219XML::Document#create_entity
will create newEntityDecl
objects. GH #174- ๐ JRuby FFI implementation no longer uses
ObjectSpace._id2ref
, instead using Charles Nutter's rocking Weakling gem. Nokogiri::XML::Node#first_element_child
fetch the first child node that is an ELEMENT node.Nokogiri::XML::Node#last_element_child
fetch the last child node that is an ELEMENT node.Nokogiri::XML::Node#elements
fetch all children nodes that are ELEMENT nodes.Nokogiri::XML::Node#add_child
,#add_previous_sibling
,#before
,#add_next_sibling
,#after
,#inner_html
,#swap
and#replace
all now accept aNode
,DocumentFragment
,NodeSet
, or a string containing markup.Node#fragment?
indicates whether a node is aDocumentFragment
.
๐ Fixed
XML::NodeSet
is now always decorated (if the document has decorators). GH #198XML::NodeSet#slice
gracefully handles offset+length larger than the set length. GH #200XML::Node#content=
safely unlinks previous content. GH #203XML::Node#namespace=
takes nil as a parameterXML::Node#xpath
returns things other thanNodeSet
objects. GH #208- ๐
XSLT::StyleSheet#transform
accepts hashes for parameters. GH #223 - Psuedo selectors inside
not()
work. GH #205 - ๐
XML::Builder
doesn't break when nodes are unlinked. Thanks to vihai! GH #228 - ๐ Encoding can be forced on the SAX parser. Thanks Eugene Pimenov! GH #204
- ๐
XML::DocumentFragment
usesXML::Node#parse
to determine children. - ๐ Fixed a memory leak in xml reader. Thanks sdor! GH #244
Node#replace
returns the new child node as claimed in the RDoc. Previously returned +self+.
Notes
- ๐ The Windows gems now bundle DLLs for libxml 2.7.6 and libxslt 1.1.26. Prior to this release, libxml 2.7.3 and libxslt 1.1.24 were bundled.
- ๐