All Versions
110
Latest Version
Avg Release Cycle
28 days
Latest Release
47 days ago

Changelog History
Page 10

  • v1.4.1 Changes

    December 10, 2009

    โž• Added

    • Added Nokogiri::LIBXML_ICONV_ENABLED
    • Alias Node#[] to Node#attr
    • XML::Node#next_element added
    • XML::Node#> added for searching a nodes immediate children
    • XML::NodeSet#reverse added
    • Added fragment support to Node#add_child, Node#add_next_sibling, Node#add_previous_sibling, and Node#replace.
    • XML::Node#previous_element implemented
    • ๐Ÿ‘ Rubinius support
    • ๐Ÿ‘ Ths CSS selector engine now supports :has()
    • XML::NodeSet#filter() was added
    • XML::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 a DocumentFragment. GH #158
    • Document should not define add_namespace() method. GH #169
    • XPath 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.
  • v1.4.0 Changes

    October 30, 2009

    โž• Added

    • Node#at_xpath returns the first element of the NodeSet matching the XPath expression.
    • Node#at_css returns the first element of the NodeSet 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 adjust ENV['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 as Node#to_html GH #117
    • DocumentFragment#css delegates to it's child nodes GH #123
    • NodeSet#[] works with slices larger than NodeSet#length GH #131
    • Reparented nodes maintain their namespace. GH #134
    • ๐Ÿ›  Fixed SEGV when adding an XML::Document to NodeSet
    • 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 to Nokogiri::XML::SAX::Document#start_element_namespace
    • Nokogiri::XML::SAX::Document#end_element_ns is deprecated, please switch to Nokogiri::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 position
    • Nokogiri::XML::Node#matches? returns true if Node can be found with given selector.
    • Nokogiri::XML::Node#ancestors now returns an Nokogiri::XML::NodeSet
    • Nokogiri::XML::Node#ancestors will match parents against optional selector
    • Nokogiri::HTML::Document#meta_encoding for getting the meta encoding
    • Nokogiri::HTML::Document#meta_encoding= for setting the meta encoding
    • Nokogiri::XML::Document#encoding= to set the document encoding
    • Nokogiri::XML::Schema for validating documents against XSD schema
    • Nokogiri::XML::RelaxNG for validating documents against RelaxNG schema
    • Nokogiri::HTML::ElementDescription for fetching HTML element descriptions
    • Nokogiri::XML::Node#description to fetch the node description
    • Nokogiri::XML::Node#accept implements Visitor pattern
    • bin/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 receive Nokogiri::XML::ParseOptions objects
    • Nokogiri::XML::Node#namespace returns a Nokogiri::XML::Namespace
    • Nokogiri::XML::Node#namespace= for setting a node's namespace
    • Nokogiri::XML::DocumentFragment and Nokogiri::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 #10
    • Nokogiri::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
  • 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 nodes
    • Nokogiri::XML::Node#search automatically registers root namespaces (LH #42)
    • Nokogiri::XML::NodeSet#search automatically registers namespaces
    • Nokogiri::HTML::NamedCharacters delegates to libxml2
    • Nokogiri::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)
  • 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 document
    • Nokogiri::XML::Document#url get the document url
    • Nokogiri::XML::Node#add_namespace add a namespace to the node LH#38
    • Nokogiri::XML::Node#each iterate over attribute name, value pairs
    • Nokogiri::XML::Node#keys get all attribute names
    • Nokogiri::XML::Node#line get the line number for a node (Thanks Dirkjan Bussink!)
    • Nokogiri::XML::Node#serialize now takes an optional encoding parameter
    • Nokogiri::XML::Node#to_html, to_xml, and to_xhtml take an optional encoding
    • Nokogiri::XML::Node#to_str
    • Nokogiri::XML::Node#to_xhtml to produce XHTML documents
    • Nokogiri::XML::Node#values get all attribute values
    • Nokogiri::XML::Node#write_to writes the node to an IO object with optional encoding
    • Nokogiri::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)