All Versions
110
Latest Version
Avg Release Cycle
28 days
Latest Release
549 days ago
Changelog History
Page 10
Changelog History
Page 10
-
v1.4.1 Changes
December 10, 2009โ Added
- Added
Nokogiri::LIBXML_ICONV_ENABLED
- Alias
Node#[]
toNode#attr
XML::Node#next_element
addedXML::Node#>
added for searching a nodes immediate childrenXML::NodeSet#reverse
added- Added fragment support to
Node#add_child
,Node#add_next_sibling
,Node#add_previous_sibling
, andNode#replace
. XML::Node#previous_element
implemented- ๐ Rubinius support
- ๐ Ths CSS selector engine now supports
:has()
XML::NodeSet#filter()
was addedXML::Node.next=
and .previous= are aliases for add_next_sibling and add_previous_sibling. GH #183
๐ Fixed
- ๐ป XML fragments with namespaces do not raise an exception (regression in 1.4.0)
Node#matches?
works in nodes contained by aDocumentFragment
. GH #158Document
should not defineadd_namespace()
method. GH #169XPath
queries returning namespace declarations do not segfault.Node#replace
works with nodes from different documents. GH #162- โ Adding
XML::Document#collect_namespaces
- ๐ Fixed bugs in the SOAP4R adapter
- ๐ Fixed bug in
XML::Node#next_element
for certain edge cases - ๐ Fixed load path issue with JRuby under Windows. GH #160.
XSLT#apply_to
will honor the "output method". Thanks richardlehane!- ๐ Fragments containing leading text nodes with newlines now parse properly. GH #178.
- Added
-
v1.4.0 Changes
October 30, 2009โ Added
Node#at_xpath
returns the first element of theNodeSet
matching the XPath expression.Node#at_css
returns the first element of theNodeSet
matching the CSS selector.NodeSet#|
for unions GH #119 (Thanks Serabe!)NodeSet#inspect
makes prettier output- ๐
Node#inspect
implemented for more rubyish document inspecting - โ Added
XML::DTD#external_id
- โ Added
XML::DTD#system_id
- โ Added
XML::ElementContent
for DTD Element content validity - ๐ Better namespace declaration support in
Nokogiri::XML::Builder
- โ Added
XML::Node#external_subset
- Added
XML::Node#create_external_subset
- Added
XML::Node#create_internal_subset
- ๐ XML Builder can append raw strings (GH #141, patch from dudleyf)
- ๐
XML::SAX::ParserContext
added - ๐
XML::Document#remove_namespaces!
for the namespace-impaired
๐ Fixed
- returns nil when HTML documents do not declare a meta encoding tag. GH #115
- ๐ Uses
RbConfig::CONFIG['host_os']
to adjustENV['PATH']
GH #113 NodeSet#search
is more efficient GH #119 (Thanks Serabe!)NodeSet#xpath
handles custom xpath functions- ๐ Fixing a SEGV when
XML::Reader
gets attributes for current node Node#inner_html
takes the same arguments asNode#to_html
GH #117DocumentFragment#css
delegates to it's child nodes GH #123NodeSet#[]
works with slices larger thanNodeSet#length
GH #131- Reparented nodes maintain their namespace. GH #134
- ๐ Fixed SEGV when adding an
XML::Document
toNodeSet
XML::SyntaxError
can be duplicated. GH #148
โ Removed
- ๐ Hpricot compatibility layer removed
-
v1.3.3 Changes
July 26, 2009โ Added
NodeSet#children
returns all children of all nodes
๐ Fixed
- ๐ Override libxml-ruby's global error handler
- ๐
ParseOption#strict
fixed - ๐ Fixed a segfault when sending an empty string to
Node#inner_html=
GH #88 - ๐ String encoding is now set to UTF-8 in Ruby 1.9
- ๐ Fixed a segfault when moving root nodes between documents. GH #91
- ๐ Fixed an O(n) penalty on node creation. GH #101
- ๐ Allowing XML documents to be output as HTML documents
๐ Deprecations
- ๐ Hpricot compatibility layer will be removed in 1.4.0
-
v1.3.2 Changes
June 22, 2009โ Added
Nokogiri::XML::DTD#validate
will validate your document
๐ Fixed
Nokogiri::XML::NodeSet#search
will search top level nodes. GH #73- โ Removed namespace related methods from
Nokogiri::XML::Document
- ๐ Fixed a segfault when a namespace was added twice
- Made nokogiri work with Snow Leopard GH #79
- ๐ Mailing list has moved to: http://groups.google.com/group/nokogiri-talk
- HTML fragments now correctly handle comments and CDATA blocks. GH #78
- ๐ฏ
Nokogiri::XML::Document#clone
is now an alias of dup
๐ Deprecations
Nokogiri::XML::SAX::Document#start_element_ns
is deprecated, please switch toNokogiri::XML::SAX::Document#start_element_namespace
Nokogiri::XML::SAX::Document#end_element_ns
is deprecated, please switch toNokogiri::XML::SAX::Document#end_element_namespace
-
v1.3.1 Changes
June 07, 2009๐ Bugfixes
- extconf.rb checks for optional RelaxNG and Schema functions
- Namespace nodes are added to the Document node cache
-
v1.3.0 Changes
May 30, 2009โ Added
- ๐ Builder changes scope based on block arity
- ๐ Builder supports methods ending in underscore similar to tagz
Nokogiri::XML::Node#<=>
compares nodes based on Document positionNokogiri::XML::Node#matches?
returns true if Node can be found with given selector.Nokogiri::XML::Node#ancestors
now returns anNokogiri::XML::NodeSet
Nokogiri::XML::Node#ancestors
will match parents against optional selectorNokogiri::HTML::Document#meta_encoding
for getting the meta encodingNokogiri::HTML::Document#meta_encoding=
for setting the meta encodingNokogiri::XML::Document#encoding=
to set the document encodingNokogiri::XML::Schema
for validating documents against XSD schemaNokogiri::XML::RelaxNG
for validating documents against RelaxNG schemaNokogiri::HTML::ElementDescription
for fetching HTML element descriptionsNokogiri::XML::Node#description
to fetch the node descriptionNokogiri::XML::Node#accept
implements Visitor patternbin/nokogiri
for easily examining documents (Thanks Yutaka HARA!)- ๐
Nokogiri::XML::NodeSet
now supports more Array and Enumerable operators: index, delete, slice, - (difference), + (concatenation), & (intersection), push, pop, shift, == - ๐
Nokogiri.XML
,Nokogiri.HTML
take blocks that receiveNokogiri::XML::ParseOptions
objects Nokogiri::XML::Node#namespace
returns aNokogiri::XML::Namespace
Nokogiri::XML::Node#namespace=
for setting a node's namespaceNokogiri::XML::DocumentFragment
andNokogiri::HTML::DocumentFragment
have a sensible API and a more robust implementation.- ๐ JRuby 1.3.0 support via FFI.
๐ Fixed
- ๐ Fixed a problem with nil passed to CDATA constructor
- Fragment method deals with regular expression characters (Thanks Joel!) LH #73
- ๐ Fixing builder scope issues LH #61, LH #74, LH #70
- ๐ Fixed a problem when adding a child could remove the child namespace LH#78
- ๐ Fixed bug with unlinking a node then reparenting it. (GH#22)
- ๐ Fixed failure to catch errors during XSLT parsing (GH#32)
- ๐ Fixed a bug with attribute conditions in CSS selectors (GH#36)
- ๐ Fixed intolerance of HTML attributes without values in
Node#{before/after/inner_html=}
. (GH#35)
-
v1.2.3 Changes
March 22, 2009๐ Fixed
- ๐ Fixing bug where a node is passed in to
Node#new
- Namespace should be assigned on DocumentFragment creation. LH #66
Nokogiri::XML::NodeSet#dup
works GH #10Nokogiri::HTML
returns an empty Document when given a blank string GH#11- โ Adding a child will remove duplicate namespace declarations LH #67
- ๐ Builder methods take a hash as a second argument
- ๐ Fixing bug where a node is passed in to
-
v1.2.2 Changes
March 14, 2009โ Added
- ๐ Nokogiri may be used with soap4r. See
XSD::XMLParser::Nokogiri
Nokogiri::XML::Node#inner_html=
to set the inner html for a node- ๐ Nokogiri builder interface improvements
Nokogiri::XML::Node#swap
swaps html for current node (LH #50)
๐ Fixed
- ๐ Fixed a tag nesting problem in the Builder API (LH #41)
Nokogiri::HTML.fragment
will properly handle text only nodes (LH #43)Nokogiri::XML::Node#before
will prepend text nodes (LH #44)Nokogiri::XML::Node#after
will append text nodesNokogiri::XML::Node#search
automatically registers root namespaces (LH #42)Nokogiri::XML::NodeSet#search
automatically registers namespacesNokogiri::HTML::NamedCharacters
delegates to libxml2Nokogiri::XML::Node#[]
can take a symbol (LH #48)- โก๏ธ vasprintf for windows updated. Thanks Geoffroy Couprie!
Nokogiri::XML::Node#[]=
should not encode entities (LH #55)- Namespaces should be copied to reparented nodes (LH #56)
- 0๏ธโฃ Nokogiri uses encoding set on the string for default in Ruby 1.9
Document#dup
should create a new document of the same type (LH #59)Document
should not have a parent method (LH #64)
- ๐ Nokogiri may be used with soap4r. See
-
v1.2.1 Changes
February 23, 2009๐ Bugfixes
- Fixed a CSS selector space bug
- Fixed Ruby 1.9 String Encoding (Thanks ่ง่ฐทใใ๏ผ)
-
v1.2.0 Changes
February 22, 2009โ Added
- ๐ CSS search now supports CSS3 namespace queries
- Namespaces on the root node are automatically registered
- 0๏ธโฃ CSS queries use the default namespace
Nokogiri::XML::Document#encoding
get encoding used for this documentNokogiri::XML::Document#url
get the document urlNokogiri::XML::Node#add_namespace
add a namespace to the node LH#38Nokogiri::XML::Node#each
iterate over attribute name, value pairsNokogiri::XML::Node#keys
get all attribute namesNokogiri::XML::Node#line
get the line number for a node (Thanks Dirkjan Bussink!)Nokogiri::XML::Node#serialize
now takes an optional encoding parameterNokogiri::XML::Node#to_html
, to_xml, and to_xhtml take an optional encodingNokogiri::XML::Node#to_str
Nokogiri::XML::Node#to_xhtml
to produce XHTML documentsNokogiri::XML::Node#values
get all attribute valuesNokogiri::XML::Node#write_to
writes the node to an IO object with optional encodingNokogiri::XML::ProcessingInstruction.new
- ๐
Nokogiri::XML::SAX::PushParser
for all your push parsing needs.
๐ Fixed
- ๐ Fixed
Nokogiri::XML::Document#dup
- ๐ Fixed header detection. Thanks rubikitch!
- ๐ Fixed a problem where invalid CSS would cause the parser to hang
๐ Deprecations
Nokogiri::XML::Node.new_from_str
will be deprecated in 1.3.0
๐ Changed
Nokogiri::HTML.fragment
now returns an XML::DocumentFragment (LH #32)