nokogiri-fitzsimmons 1.5.5.3-java
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +26 -0
- data/.gemtest +0 -0
- data/CHANGELOG.ja.rdoc +666 -0
- data/CHANGELOG.rdoc +659 -0
- data/C_CODING_STYLE.rdoc +33 -0
- data/Manifest.txt +295 -0
- data/README.ja.rdoc +106 -0
- data/README.rdoc +178 -0
- data/ROADMAP.md +86 -0
- data/Rakefile +194 -0
- data/STANDARD_RESPONSES.md +47 -0
- data/Y_U_NO_GEMSPEC.md +155 -0
- data/bin/nokogiri +63 -0
- data/build_all +58 -0
- data/ext/java/nokogiri/EncodingHandler.java +124 -0
- data/ext/java/nokogiri/HtmlDocument.java +163 -0
- data/ext/java/nokogiri/HtmlElementDescription.java +145 -0
- data/ext/java/nokogiri/HtmlEntityLookup.java +79 -0
- data/ext/java/nokogiri/HtmlSaxParserContext.java +259 -0
- data/ext/java/nokogiri/NokogiriService.java +598 -0
- data/ext/java/nokogiri/XmlAttr.java +190 -0
- data/ext/java/nokogiri/XmlAttributeDecl.java +130 -0
- data/ext/java/nokogiri/XmlCdata.java +84 -0
- data/ext/java/nokogiri/XmlComment.java +95 -0
- data/ext/java/nokogiri/XmlDocument.java +580 -0
- data/ext/java/nokogiri/XmlDocumentFragment.java +234 -0
- data/ext/java/nokogiri/XmlDtd.java +469 -0
- data/ext/java/nokogiri/XmlElement.java +97 -0
- data/ext/java/nokogiri/XmlElementContent.java +382 -0
- data/ext/java/nokogiri/XmlElementDecl.java +152 -0
- data/ext/java/nokogiri/XmlEntityDecl.java +162 -0
- data/ext/java/nokogiri/XmlEntityReference.java +97 -0
- data/ext/java/nokogiri/XmlNamespace.java +215 -0
- data/ext/java/nokogiri/XmlNode.java +1534 -0
- data/ext/java/nokogiri/XmlNodeSet.java +270 -0
- data/ext/java/nokogiri/XmlProcessingInstruction.java +99 -0
- data/ext/java/nokogiri/XmlReader.java +456 -0
- data/ext/java/nokogiri/XmlRelaxng.java +144 -0
- data/ext/java/nokogiri/XmlSaxParserContext.java +356 -0
- data/ext/java/nokogiri/XmlSaxPushParser.java +215 -0
- data/ext/java/nokogiri/XmlSchema.java +324 -0
- data/ext/java/nokogiri/XmlSyntaxError.java +136 -0
- data/ext/java/nokogiri/XmlText.java +119 -0
- data/ext/java/nokogiri/XmlXpathContext.java +203 -0
- data/ext/java/nokogiri/XsltStylesheet.java +360 -0
- data/ext/java/nokogiri/internals/HtmlDomParserContext.java +243 -0
- data/ext/java/nokogiri/internals/NokogiriDocumentCache.java +73 -0
- data/ext/java/nokogiri/internals/NokogiriErrorHandler.java +86 -0
- data/ext/java/nokogiri/internals/NokogiriHandler.java +333 -0
- data/ext/java/nokogiri/internals/NokogiriHelpers.java +800 -0
- data/ext/java/nokogiri/internals/NokogiriNamespaceCache.java +163 -0
- data/ext/java/nokogiri/internals/NokogiriNamespaceContext.java +130 -0
- data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler.java +74 -0
- data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler4NekoHtml.java +121 -0
- data/ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java +79 -0
- data/ext/java/nokogiri/internals/NokogiriXPathFunction.java +141 -0
- data/ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java +73 -0
- data/ext/java/nokogiri/internals/NokogiriXPathVariableResolver.java +67 -0
- data/ext/java/nokogiri/internals/NokogiriXsltErrorListener.java +87 -0
- data/ext/java/nokogiri/internals/ParserContext.java +288 -0
- data/ext/java/nokogiri/internals/ReaderNode.java +531 -0
- data/ext/java/nokogiri/internals/SaveContextVisitor.java +775 -0
- data/ext/java/nokogiri/internals/SchemaErrorHandler.java +76 -0
- data/ext/java/nokogiri/internals/XmlDeclHandler.java +42 -0
- data/ext/java/nokogiri/internals/XmlDomParser.java +105 -0
- data/ext/java/nokogiri/internals/XmlDomParserContext.java +266 -0
- data/ext/java/nokogiri/internals/XmlSaxParser.java +65 -0
- data/ext/java/nokogiri/internals/XsltExtensionFunction.java +72 -0
- data/ext/nokogiri/depend +358 -0
- data/ext/nokogiri/extconf.rb +142 -0
- data/ext/nokogiri/html_document.c +170 -0
- data/ext/nokogiri/html_document.h +10 -0
- data/ext/nokogiri/html_element_description.c +276 -0
- data/ext/nokogiri/html_element_description.h +10 -0
- data/ext/nokogiri/html_entity_lookup.c +32 -0
- data/ext/nokogiri/html_entity_lookup.h +8 -0
- data/ext/nokogiri/html_sax_parser_context.c +116 -0
- data/ext/nokogiri/html_sax_parser_context.h +11 -0
- data/ext/nokogiri/html_sax_push_parser.c +87 -0
- data/ext/nokogiri/html_sax_push_parser.h +9 -0
- data/ext/nokogiri/nokogiri.c +133 -0
- data/ext/nokogiri/nokogiri.h +160 -0
- data/ext/nokogiri/xml_attr.c +94 -0
- data/ext/nokogiri/xml_attr.h +9 -0
- data/ext/nokogiri/xml_attribute_decl.c +70 -0
- data/ext/nokogiri/xml_attribute_decl.h +9 -0
- data/ext/nokogiri/xml_cdata.c +56 -0
- data/ext/nokogiri/xml_cdata.h +9 -0
- data/ext/nokogiri/xml_comment.c +54 -0
- data/ext/nokogiri/xml_comment.h +9 -0
- data/ext/nokogiri/xml_document.c +576 -0
- data/ext/nokogiri/xml_document.h +23 -0
- data/ext/nokogiri/xml_document_fragment.c +48 -0
- data/ext/nokogiri/xml_document_fragment.h +10 -0
- data/ext/nokogiri/xml_dtd.c +202 -0
- data/ext/nokogiri/xml_dtd.h +10 -0
- data/ext/nokogiri/xml_element_content.c +123 -0
- data/ext/nokogiri/xml_element_content.h +10 -0
- data/ext/nokogiri/xml_element_decl.c +69 -0
- data/ext/nokogiri/xml_element_decl.h +9 -0
- data/ext/nokogiri/xml_encoding_handler.c +79 -0
- data/ext/nokogiri/xml_encoding_handler.h +8 -0
- data/ext/nokogiri/xml_entity_decl.c +110 -0
- data/ext/nokogiri/xml_entity_decl.h +10 -0
- data/ext/nokogiri/xml_entity_reference.c +52 -0
- data/ext/nokogiri/xml_entity_reference.h +9 -0
- data/ext/nokogiri/xml_io.c +56 -0
- data/ext/nokogiri/xml_io.h +11 -0
- data/ext/nokogiri/xml_libxml2_hacks.c +112 -0
- data/ext/nokogiri/xml_libxml2_hacks.h +12 -0
- data/ext/nokogiri/xml_namespace.c +78 -0
- data/ext/nokogiri/xml_namespace.h +13 -0
- data/ext/nokogiri/xml_node.c +1480 -0
- data/ext/nokogiri/xml_node.h +13 -0
- data/ext/nokogiri/xml_node_set.c +467 -0
- data/ext/nokogiri/xml_node_set.h +14 -0
- data/ext/nokogiri/xml_processing_instruction.c +56 -0
- data/ext/nokogiri/xml_processing_instruction.h +9 -0
- data/ext/nokogiri/xml_reader.c +684 -0
- data/ext/nokogiri/xml_reader.h +10 -0
- data/ext/nokogiri/xml_relax_ng.c +161 -0
- data/ext/nokogiri/xml_relax_ng.h +9 -0
- data/ext/nokogiri/xml_sax_parser.c +293 -0
- data/ext/nokogiri/xml_sax_parser.h +39 -0
- data/ext/nokogiri/xml_sax_parser_context.c +222 -0
- data/ext/nokogiri/xml_sax_parser_context.h +10 -0
- data/ext/nokogiri/xml_sax_push_parser.c +115 -0
- data/ext/nokogiri/xml_sax_push_parser.h +9 -0
- data/ext/nokogiri/xml_schema.c +205 -0
- data/ext/nokogiri/xml_schema.h +9 -0
- data/ext/nokogiri/xml_syntax_error.c +58 -0
- data/ext/nokogiri/xml_syntax_error.h +13 -0
- data/ext/nokogiri/xml_text.c +52 -0
- data/ext/nokogiri/xml_text.h +9 -0
- data/ext/nokogiri/xml_xpath_context.c +319 -0
- data/ext/nokogiri/xml_xpath_context.h +10 -0
- data/ext/nokogiri/xslt_stylesheet.c +270 -0
- data/ext/nokogiri/xslt_stylesheet.h +14 -0
- data/lib/isorelax.jar +0 -0
- data/lib/jing.jar +0 -0
- data/lib/nekodtd.jar +0 -0
- data/lib/nekohtml.jar +0 -0
- data/lib/nokogiri.rb +127 -0
- data/lib/nokogiri/css.rb +27 -0
- data/lib/nokogiri/css/node.rb +102 -0
- data/lib/nokogiri/css/parser.rb +720 -0
- data/lib/nokogiri/css/parser.y +258 -0
- data/lib/nokogiri/css/parser_extras.rb +91 -0
- data/lib/nokogiri/css/syntax_error.rb +7 -0
- data/lib/nokogiri/css/tokenizer.rb +152 -0
- data/lib/nokogiri/css/tokenizer.rex +55 -0
- data/lib/nokogiri/css/xpath_visitor.rb +171 -0
- data/lib/nokogiri/decorators/slop.rb +35 -0
- data/lib/nokogiri/html.rb +37 -0
- data/lib/nokogiri/html/builder.rb +35 -0
- data/lib/nokogiri/html/document.rb +254 -0
- data/lib/nokogiri/html/document_fragment.rb +41 -0
- data/lib/nokogiri/html/element_description.rb +23 -0
- data/lib/nokogiri/html/element_description_defaults.rb +671 -0
- data/lib/nokogiri/html/entity_lookup.rb +13 -0
- data/lib/nokogiri/html/sax/parser.rb +52 -0
- data/lib/nokogiri/html/sax/parser_context.rb +16 -0
- data/lib/nokogiri/html/sax/push_parser.rb +16 -0
- data/lib/nokogiri/nokogiri.jar +0 -0
- data/lib/nokogiri/syntax_error.rb +4 -0
- data/lib/nokogiri/version.rb +88 -0
- data/lib/nokogiri/xml.rb +73 -0
- data/lib/nokogiri/xml/attr.rb +14 -0
- data/lib/nokogiri/xml/attribute_decl.rb +18 -0
- data/lib/nokogiri/xml/builder.rb +431 -0
- data/lib/nokogiri/xml/cdata.rb +11 -0
- data/lib/nokogiri/xml/character_data.rb +7 -0
- data/lib/nokogiri/xml/document.rb +267 -0
- data/lib/nokogiri/xml/document_fragment.rb +103 -0
- data/lib/nokogiri/xml/dtd.rb +22 -0
- data/lib/nokogiri/xml/element_content.rb +36 -0
- data/lib/nokogiri/xml/element_decl.rb +13 -0
- data/lib/nokogiri/xml/entity_decl.rb +19 -0
- data/lib/nokogiri/xml/namespace.rb +13 -0
- data/lib/nokogiri/xml/node.rb +946 -0
- data/lib/nokogiri/xml/node/save_options.rb +61 -0
- data/lib/nokogiri/xml/node_set.rb +357 -0
- data/lib/nokogiri/xml/notation.rb +6 -0
- data/lib/nokogiri/xml/parse_options.rb +98 -0
- data/lib/nokogiri/xml/pp.rb +2 -0
- data/lib/nokogiri/xml/pp/character_data.rb +18 -0
- data/lib/nokogiri/xml/pp/node.rb +56 -0
- data/lib/nokogiri/xml/processing_instruction.rb +8 -0
- data/lib/nokogiri/xml/reader.rb +112 -0
- data/lib/nokogiri/xml/relax_ng.rb +32 -0
- data/lib/nokogiri/xml/sax.rb +4 -0
- data/lib/nokogiri/xml/sax/document.rb +164 -0
- data/lib/nokogiri/xml/sax/parser.rb +115 -0
- data/lib/nokogiri/xml/sax/parser_context.rb +16 -0
- data/lib/nokogiri/xml/sax/push_parser.rb +60 -0
- data/lib/nokogiri/xml/schema.rb +63 -0
- data/lib/nokogiri/xml/syntax_error.rb +47 -0
- data/lib/nokogiri/xml/text.rb +9 -0
- data/lib/nokogiri/xml/xpath.rb +10 -0
- data/lib/nokogiri/xml/xpath/syntax_error.rb +11 -0
- data/lib/nokogiri/xml/xpath_context.rb +16 -0
- data/lib/nokogiri/xslt.rb +56 -0
- data/lib/nokogiri/xslt/stylesheet.rb +25 -0
- data/lib/xercesImpl.jar +0 -0
- data/lib/xsd/xmlparser/nokogiri.rb +90 -0
- data/tasks/cross_compile.rb +153 -0
- data/tasks/nokogiri.org.rb +24 -0
- data/tasks/test.rb +95 -0
- data/test/css/test_nthiness.rb +159 -0
- data/test/css/test_parser.rb +341 -0
- data/test/css/test_tokenizer.rb +198 -0
- data/test/css/test_xpath_visitor.rb +91 -0
- data/test/decorators/test_slop.rb +16 -0
- data/test/files/2ch.html +108 -0
- data/test/files/address_book.rlx +12 -0
- data/test/files/address_book.xml +10 -0
- data/test/files/bar/bar.xsd +4 -0
- data/test/files/dont_hurt_em_why.xml +422 -0
- data/test/files/encoding.html +82 -0
- data/test/files/encoding.xhtml +84 -0
- data/test/files/exslt.xml +8 -0
- data/test/files/exslt.xslt +35 -0
- data/test/files/foo/foo.xsd +4 -0
- data/test/files/metacharset.html +10 -0
- data/test/files/noencoding.html +47 -0
- data/test/files/po.xml +32 -0
- data/test/files/po.xsd +66 -0
- data/test/files/shift_jis.html +10 -0
- data/test/files/shift_jis.xml +5 -0
- data/test/files/snuggles.xml +3 -0
- data/test/files/staff.dtd +10 -0
- data/test/files/staff.xml +59 -0
- data/test/files/staff.xslt +32 -0
- data/test/files/tlm.html +850 -0
- data/test/files/to_be_xincluded.xml +2 -0
- data/test/files/valid_bar.xml +2 -0
- data/test/files/xinclude.xml +4 -0
- data/test/helper.rb +147 -0
- data/test/html/sax/test_parser.rb +138 -0
- data/test/html/sax/test_parser_context.rb +46 -0
- data/test/html/test_builder.rb +164 -0
- data/test/html/test_document.rb +529 -0
- data/test/html/test_document_encoding.rb +138 -0
- data/test/html/test_document_fragment.rb +254 -0
- data/test/html/test_element_description.rb +100 -0
- data/test/html/test_named_characters.rb +14 -0
- data/test/html/test_node.rb +188 -0
- data/test/html/test_node_encoding.rb +27 -0
- data/test/test_convert_xpath.rb +135 -0
- data/test/test_css_cache.rb +45 -0
- data/test/test_encoding_handler.rb +46 -0
- data/test/test_memory_leak.rb +152 -0
- data/test/test_nokogiri.rb +132 -0
- data/test/test_reader.rb +488 -0
- data/test/test_soap4r_sax.rb +52 -0
- data/test/test_xslt_transforms.rb +254 -0
- data/test/xml/node/test_save_options.rb +28 -0
- data/test/xml/node/test_subclass.rb +44 -0
- data/test/xml/sax/test_parser.rb +338 -0
- data/test/xml/sax/test_parser_context.rb +106 -0
- data/test/xml/sax/test_push_parser.rb +157 -0
- data/test/xml/test_attr.rb +64 -0
- data/test/xml/test_attribute_decl.rb +86 -0
- data/test/xml/test_builder.rb +248 -0
- data/test/xml/test_c14n.rb +151 -0
- data/test/xml/test_cdata.rb +48 -0
- data/test/xml/test_comment.rb +29 -0
- data/test/xml/test_document.rb +742 -0
- data/test/xml/test_document_encoding.rb +28 -0
- data/test/xml/test_document_fragment.rb +216 -0
- data/test/xml/test_dtd.rb +103 -0
- data/test/xml/test_dtd_encoding.rb +33 -0
- data/test/xml/test_element_content.rb +56 -0
- data/test/xml/test_element_decl.rb +73 -0
- data/test/xml/test_entity_decl.rb +122 -0
- data/test/xml/test_entity_reference.rb +235 -0
- data/test/xml/test_namespace.rb +75 -0
- data/test/xml/test_node.rb +1029 -0
- data/test/xml/test_node_attributes.rb +53 -0
- data/test/xml/test_node_encoding.rb +107 -0
- data/test/xml/test_node_inheritance.rb +32 -0
- data/test/xml/test_node_reparenting.rb +374 -0
- data/test/xml/test_node_set.rb +755 -0
- data/test/xml/test_parse_options.rb +64 -0
- data/test/xml/test_processing_instruction.rb +30 -0
- data/test/xml/test_reader_encoding.rb +142 -0
- data/test/xml/test_relax_ng.rb +60 -0
- data/test/xml/test_schema.rb +94 -0
- data/test/xml/test_syntax_error.rb +12 -0
- data/test/xml/test_text.rb +45 -0
- data/test/xml/test_unparented_node.rb +413 -0
- data/test/xml/test_xinclude.rb +83 -0
- data/test/xml/test_xpath.rb +295 -0
- data/test/xslt/test_custom_functions.rb +129 -0
- data/test/xslt/test_exception_handling.rb +37 -0
- data/test_all +84 -0
- metadata +571 -0
data/CHANGELOG.rdoc
ADDED
@@ -0,0 +1,659 @@
|
|
1
|
+
== 1.5.5 / unreleased
|
2
|
+
|
3
|
+
* Features
|
4
|
+
|
5
|
+
* Much-improved support for JRuby in 1.9 mode! Yay!
|
6
|
+
|
7
|
+
* Bugfixes
|
8
|
+
|
9
|
+
* Regression in JRuby Nokogiri add_previous_sibling (1.5.0 -> 1.5.1) #691 (Thanks, John Shahid!)
|
10
|
+
* JRuby unable to create HTML doc if URL arg provided #674 (Thanks, John Shahid!)
|
11
|
+
* JRuby raises NullPointerException when given HTML document is nil or empty string. #699
|
12
|
+
* JRuby 1.9 error, uncaught throw 'encoding_found', has been fixed. #673
|
13
|
+
* Invalid encoding returned in JRuby with US-ASCII. #583
|
14
|
+
* XmlSaxPushParser raises IndexOutOfBoundsException when over 512 characters are given. #567, #615
|
15
|
+
* When xpath evaluation returns empty NodeSet, decorating NodeSet's base document raises exception. #514
|
16
|
+
* JRuby raises exception when xpath with namespace is specified. pull request #681 (Thanks, Piotr Szmielew)
|
17
|
+
* JRuby renders nodes without their namespace when subclassing Node. #695
|
18
|
+
* JRuby raises NAMESPACE_ERR (org.w3c.dom.DOMException) while instantiating RDF::RDFXML::Writer. #683
|
19
|
+
* JRuby is not able to use namespaces in xpath. #493
|
20
|
+
|
21
|
+
|
22
|
+
== 1.5.4 / 2012-06-12
|
23
|
+
|
24
|
+
* Features
|
25
|
+
|
26
|
+
* The "nokogiri" script now has more verbose output when passed the `--rng` option. #675 (Thanks, Dan Radez!)
|
27
|
+
* Build support on hardened Debian systems that use `-Werror=format-security`. #680.
|
28
|
+
* Better build support for systems with pkg-config. #584
|
29
|
+
* Better build support for systems with multiple iconv installations.
|
30
|
+
|
31
|
+
* Bugfixes
|
32
|
+
|
33
|
+
* Segmentation fault when creating a comment node for a DocumentFragment. #677, #678.
|
34
|
+
* Treat '.' as xpath in at() and search(). #690
|
35
|
+
|
36
|
+
* [MRI, Security] Default parse options for XML documents were
|
37
|
+
changed to not make network connections during document parsing,
|
38
|
+
to avoid XXE vulnerability. #693
|
39
|
+
|
40
|
+
To re-enable this behavior, the configuration method `nononet` may
|
41
|
+
be called, like this:
|
42
|
+
|
43
|
+
Nokogiri::XML::Document.parse(xml) { |config| config.nononet }
|
44
|
+
|
45
|
+
Insert your own joke about double-negatives here.
|
46
|
+
|
47
|
+
|
48
|
+
== 1.5.3 / 2012-06-01
|
49
|
+
|
50
|
+
* Features
|
51
|
+
|
52
|
+
* Support for "prefixless" CSS selectors ~, > and + like jQuery
|
53
|
+
supports. #621, #623. (Thanks, David Lee!)
|
54
|
+
* Attempting to improve installation on homebrew 0.9 (with regards
|
55
|
+
to iconv). Isn't package management convenient?
|
56
|
+
|
57
|
+
* Bugfixes
|
58
|
+
|
59
|
+
* Custom xpath functions with empty nodeset arguments cause a
|
60
|
+
segfault. #634.
|
61
|
+
* Nokogiri::XML::Node#css now works for XML documents with default
|
62
|
+
namespaces when the rule contains attribute selector without
|
63
|
+
namespace.
|
64
|
+
* Fixed marshalling bugs around how arguments are passed to (and
|
65
|
+
returned from) XSLT custom xpath functions. #640.
|
66
|
+
* Nokogiri::XML::Reader#outer_xml is broken in JRuby #617
|
67
|
+
* Nokogiri::XML::Attribute on JRuby returns a nil namespace #647
|
68
|
+
* Nokogiri::XML::Node#namespace= cannot set a namespace without a
|
69
|
+
prefix on JRuby #648
|
70
|
+
* [JRuby] 1.9 mode causes dead lock while running rake #571
|
71
|
+
* HTML::Document#meta_encoding does not raise exception on docs with
|
72
|
+
malformed content-type. #655
|
73
|
+
* Fixing segfault related to unsupported encodings in in-context
|
74
|
+
parsing on 1.8.7. #643
|
75
|
+
* [JRuby] Concurrency issue in XPath parsing. #682
|
76
|
+
|
77
|
+
|
78
|
+
== 1.5.2 / 2012-03-09
|
79
|
+
|
80
|
+
Repackaging of 1.5.1 with a gemspec that is compatible with older Rubies. #631, #632.
|
81
|
+
|
82
|
+
|
83
|
+
== 1.5.1 / 2012-03-09
|
84
|
+
|
85
|
+
* Features
|
86
|
+
|
87
|
+
* XML::Builder#comment allows creation of comment nodes.
|
88
|
+
* CSS searches now support namespaced attributes. #593
|
89
|
+
* Java integration feature is added. Now, XML::Document.wrap
|
90
|
+
and XML::Document#to_java methods are available.
|
91
|
+
* RelaxNG validator support in the `nokogiri` cli utility. #591 (thanks, Dan Radez!)
|
92
|
+
|
93
|
+
* Bugfixes
|
94
|
+
|
95
|
+
* Fix many memory leaks and segfault opportunities. Thanks, Tim Elliott!
|
96
|
+
* extconf searches homebrew paths if homebrew is installed.
|
97
|
+
* Inconsistent behavior of Nokogiri 1.5.0 Java #620
|
98
|
+
* Inheriting from Nokogiri::XML::Node on JRuby (1.6.4/5) fails #560
|
99
|
+
* XML::Attr nodes are not allowed to be added as node children, so an
|
100
|
+
exception is raised. #558
|
101
|
+
* No longer defensively "pickle" adjacent text nodes on
|
102
|
+
Node#add_next_sibling and Node#add_previous_sibling calls. #595.
|
103
|
+
* Java version inconsistency: it returns nil for empty attributes #589
|
104
|
+
* to_xhtml incorrectly generates <p /></p> when tag is empty #557
|
105
|
+
* Document#add_child now accepts a Node, NodeSet, DocumentFragment,
|
106
|
+
or String. #546.
|
107
|
+
* Document#create_element now recognizes namespaces containing
|
108
|
+
non-word characters (like "SOAP-ENV"). This is mostly relevant to
|
109
|
+
users of Builder, which calls Document#create_element for nearly
|
110
|
+
everything. #531.
|
111
|
+
* File encoding broken in 1.5.0 / jruby / windows #529
|
112
|
+
* Java version does not return namespace defs as attrs for ::HTML #542
|
113
|
+
* Bad file descriptor with Nokogiri 1.5.0 #495
|
114
|
+
* remove_namespace! doesn't work in pure java version #492
|
115
|
+
* The Nokogiri Java native build throws a null pointer exception
|
116
|
+
when ActiveSupport's .blank? method is called directly on a parsed
|
117
|
+
object. #489
|
118
|
+
* 1.5.0 Not using correct character encoding #488
|
119
|
+
* Raw XML string in XML Builder broken on JRuby #486
|
120
|
+
* Nokogiri 1.5.0 XML generation broken on JRuby #484
|
121
|
+
* Do not allow multiple root nodes. #550
|
122
|
+
* Fixes for custom XPath functions. #605, #606 (thanks, Juan Wajnerman!)
|
123
|
+
* Node#to_xml does not override :save_with if it is provided. #505
|
124
|
+
* Node#set is a private method [JRuby]. #564 (thanks, Nick Sieger!)
|
125
|
+
* C14n cleanup and Node#canonicalize (thanks, Ivan Pirlik!) #563
|
126
|
+
|
127
|
+
|
128
|
+
== 1.5.0 / 2011-07-01
|
129
|
+
|
130
|
+
* Notes
|
131
|
+
|
132
|
+
* See changelog from 1.4.7
|
133
|
+
|
134
|
+
* Features
|
135
|
+
|
136
|
+
* extracted sets of Node::SaveOptions into Node::SaveOptions::DEFAULT_{X,H,XH}TML (refactor)
|
137
|
+
|
138
|
+
* Bugfixes
|
139
|
+
|
140
|
+
* default output of XML on JRuby is no longer formatted due to
|
141
|
+
inconsistent whitespace handling. #415
|
142
|
+
* (JRuby) making empty NodeSets with null `nodes` member safe to operate on. #443
|
143
|
+
* Fix a bug in advanced encoding detection that leads to partially
|
144
|
+
duplicated document when parsing an HTML file with unknown
|
145
|
+
encoding.
|
146
|
+
* Add support for <meta charset="...">.
|
147
|
+
|
148
|
+
== 1.5.0 beta3 / 2010/12/02
|
149
|
+
|
150
|
+
* Notes
|
151
|
+
|
152
|
+
* JRuby performance tuning
|
153
|
+
* See changelog from 1.4.4
|
154
|
+
|
155
|
+
* Bugfixes
|
156
|
+
|
157
|
+
* Node#inner_text no longer returns nil. (JRuby) #264
|
158
|
+
|
159
|
+
== 1.5.0 beta2 / 2010/07/30
|
160
|
+
|
161
|
+
* Notes
|
162
|
+
|
163
|
+
* See changelog from 1.4.3
|
164
|
+
|
165
|
+
== 1.5.0 beta1 / 2010/05/22
|
166
|
+
|
167
|
+
* Notes
|
168
|
+
|
169
|
+
* JRuby support is provided by a new pure-java backend.
|
170
|
+
|
171
|
+
* Deprecations
|
172
|
+
|
173
|
+
* Ruby 1.8.6 is deprecated. Nokogiri will install, but official support is ended.
|
174
|
+
* LibXML 2.6.16 and earlier are deprecated. Nokogiri will refuse to install.
|
175
|
+
* FFI support is removed.
|
176
|
+
|
177
|
+
=== 1.4.7 / 2011-07-01
|
178
|
+
|
179
|
+
* Bugfixes
|
180
|
+
|
181
|
+
* Fix a bug in advanced encoding detection that leads to partially
|
182
|
+
duplicated document when parsing an HTML file with unknown
|
183
|
+
encoding. Thanks, Timothy Elliott (@ender672)! #478
|
184
|
+
|
185
|
+
=== 1.4.6 / 2011-06-19
|
186
|
+
|
187
|
+
* Notes
|
188
|
+
|
189
|
+
* This version is functionally identical to 1.4.5.
|
190
|
+
* Ruby 1.8.6 support has been restored.
|
191
|
+
|
192
|
+
=== 1.4.5 / 2011-05-19
|
193
|
+
|
194
|
+
* New Features
|
195
|
+
|
196
|
+
* Nokogiri::HTML::Document#title accessor gets and sets the document title.
|
197
|
+
* extracted sets of Node::SaveOptions into Node::SaveOptions::DEFAULT_{X,H,XH}TML (refactor)
|
198
|
+
* Raise an exception if a string is passed to Nokogiri::XML::Schema#validate. #406
|
199
|
+
|
200
|
+
* Bugfixes
|
201
|
+
|
202
|
+
* Node#serialize-and-friends now accepts a SaveOption object as the, erm, save object.
|
203
|
+
* Nokogiri::CSS::Parser has-a Nokogiri::CSS::Tokenizer
|
204
|
+
* [JRUBY+FFI only] Weak references are now threadsafe. #355
|
205
|
+
* Make direct start_element() callback (currently used for
|
206
|
+
HTML::SAX::Parser) pass attributes in assoc array, just as
|
207
|
+
emulated start_element() callback does. rel. #356
|
208
|
+
* HTML::SAX::Parser should call back a block given to parse*() if any, just as XML::SAX::Parser does.
|
209
|
+
* Add further encoding detection to HTML parser that libxml2 does not do.
|
210
|
+
* Document#remove_namespaces! now handles attributes with namespaces. #396
|
211
|
+
* XSLT::Stylesheet#transform no longer segfaults when handed a non-XML::Document. #452
|
212
|
+
* XML::Reader no longer segfaults when under GC pressure. #439
|
213
|
+
|
214
|
+
=== 1.4.4 / 2010-11-15
|
215
|
+
|
216
|
+
* New Features
|
217
|
+
|
218
|
+
* XML::Node#children= sets the node's inner html (much like #inner_html=), but returns the reparent node(s).
|
219
|
+
* XSLT supports function extensions. #336
|
220
|
+
* XPath bind parameter substitution. #329
|
221
|
+
* XML::Reader node type constants. #369
|
222
|
+
* SAX Parser context provides line and column information
|
223
|
+
|
224
|
+
* Bugfixes
|
225
|
+
|
226
|
+
* XML::DTD#attributes returns an empty hash instead of nil when there are no attributes.
|
227
|
+
* XML::DTD#{keys,each} now work as expected. #324
|
228
|
+
* {XML,HTML}::DocumentFragment.{new,parse} no longer strip leading and trailing whitespace. #319
|
229
|
+
* XML::Node#{add_child,add_previous_sibling,add_next_sibling,replace} return a NodeSet when passed a string.
|
230
|
+
* Unclosed tags parsed more robustly in fragments. #315
|
231
|
+
* XML::Node#{replace,add_previous_sibling,add_next_sibling} edge cases fixed related to libxml's text node merging. #308
|
232
|
+
* Fixed a segfault when GC occurs during xpath handler argument marshalling. #345
|
233
|
+
* Added hack to Slop decorator to work with previously defined methods. #330
|
234
|
+
* Fix a memory leak when duplicating child nodes. #353
|
235
|
+
* Fixed off-by-one bug with nth-last-{child,of-type} CSS selectors when NOT using an+b notation. #354
|
236
|
+
* Fixed passing of non-namespace attributes to SAX::Document#start_element. #356
|
237
|
+
* Workaround for libxml2 in-context parsing bug. #362
|
238
|
+
* Fixed NodeSet#wrap on nodes within a fragment. #331
|
239
|
+
|
240
|
+
=== 1.4.3 / 2010/07/28
|
241
|
+
|
242
|
+
* New Features
|
243
|
+
|
244
|
+
* XML::Reader#empty_element? returns true for empty elements. #262
|
245
|
+
* Node#remove_namespaces! now removes namespace *declarations* as well. #294
|
246
|
+
* NodeSet#at_xpath, NodeSet#at_css and NodeSet#> do what the corresponding
|
247
|
+
methods of Node do.
|
248
|
+
|
249
|
+
* Bugfixes
|
250
|
+
|
251
|
+
* XML::NodeSet#{include?,delete,push} accept an XML::Namespace
|
252
|
+
* XML::Document#parse added for parsing in the context of a document
|
253
|
+
* XML::DocumentFragment#inner_html= works with contextual parsing! #298, #281
|
254
|
+
* lib/nokogiri/css/parser.y Combined CSS functions + pseudo selectors fixed
|
255
|
+
* Reparenting text nodes is safe, even when the operation frees adjacent merged nodes. #283
|
256
|
+
* Fixed libxml2 versionitis issue with xmlFirstElementChild et al. #303
|
257
|
+
* XML::Attr#add_namespace now works as expected. #252
|
258
|
+
* HTML::DocumentFragment uses the string's encoding. #305
|
259
|
+
* Fix the CSS3 selector translation rule for the general sibling combinator
|
260
|
+
(a.k.a. preceding selector) that incorrectly converted "E ~ F G" to
|
261
|
+
"//F//G[preceding-sibling::E]".
|
262
|
+
|
263
|
+
=== 1.4.2 / 2010/05/22
|
264
|
+
|
265
|
+
* New Features
|
266
|
+
|
267
|
+
* XML::Node#parse will parse XML or HTML fragments with respect to the
|
268
|
+
context node.
|
269
|
+
* XML::Node#namespaces returns all namespaces defined in the node and all
|
270
|
+
ancestor nodes
|
271
|
+
(previously did not return ancestors' namespace definitions).
|
272
|
+
* Added Enumerable to XML::Node
|
273
|
+
* Nokogiri::XML::Schema#validate now uses xmlSchemaValidateFile if a
|
274
|
+
filename is passed, which is faster and more memory-efficient. GH #219
|
275
|
+
* XML::Document#create_entity will create new EntityDecl objects. GH #174
|
276
|
+
* JRuby FFI implementation no longer uses ObjectSpace._id2ref,
|
277
|
+
instead using Charles Nutter's rocking Weakling gem.
|
278
|
+
* Nokogiri::XML::Node#first_element_child fetch the first child node that is
|
279
|
+
an ELEMENT node.
|
280
|
+
* Nokogiri::XML::Node#last_element_child fetch the last child node that is
|
281
|
+
an ELEMENT node.
|
282
|
+
* Nokogiri::XML::Node#elements fetch all children nodes that are ELEMENT
|
283
|
+
nodes.
|
284
|
+
* Nokogiri::XML::Node#add_child, #add_previous_sibling, #before,
|
285
|
+
#add_next_sibling, #after, #inner_html, #swap and #replace all now
|
286
|
+
accept a Node, DocumentFragment, NodeSet, or a string containing
|
287
|
+
markup.
|
288
|
+
* Node#fragment? indicates whether a node is a DocumentFragment.
|
289
|
+
|
290
|
+
* Bugfixes
|
291
|
+
|
292
|
+
* XML::NodeSet is now always decorated (if the document has decorators).
|
293
|
+
GH #198
|
294
|
+
* XML::NodeSet#slice gracefully handles offset+length larger than the set
|
295
|
+
length. GH #200
|
296
|
+
* XML::Node#content= safely unlinks previous content. GH #203
|
297
|
+
* XML::Node#namespace= takes nil as a parameter
|
298
|
+
* XML::Node#xpath returns things other than NodeSet objects. GH #208
|
299
|
+
* XSLT::StyleSheet#transform accepts hashes for parameters. GH #223
|
300
|
+
* Psuedo selectors inside not() work. GH #205
|
301
|
+
* XML::Builder doesn't break when nodes are unlinked.
|
302
|
+
Thanks to vihai! GH #228
|
303
|
+
* Encoding can be forced on the SAX parser. Thanks Eugene Pimenov! GH #204
|
304
|
+
* XML::DocumentFragment uses XML::Node#parse to determine children.
|
305
|
+
* Fixed a memory leak in xml reader. Thanks sdor! GH #244
|
306
|
+
* Node#replace returns the new child node as claimed in the
|
307
|
+
RDoc. Previously returned +self+.
|
308
|
+
|
309
|
+
* Notes
|
310
|
+
|
311
|
+
* The Windows gems now bundle DLLs for libxml 2.7.6 and libxslt
|
312
|
+
1.1.26. Prior to this release, libxml 2.7.3 and libxslt 1.1.24
|
313
|
+
were bundled.
|
314
|
+
|
315
|
+
=== 1.4.1 / 2009/12/10
|
316
|
+
|
317
|
+
* New Features
|
318
|
+
|
319
|
+
* Added Nokogiri::LIBXML_ICONV_ENABLED
|
320
|
+
* Alias Node#[] to Node#attr
|
321
|
+
* XML::Node#next_element added
|
322
|
+
* XML::Node#> added for searching a nodes immediate children
|
323
|
+
* XML::NodeSet#reverse added
|
324
|
+
* Added fragment support to Node#add_child, Node#add_next_sibling,
|
325
|
+
Node#add_previous_sibling, and Node#replace.
|
326
|
+
* XML::Node#previous_element implemented
|
327
|
+
* Rubinius support
|
328
|
+
* Ths CSS selector engine now supports :has()
|
329
|
+
* XML::NodeSet#filter() was added
|
330
|
+
* XML::Node.next= and .previous= are aliases for add_next_sibling and add_previous_sibling. GH #183
|
331
|
+
|
332
|
+
* Bugfixes
|
333
|
+
|
334
|
+
* XML fragments with namespaces do not raise an exception (regression in 1.4.0)
|
335
|
+
* Node#matches? works in nodes contained by a DocumentFragment. GH #158
|
336
|
+
* Document should not define add_namespace() method. GH #169
|
337
|
+
* XPath queries returning namespace declarations do not segfault.
|
338
|
+
* Node#replace works with nodes from different documents. GH #162
|
339
|
+
* Adding XML::Document#collect_namespaces
|
340
|
+
* Fixed bugs in the SOAP4R adapter
|
341
|
+
* Fixed bug in XML::Node#next_element for certain edge cases
|
342
|
+
* Fixed load path issue with JRuby under Windows. GH #160.
|
343
|
+
* XSLT#apply_to will honor the "output method". Thanks richardlehane!
|
344
|
+
* Fragments containing leading text nodes with newlines now parse properly. GH #178.
|
345
|
+
|
346
|
+
=== 1.4.0 / 2009/10/30
|
347
|
+
|
348
|
+
* Happy Birthday!
|
349
|
+
|
350
|
+
* New Features
|
351
|
+
|
352
|
+
* Node#at_xpath returns the first element of the NodeSet matching the XPath
|
353
|
+
expression.
|
354
|
+
* Node#at_css returns the first element of the NodeSet matching the CSS
|
355
|
+
selector.
|
356
|
+
* NodeSet#| for unions GH #119 (Thanks Serabe!)
|
357
|
+
* NodeSet#inspect makes prettier output
|
358
|
+
* Node#inspect implemented for more rubyish document inspecting
|
359
|
+
* Added XML::DTD#external_id
|
360
|
+
* Added XML::DTD#system_id
|
361
|
+
* Added XML::ElementContent for DTD Element content validity
|
362
|
+
* Better namespace declaration support in Nokogiri::XML::Builder
|
363
|
+
* Added XML::Node#external_subset
|
364
|
+
* Added XML::Node#create_external_subset
|
365
|
+
* Added XML::Node#create_internal_subset
|
366
|
+
* XML Builder can append raw strings (GH #141, patch from dudleyf)
|
367
|
+
* XML::SAX::ParserContext added
|
368
|
+
* XML::Document#remove_namespaces! for the namespace-impaired
|
369
|
+
|
370
|
+
* Bugfixes
|
371
|
+
|
372
|
+
* returns nil when HTML documents do not declare a meta encoding tag. GH #115
|
373
|
+
* Uses RbConfig::CONFIG['host_os'] to adjust ENV['PATH'] GH #113
|
374
|
+
* NodeSet#search is more efficient GH #119 (Thanks Serabe!)
|
375
|
+
* NodeSet#xpath handles custom xpath functions
|
376
|
+
* Fixing a SEGV when XML::Reader gets attributes for current node
|
377
|
+
* Node#inner_html takes the same arguments as Node#to_html GH #117
|
378
|
+
* DocumentFragment#css delegates to it's child nodes GH #123
|
379
|
+
* NodeSet#[] works with slices larger than NodeSet#length GH #131
|
380
|
+
* Reparented nodes maintain their namespace. GH #134
|
381
|
+
* Fixed SEGV when adding an XML::Document to NodeSet
|
382
|
+
* XML::SyntaxError can be duplicated. GH #148
|
383
|
+
|
384
|
+
* Deprecations
|
385
|
+
|
386
|
+
* Hpricot compatibility layer removed
|
387
|
+
|
388
|
+
=== 1.3.3 / 2009/07/26
|
389
|
+
|
390
|
+
* New Features
|
391
|
+
|
392
|
+
* NodeSet#children returns all children of all nodes
|
393
|
+
|
394
|
+
* Bugfixes
|
395
|
+
|
396
|
+
* Override libxml-ruby's global error handler
|
397
|
+
* ParseOption#strict fixed
|
398
|
+
* Fixed a segfault when sending an empty string to Node#inner_html= GH #88
|
399
|
+
* String encoding is now set to UTF-8 in Ruby 1.9
|
400
|
+
* Fixed a segfault when moving root nodes between documents. GH #91
|
401
|
+
* Fixed an O(n) penalty on node creation. GH #101
|
402
|
+
* Allowing XML documents to be output as HTML documents
|
403
|
+
|
404
|
+
* Deprecations
|
405
|
+
|
406
|
+
* Hpricot compatibility layer will be removed in 1.4.0
|
407
|
+
|
408
|
+
=== 1.3.2 / 2009-06-22
|
409
|
+
|
410
|
+
* New Features
|
411
|
+
|
412
|
+
* Nokogiri::XML::DTD#validate will validate your document
|
413
|
+
|
414
|
+
* Bugfixes
|
415
|
+
|
416
|
+
* Nokogiri::XML::NodeSet#search will search top level nodes. GH #73
|
417
|
+
* Removed namespace related methods from Nokogiri::XML::Document
|
418
|
+
* Fixed a segfault when a namespace was added twice
|
419
|
+
* Made nokogiri work with Snow Leopard GH #79
|
420
|
+
* Mailing list has moved to: http://groups.google.com/group/nokogiri-talk
|
421
|
+
* HTML fragments now correctly handle comments and CDATA blocks. GH #78
|
422
|
+
* Nokogiri::XML::Document#clone is now an alias of dup
|
423
|
+
|
424
|
+
* Deprecations
|
425
|
+
|
426
|
+
* Nokogiri::XML::SAX::Document#start_element_ns is deprecated, please switch
|
427
|
+
to Nokogiri::XML::SAX::Document#start_element_namespace
|
428
|
+
* Nokogiri::XML::SAX::Document#end_element_ns is deprecated, please switch
|
429
|
+
to Nokogiri::XML::SAX::Document#end_element_namespace
|
430
|
+
|
431
|
+
=== 1.3.1 / 2009-06-07
|
432
|
+
|
433
|
+
* Bugfixes
|
434
|
+
|
435
|
+
* extconf.rb checks for optional RelaxNG and Schema functions
|
436
|
+
* Namespace nodes are added to the Document node cache
|
437
|
+
|
438
|
+
=== 1.3.0 / 2009-05-30
|
439
|
+
|
440
|
+
* New Features
|
441
|
+
|
442
|
+
* Builder changes scope based on block arity
|
443
|
+
* Builder supports methods ending in underscore similar to tagz
|
444
|
+
* Nokogiri::XML::Node#<=> compares nodes based on Document position
|
445
|
+
* Nokogiri::XML::Node#matches? returns true if Node can be found with
|
446
|
+
given selector.
|
447
|
+
* Nokogiri::XML::Node#ancestors now returns an Nokogiri::XML::NodeSet
|
448
|
+
* Nokogiri::XML::Node#ancestors will match parents against optional selector
|
449
|
+
* Nokogiri::HTML::Document#meta_encoding for getting the meta encoding
|
450
|
+
* Nokogiri::HTML::Document#meta_encoding= for setting the meta encoding
|
451
|
+
* Nokogiri::XML::Document#encoding= to set the document encoding
|
452
|
+
* Nokogiri::XML::Schema for validating documents against XSD schema
|
453
|
+
* Nokogiri::XML::RelaxNG for validating documents against RelaxNG schema
|
454
|
+
* Nokogiri::HTML::ElementDescription for fetching HTML element descriptions
|
455
|
+
* Nokogiri::XML::Node#description to fetch the node description
|
456
|
+
* Nokogiri::XML::Node#accept implements Visitor pattern
|
457
|
+
* bin/nokogiri for easily examining documents (Thanks Yutaka HARA!)
|
458
|
+
* Nokogiri::XML::NodeSet now supports more Array and Enumerable operators:
|
459
|
+
index, delete, slice, - (difference), + (concatenation), & (intersection),
|
460
|
+
push, pop, shift, ==
|
461
|
+
* Nokogiri.XML, Nokogiri.HTML take blocks that receive
|
462
|
+
Nokogiri::XML::ParseOptions objects
|
463
|
+
* Nokogiri::XML::Node#namespace returns a Nokogiri::XML::Namespace
|
464
|
+
* Nokogiri::XML::Node#namespace= for setting a node's namespace
|
465
|
+
* Nokogiri::XML::DocumentFragment and Nokogiri::HTML::DocumentFragment
|
466
|
+
have a sensible API and a more robust implementation.
|
467
|
+
* JRuby 1.3.0 support via FFI.
|
468
|
+
|
469
|
+
* Bugfixes
|
470
|
+
|
471
|
+
* Fixed a problem with nil passed to CDATA constructor
|
472
|
+
* Fragment method deals with regular expression characters
|
473
|
+
(Thanks Joel!) LH #73
|
474
|
+
* Fixing builder scope issues LH #61, LH #74, LH #70
|
475
|
+
* Fixed a problem when adding a child could remove the child namespace LH#78
|
476
|
+
* Fixed bug with unlinking a node then reparenting it. (GH#22)
|
477
|
+
* Fixed failure to catch errors during XSLT parsing (GH#32)
|
478
|
+
* Fixed a bug with attribute conditions in CSS selectors (GH#36)
|
479
|
+
* Fixed intolerance of HTML attributes without values in Node#before/after/inner_html=. (GH#35)
|
480
|
+
|
481
|
+
=== 1.2.3 / 2009-03-22
|
482
|
+
|
483
|
+
* Bugfixes
|
484
|
+
|
485
|
+
* Fixing bug where a node is passed in to Node#new
|
486
|
+
* Namespace should be assigned on DocumentFragment creation. LH #66
|
487
|
+
* Nokogiri::XML::NodeSet#dup works GH #10
|
488
|
+
* Nokogiri::HTML returns an empty Document when given a blank string GH#11
|
489
|
+
* Adding a child will remove duplicate namespace declarations LH #67
|
490
|
+
* Builder methods take a hash as a second argument
|
491
|
+
|
492
|
+
=== 1.2.2 / 2009-03-14
|
493
|
+
|
494
|
+
* New features
|
495
|
+
|
496
|
+
* Nokogiri may be used with soap4r. See XSD::XMLParser::Nokogiri
|
497
|
+
* Nokogiri::XML::Node#inner_html= to set the inner html for a node
|
498
|
+
* Nokogiri builder interface improvements
|
499
|
+
* Nokogiri::XML::Node#swap swaps html for current node (LH #50)
|
500
|
+
|
501
|
+
* Bugfixes
|
502
|
+
|
503
|
+
* Fixed a tag nesting problem in the Builder API (LH #41)
|
504
|
+
* Nokogiri::HTML.fragment will properly handle text only nodes (LH #43)
|
505
|
+
* Nokogiri::XML::Node#before will prepend text nodes (LH #44)
|
506
|
+
* Nokogiri::XML::Node#after will append text nodes
|
507
|
+
* Nokogiri::XML::Node#search automatically registers root namespaces (LH #42)
|
508
|
+
* Nokogiri::XML::NodeSet#search automatically registers namespaces
|
509
|
+
* Nokogiri::HTML::NamedCharacters delegates to libxml2
|
510
|
+
* Nokogiri::XML::Node#[] can take a symbol (LH #48)
|
511
|
+
* vasprintf for windows updated. Thanks Geoffroy Couprie!
|
512
|
+
* Nokogiri::XML::Node#[]= should not encode entities (LH #55)
|
513
|
+
* Namespaces should be copied to reparented nodes (LH #56)
|
514
|
+
* Nokogiri uses encoding set on the string for default in Ruby 1.9
|
515
|
+
* Document#dup should create a new document of the same type (LH #59)
|
516
|
+
* Document should not have a parent method (LH #64)
|
517
|
+
|
518
|
+
=== 1.2.1 / 2009-02-23
|
519
|
+
|
520
|
+
* Bugfixes
|
521
|
+
|
522
|
+
* Fixed a CSS selector space bug
|
523
|
+
* Fixed Ruby 1.9 String Encoding (Thanks 角谷さん!)
|
524
|
+
|
525
|
+
=== 1.2.0 / 2009-02-22
|
526
|
+
|
527
|
+
* New features
|
528
|
+
|
529
|
+
* CSS search now supports CSS3 namespace queries
|
530
|
+
* Namespaces on the root node are automatically registered
|
531
|
+
* CSS queries use the default namespace
|
532
|
+
* Nokogiri::XML::Document#encoding get encoding used for this document
|
533
|
+
* Nokogiri::XML::Document#url get the document url
|
534
|
+
* Nokogiri::XML::Node#add_namespace add a namespace to the node LH#38
|
535
|
+
* Nokogiri::XML::Node#each iterate over attribute name, value pairs
|
536
|
+
* Nokogiri::XML::Node#keys get all attribute names
|
537
|
+
* Nokogiri::XML::Node#line get the line number for a node (Thanks Dirkjan Bussink!)
|
538
|
+
* Nokogiri::XML::Node#serialize now takes an optional encoding parameter
|
539
|
+
* Nokogiri::XML::Node#to_html, to_xml, and to_xhtml take an optional encoding
|
540
|
+
* Nokogiri::XML::Node#to_str
|
541
|
+
* Nokogiri::XML::Node#to_xhtml to produce XHTML documents
|
542
|
+
* Nokogiri::XML::Node#values get all attribute values
|
543
|
+
* Nokogiri::XML::Node#write_to writes the node to an IO object with optional encoding
|
544
|
+
* Nokogiri::XML::ProcessingInstrunction.new
|
545
|
+
* Nokogiri::XML::SAX::PushParser for all your push parsing needs.
|
546
|
+
|
547
|
+
* Bugfixes
|
548
|
+
|
549
|
+
* Fixed Nokogiri::XML::Document#dup
|
550
|
+
* Fixed header detection. Thanks rubikitch!
|
551
|
+
* Fixed a problem where invalid CSS would cause the parser to hang
|
552
|
+
|
553
|
+
* Deprecations
|
554
|
+
|
555
|
+
* Nokogiri::XML::Node.new_from_str will be deprecated in 1.3.0
|
556
|
+
|
557
|
+
* API Changes
|
558
|
+
|
559
|
+
* Nokogiri::HTML.fragment now returns an XML::DocumentFragment (LH #32)
|
560
|
+
|
561
|
+
=== 1.1.1
|
562
|
+
|
563
|
+
* New features
|
564
|
+
|
565
|
+
* Added XML::Node#elem?
|
566
|
+
* Added XML::Node#attribute_nodes
|
567
|
+
* Added XML::Attr
|
568
|
+
* XML::Node#delete added.
|
569
|
+
* XML::NodeSet#inner_html added.
|
570
|
+
|
571
|
+
* Bugfixes
|
572
|
+
|
573
|
+
* Not including an HTML entity for \r for HTML nodes.
|
574
|
+
* Removed CSS::SelectorHandler and XML::XPathHandler
|
575
|
+
* XML::Node#attributes returns an Attr node for the value.
|
576
|
+
* XML::NodeSet implements to_xml
|
577
|
+
|
578
|
+
=== 1.1.0
|
579
|
+
|
580
|
+
* New Features
|
581
|
+
|
582
|
+
* Custom XPath functions are now supported. See Nokogiri::XML::Node#xpath
|
583
|
+
* Custom CSS pseudo classes are now supported. See Nokogiri::XML::Node#css
|
584
|
+
* Nokogiri::XML::Node#<< will add a child to the current node
|
585
|
+
|
586
|
+
* Bugfixes
|
587
|
+
|
588
|
+
* Mutex lock on CSS cache access
|
589
|
+
* Fixed build problems with GCC 3.3.5
|
590
|
+
* XML::Node#to_xml now takes an indentation argument
|
591
|
+
* XML::Node#dup takes an optional depth argument
|
592
|
+
* XML::Node#add_previous_sibling returns new sibling node.
|
593
|
+
|
594
|
+
=== 1.0.7
|
595
|
+
|
596
|
+
* Bugfixes
|
597
|
+
|
598
|
+
* Fixed memory leak when using Dike
|
599
|
+
* SAX parser now parses IO streams
|
600
|
+
* Comment nodes have their own class
|
601
|
+
* Nokogiri() should delegate to Nokogiri.parse()
|
602
|
+
* Prepending rather than appending to ENV['PATH'] on windows
|
603
|
+
* Fixed a bug in complex CSS negation selectors
|
604
|
+
|
605
|
+
=== 1.0.6
|
606
|
+
|
607
|
+
* 5 Bugfixes
|
608
|
+
|
609
|
+
* XPath Parser raises a SyntaxError on parse failure
|
610
|
+
* CSS Parser raises a SyntaxError on parse failure
|
611
|
+
* filter() and not() hpricot compatibility added
|
612
|
+
* CSS searches via Node#search are now always relative
|
613
|
+
* CSS to XPath conversion is now cached
|
614
|
+
|
615
|
+
=== 1.0.5
|
616
|
+
|
617
|
+
* Bugfixes
|
618
|
+
|
619
|
+
* Added mailing list and ticket tracking information to the README.txt
|
620
|
+
* Sets ENV['PATH'] on windows if it doesn't exist
|
621
|
+
* Caching results of NodeSet#[] on Document
|
622
|
+
|
623
|
+
=== 1.0.4
|
624
|
+
|
625
|
+
* Bugfixes
|
626
|
+
|
627
|
+
* Changed memory management from weak refs to document refs
|
628
|
+
* Plugged some memory leaks
|
629
|
+
* Builder blocks can call methods from surrounding contexts
|
630
|
+
|
631
|
+
=== 1.0.3
|
632
|
+
|
633
|
+
* 5 Bugfixes
|
634
|
+
|
635
|
+
* NodeSet now implements to_ary
|
636
|
+
* XML::Document should not implement parent
|
637
|
+
* More GC Bugs fixed. (Mike is AWESOME!)
|
638
|
+
* Removed RARRAY_LEN for 1.8.5 compatibility. Thanks Shane Hanna.
|
639
|
+
* inner_html fixed. (Thanks Yehuda!)
|
640
|
+
|
641
|
+
=== 1.0.2
|
642
|
+
|
643
|
+
* 1 Bugfix
|
644
|
+
|
645
|
+
* extconf.rb should not check for frex and racc
|
646
|
+
|
647
|
+
=== 1.0.1
|
648
|
+
|
649
|
+
* 1 Bugfix
|
650
|
+
|
651
|
+
* Made sure extconf.rb searched libdir and prefix so that ports libxml/ruby
|
652
|
+
will link properly. Thanks lucsky!
|
653
|
+
|
654
|
+
=== 1.0.0 / 2008-07-13
|
655
|
+
|
656
|
+
* 1 major enhancement
|
657
|
+
|
658
|
+
* Birthday!
|
659
|
+
|