1.2.1 / 2008-02-23
- Bugfixes
- Fixed a CSS selector space bug
- Fixed Ruby 1.9 String Encoding (Thanks 角谷さん!)
1.2.0 / 2008-02-22
- New features
- CSS search now supports CSS3 namespace queries
- Namespaces on the root node are automatically registered
- 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::ProcessingInstrunction.new
- Nokogiri::XML::SAX::PushParser
for all your push parsing needs.
- Bugfixes
- 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
- API Changes
- Nokogiri::HTML.fragment now returns an XML::DocumentFragment (LH 32)
1.1.1
- New features
- Added XML::Node#elem?
- Added XML::Node#attribute_nodes
- Added XML::Attr
- XML::Node#delete added.
- XML::NodeSet#inner_html added.
- Bugfixes
- Not including an HTML entity for \r for HTML nodes.
- Removed CSS::SelectorHandler and XML::XPathHandler
- XML::Node#attributes returns an Attr node for the value.
- XML::NodeSet implements to_xml
1.1.0
- New Features
- Custom XPath functions are now supported. See Nokogiri::XML::Node#xpath
- Custom CSS pseudo classes are now supported. See Nokogiri::XML::Node#css
- Nokogiri::XML::Node#<<
will add a child to the current node
- Bugfixes
- Mutex lock on CSS cache access
- Fixed build problems with GCC 3.3.5
- XML::Node#to_xml now takes an indentation argument
- XML::Node#dup takes an optional depth argument
- XML::Node#add_previous_sibling returns new sibling node.
1.0.7
- Bugfixes
- Fixed memory leak when using Dike
- SAX parser now parses IO streams
- Comment nodes have their own class
- Nokogiri() should delegate to Nokogiri.parse()
- Prepending rather than appending to ENV[‘PATH’] on windows
- Fixed a bug in complex CSS negation selectors
1.0.6
- 5 Bugfixes
- XPath Parser raises a SyntaxError on parse failure
- CSS Parser raises a SyntaxError on parse failure
- filter() and not() hpricot compatibility added
- CSS searches via Node#search are now always relative
- CSS to XPath conversion is now cached
1.0.5
- Bugfixes
- Added mailing list and ticket tracking information to the README.txt
- Sets ENV[‘PATH’] on windows if it doesn‘t exist
- Caching results of NodeSet#[] on Document
1.0.4
- Bugfixes
- Changed memory mangement from weak refs to document refs
- Plugged some memory leaks
- Builder blocks can call methods from surrounding contexts
1.0.3
- 5 Bugfixes
- NodeSet now implements to_ary
- XML::Document should not implement parent
- More GC Bugs fixed. (Mike is AWESOME!)
- Removed RARRAY_LEN for 1.8.5 compatibility. Thanks Shane Hanna.
- inner_html fixed. (Thanks Yehuda!)
1.0.2
- 1 Bugfix
- extconf.rb should not check for frex and racc
1.0.1
- 1 Bugfix
- Made sure extconf.rb searched libdir and prefix so that ports libxml/ruby
will link properly. Thanks lucsky!
1.0.0 / 2008-07-13