nokogiri 1.5.0.beta.2 → 1.5.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of nokogiri might be problematic. Click here for more details.

Files changed (107) hide show
  1. data/CHANGELOG.ja.rdoc +63 -0
  2. data/CHANGELOG.rdoc +44 -1
  3. data/Manifest.txt +3 -3
  4. data/README.ja.rdoc +4 -4
  5. data/README.rdoc +4 -4
  6. data/Rakefile +3 -0
  7. data/bin/nokogiri +6 -1
  8. data/ext/java/nokogiri/EncodingHandler.java +32 -0
  9. data/ext/java/nokogiri/HtmlDocument.java +36 -0
  10. data/ext/java/nokogiri/HtmlElementDescription.java +34 -0
  11. data/ext/java/nokogiri/HtmlEntityLookup.java +34 -0
  12. data/ext/java/nokogiri/HtmlSaxParserContext.java +41 -3
  13. data/ext/java/nokogiri/NokogiriService.java +109 -13
  14. data/ext/java/nokogiri/XmlAttr.java +40 -4
  15. data/ext/java/nokogiri/XmlAttributeDecl.java +32 -0
  16. data/ext/java/nokogiri/XmlCdata.java +41 -2
  17. data/ext/java/nokogiri/XmlComment.java +38 -1
  18. data/ext/java/nokogiri/XmlDocument.java +56 -11
  19. data/ext/java/nokogiri/XmlDocumentFragment.java +39 -30
  20. data/ext/java/nokogiri/XmlDtd.java +37 -0
  21. data/ext/java/nokogiri/XmlElement.java +51 -2
  22. data/ext/java/nokogiri/XmlElementContent.java +32 -0
  23. data/ext/java/nokogiri/XmlElementDecl.java +32 -0
  24. data/ext/java/nokogiri/XmlEntityDecl.java +32 -0
  25. data/ext/java/nokogiri/XmlEntityReference.java +35 -2
  26. data/ext/java/nokogiri/XmlNamespace.java +55 -5
  27. data/ext/java/nokogiri/XmlNode.java +129 -136
  28. data/ext/java/nokogiri/XmlNodeSet.java +36 -0
  29. data/ext/java/nokogiri/XmlProcessingInstruction.java +34 -1
  30. data/ext/java/nokogiri/XmlReader.java +36 -0
  31. data/ext/java/nokogiri/XmlRelaxng.java +34 -1
  32. data/ext/java/nokogiri/XmlSaxParserContext.java +52 -7
  33. data/ext/java/nokogiri/XmlSaxPushParser.java +36 -0
  34. data/ext/java/nokogiri/XmlSchema.java +34 -1
  35. data/ext/java/nokogiri/XmlSyntaxError.java +48 -18
  36. data/ext/java/nokogiri/XmlText.java +45 -6
  37. data/ext/java/nokogiri/XmlXpathContext.java +45 -0
  38. data/ext/java/nokogiri/XsltStylesheet.java +58 -3
  39. data/ext/java/nokogiri/internals/HtmlDomParserContext.java +50 -26
  40. data/ext/java/nokogiri/internals/NokogiriDocumentCache.java +35 -1
  41. data/ext/java/nokogiri/internals/NokogiriErrorHandler.java +51 -13
  42. data/ext/java/nokogiri/internals/NokogiriHandler.java +70 -21
  43. data/ext/java/nokogiri/internals/NokogiriHelpers.java +95 -38
  44. data/ext/java/nokogiri/internals/NokogiriNamespaceCache.java +37 -3
  45. data/ext/java/nokogiri/internals/NokogiriNamespaceContext.java +39 -1
  46. data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler.java +43 -7
  47. data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler4NekoHtml.java +77 -10
  48. data/ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java +49 -20
  49. data/ext/java/nokogiri/internals/NokogiriXPathFunction.java +34 -2
  50. data/ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java +34 -1
  51. data/ext/java/nokogiri/internals/ParserContext.java +32 -0
  52. data/ext/java/nokogiri/internals/PushInputStream.java +33 -3
  53. data/ext/java/nokogiri/internals/ReaderNode.java +50 -8
  54. data/ext/java/nokogiri/internals/SaveContext.java +35 -2
  55. data/ext/java/nokogiri/internals/SchemaErrorHandler.java +34 -1
  56. data/ext/java/nokogiri/internals/XmlDeclHandler.java +32 -0
  57. data/ext/java/nokogiri/internals/XmlDomParser.java +32 -0
  58. data/ext/java/nokogiri/internals/XmlDomParserContext.java +43 -11
  59. data/ext/java/nokogiri/internals/XmlSaxParser.java +32 -0
  60. data/ext/java/nokogiri/internals/XsltExtensionFunction.java +72 -0
  61. data/ext/nokogiri/depend +358 -32
  62. data/ext/nokogiri/extconf.rb +1 -3
  63. data/ext/nokogiri/nokogiri.c +2 -0
  64. data/ext/nokogiri/nokogiri.h +7 -0
  65. data/ext/nokogiri/xml_dtd.c +2 -2
  66. data/ext/nokogiri/xml_io.c +2 -2
  67. data/ext/nokogiri/xml_node.c +31 -6
  68. data/ext/nokogiri/xml_node_set.c +1 -1
  69. data/ext/nokogiri/xml_sax_parser.c +1 -1
  70. data/ext/nokogiri/xml_sax_parser_context.c +40 -0
  71. data/ext/nokogiri/xml_xpath_context.c +33 -2
  72. data/ext/nokogiri/xslt_stylesheet.c +122 -6
  73. data/lib/nokogiri.rb +12 -5
  74. data/lib/nokogiri/css/generated_tokenizer.rb +1 -2
  75. data/lib/nokogiri/css/xpath_visitor.rb +15 -7
  76. data/lib/nokogiri/decorators/slop.rb +5 -3
  77. data/lib/nokogiri/html/document.rb +3 -3
  78. data/lib/nokogiri/html/document_fragment.rb +19 -17
  79. data/lib/nokogiri/version.rb +1 -1
  80. data/lib/nokogiri/xml/document.rb +26 -1
  81. data/lib/nokogiri/xml/document_fragment.rb +2 -2
  82. data/lib/nokogiri/xml/dtd.rb +11 -0
  83. data/lib/nokogiri/xml/node.rb +156 -45
  84. data/lib/nokogiri/xml/node_set.rb +2 -2
  85. data/lib/nokogiri/xml/reader.rb +36 -0
  86. data/lib/nokogiri/xml/sax/document.rb +4 -2
  87. data/lib/nokogiri/xslt.rb +9 -5
  88. data/lib/nokogiri/xslt/stylesheet.rb +1 -1
  89. data/tasks/cross_compile.rb +27 -8
  90. data/test/css/test_parser.rb +29 -18
  91. data/test/decorators/test_slop.rb +16 -0
  92. data/test/html/test_document_fragment.rb +46 -3
  93. data/test/html/test_node.rb +9 -0
  94. data/test/xml/sax/test_parser.rb +11 -3
  95. data/test/xml/sax/test_parser_context.rb +50 -0
  96. data/test/xml/sax/test_push_parser.rb +18 -1
  97. data/test/xml/test_document_fragment.rb +15 -8
  98. data/test/xml/test_dtd.rb +15 -0
  99. data/test/xml/test_node.rb +31 -2
  100. data/test/xml/test_node_reparenting.rb +59 -31
  101. data/test/xml/test_node_set.rb +13 -0
  102. data/test/xml/test_xpath.rb +32 -0
  103. data/test/xslt/test_custom_functions.rb +94 -0
  104. metadata +83 -81
  105. data/lib/nokogiri/nokogiri.jar +0 -0
  106. data/spec/helper.rb +0 -3
  107. data/spec/xml/reader_spec.rb +0 -307
@@ -1,3 +1,58 @@
1
+ == 1.5.0 beta3 / 2010/12/02
2
+
3
+ * Notes
4
+
5
+ * JRuby performance tuning
6
+ * See changelog from 1.4.4
7
+
8
+ * Bugfixes
9
+
10
+ * Node#inner_text no longer returns nil. (JRuby) #264
11
+
12
+ == 1.5.0 beta2 / 2010/07/30
13
+
14
+ * Notes
15
+
16
+ * See changelog from 1.4.3
17
+
18
+ == 1.5.0 beta1 / 2010/05/22
19
+
20
+ * Notes
21
+
22
+ * JRuby support is provided by a new pure-java backend.
23
+
24
+ * Deprecations
25
+
26
+ * Ruby 1.8.6 is deprecated. Nokogiri will install, but official support is ended.
27
+ * LibXML 2.6.16 and earlier are deprecated. Nokogiri will refuse to install.
28
+ * FFI support is removed.
29
+
30
+ === 1.4.4 2010年11月15日
31
+
32
+ * 新機能
33
+
34
+ * XML::Node#children=ノード内のhtml reparented node(s)を返す事によって親の変更ができる。
35
+ * XSLT はfunction extensionsをサポート。#336
36
+ * XPath はパラメーター置換を結合する. #329
37
+ * XML::Reader node typeを一定化させる. #369
38
+ * SAX Parser context は行とコラムの両方の情報を提供する
39
+
40
+ * バグの修正
41
+
42
+ * XML::DTD#attributes は属性が存在しない際、nilの代わりに空のハッシュを返す
43
+ * XML::DTD#{keys,each} は文字通りに機能するようになった #324
44
+ * {XML,HTML}::DocumentFragment.{new,parse} 行送りと末尾の空白を除去しなくなった #319
45
+ * XML::Node#{add_child,add_previous_sibling,add_next_sibling,replace} は文字列を見送る際にNodeSetを返す
46
+ * 不確定タグはフレグメント内で要、不要に関係なく解析される #315
47
+ * XML::Node#{replace,add_previous_sibling,add_next_sibling} libxmlのtext node merging に関わるedge caseを修正する #308
48
+ * xpath handler argument が整列している最中に起こるGCでのsegfaultを修正 #345
49
+ * Slop decoratorが既に確定された定義と共に正常に機能させるための便宜上の処置 #330
50
+ * 子ノードが複製される際に起こるメモリ漏れの修正 #353
51
+ * an+b記号の無使用時に発生するoff-by-oneバグとnth-last-{child,of-type} CSSセレクターの修正 #354
52
+ * 非名前空間属性がSAX::Document#start_elementへパスできるように修正 #356
53
+ * libxml2 in-contextの解析バグの処置  #362
54
+ * フレグメント内のノードの中にあるNodeSet#wrapの修正 #331
55
+
1
56
  === 1.4.3 2010年7月28日
2
57
 
3
58
  * 新しい機能
@@ -5,6 +60,7 @@
5
60
  * XML::Reader#empty_element? - 子の無いエレメントにtrueを返す  #262
6
61
  * Node#remove_namespaces! - 1.4.2では 名前空間のみを取り除いていたが、
7
62
  1.4.3 では名前空間及び、名前空間宣言も取り除く #294
63
+ * NodeSet#{at_xpath,at_css,>} はNodeの同名メソッドと同様の動作
8
64
 
9
65
  * バグの修正
10
66
 
@@ -17,6 +73,8 @@
17
73
  * xmlFirstElementChild et al.による libxml2バージョンでの不適合性を修正 #303
18
74
  * XML::Attr#add_namespace (!)文字通りの機能実現!  #252
19
75
  * HTML::DocumentFragment が文字列に存在するエンコードを使用 #305
76
+ * CSS3の間接セレクタ"E ~ F G"がXPathの"//F//G[preceding-sibling::E]"へと
77
+ 誤変換されてしまうのを修正
20
78
 
21
79
  === 1.4.2 2010年5月22日
22
80
 
@@ -38,6 +96,10 @@
38
96
  * Nokogiri::XML::Node#first_element_child は一番最初のELEMENT子ノードを返す
39
97
  * Nokogiri::XML::Node#last_element_child は最後のELEMENT子ノードを返す
40
98
  * Nokogiri::XML::Node#elements は全てのELEMENT子ノードを返す
99
+ * Nokogiri::XML::Node#add_child, #add_previous_sibling, #before,
100
+ #add_next_sibling, #after, #inner_html, #swap, #replaceはNode,
101
+ DocumentFragment, NodeSetおよびマークアップ文字列を受け付ける
102
+ * Node#fragment? はノードがDocumentFragmentかどうかを示す
41
103
 
42
104
  * バグの修正
43
105
 
@@ -56,6 +118,7 @@
56
118
  GH #204
57
119
  * XML::DocumentFragment はML::Node#parse を使用して子を限定する
58
120
  * XML Reader内のメモリリーク修正  sdorさん、ありがとう! GH#244
121
+ * Node#replaceはRDocの通り新しい子ノードを返す(selfを返していた)
59
122
 
60
123
  * ノート
61
124
 
@@ -1,3 +1,20 @@
1
+ == 1.5.0 beta3 / 2010/12/02
2
+
3
+ * Notes
4
+
5
+ * JRuby performance tuning
6
+ * See changelog from 1.4.4
7
+
8
+ * Bugfixes
9
+
10
+ * Node#inner_text no longer returns nil. (JRuby) #264
11
+
12
+ == 1.5.0 beta2 / 2010/07/30
13
+
14
+ * Notes
15
+
16
+ * See changelog from 1.4.3
17
+
1
18
  == 1.5.0 beta1 / 2010/05/22
2
19
 
3
20
  * Notes
@@ -10,6 +27,32 @@
10
27
  * LibXML 2.6.16 and earlier are deprecated. Nokogiri will refuse to install.
11
28
  * FFI support is removed.
12
29
 
30
+ === 1.4.4 / 2010-11-15
31
+
32
+ * New Features
33
+
34
+ * XML::Node#children= sets the node's inner html (much like #inner_html=), but returns the reparent node(s).
35
+ * XSLT supports function extensions. #336
36
+ * XPath bind parameter substitution. #329
37
+ * XML::Reader node type constants. #369
38
+ * SAX Parser context provides line and column information
39
+
40
+ * Bugfixes
41
+
42
+ * XML::DTD#attributes returns an empty hash instead of nil when there are no attributes.
43
+ * XML::DTD#{keys,each} now work as expected. #324
44
+ * {XML,HTML}::DocumentFragment.{new,parse} no longer strip leading and trailing whitespace. #319
45
+ * XML::Node#{add_child,add_previous_sibling,add_next_sibling,replace} return a NodeSet when passed a string.
46
+ * Unclosed tags parsed more robustly in fragments. #315
47
+ * XML::Node#{replace,add_previous_sibling,add_next_sibling} edge cases fixed related to libxml's text node merging. #308
48
+ * Fixed a segfault when GC occurs during xpath handler argument marshalling. #345
49
+ * Added hack to Slop decorator to work with previously defined methods. #330
50
+ * Fix a memory leak when duplicating child nodes. #353
51
+ * Fixed off-by-one bug with nth-last-{child,of-type} CSS selectors when NOT using an+b notation. #354
52
+ * Fixed passing of non-namespace attributes to SAX::Document#start_element. #356
53
+ * Workaround for libxml2 in-context parsing bug. #362
54
+ * Fixed NodeSet#wrap on nodes within a fragment. #331
55
+
13
56
  === 1.4.3 / 2010/07/28
14
57
 
15
58
  * New Features
@@ -30,7 +73,7 @@
30
73
  * XML::Attr#add_namespace now works as expected. #252
31
74
  * HTML::DocumentFragment uses the string's encoding. #305
32
75
  * Fix the CSS3 selector translation rule for the general sibling combinator
33
- (a.k.a. preceding selector) that incorrectly converted "E + F G" to
76
+ (a.k.a. preceding selector) that incorrectly converted "E ~ F G" to
34
77
  "//F//G[preceding-sibling::E]".
35
78
 
36
79
  === 1.4.2 / 2010/05/22
@@ -59,6 +59,7 @@ ext/java/nokogiri/internals/XmlDeclHandler.java
59
59
  ext/java/nokogiri/internals/XmlDomParser.java
60
60
  ext/java/nokogiri/internals/XmlDomParserContext.java
61
61
  ext/java/nokogiri/internals/XmlSaxParser.java
62
+ ext/java/nokogiri/internals/XsltExtensionFunction.java
62
63
  ext/nokogiri/depend
63
64
  ext/nokogiri/extconf.rb
64
65
  ext/nokogiri/html_document.c
@@ -152,7 +153,6 @@ lib/nokogiri/html/element_description_defaults.rb
152
153
  lib/nokogiri/html/entity_lookup.rb
153
154
  lib/nokogiri/html/sax/parser.rb
154
155
  lib/nokogiri/html/sax/parser_context.rb
155
- lib/nokogiri/nokogiri.jar
156
156
  lib/nokogiri/syntax_error.rb
157
157
  lib/nokogiri/version.rb
158
158
  lib/nokogiri/xml.rb
@@ -194,14 +194,13 @@ lib/nokogiri/xslt.rb
194
194
  lib/nokogiri/xslt/stylesheet.rb
195
195
  lib/xercesImpl.jar
196
196
  lib/xsd/xmlparser/nokogiri.rb
197
- spec/helper.rb
198
- spec/xml/reader_spec.rb
199
197
  tasks/cross_compile.rb
200
198
  tasks/test.rb
201
199
  test/css/test_nthiness.rb
202
200
  test/css/test_parser.rb
203
201
  test/css/test_tokenizer.rb
204
202
  test/css/test_xpath_visitor.rb
203
+ test/decorators/test_slop.rb
205
204
  test/files/2ch.html
206
205
  test/files/address_book.rlx
207
206
  test/files/address_book.xml
@@ -273,3 +272,4 @@ test/xml/test_syntax_error.rb
273
272
  test/xml/test_text.rb
274
273
  test/xml/test_unparented_node.rb
275
274
  test/xml/test_xpath.rb
275
+ test/xslt/test_custom_functions.rb
@@ -22,10 +22,6 @@ XMLは暴力に似ている - XMLが君の問題を解決しないとしたら
22
22
 
23
23
  XML/HTMLの高速な解析と探索検索、ならびにCSS3セレクタとXPathをサポートしています。
24
24
 
25
- スピードテスト:
26
-
27
- * http://gist.github.com/24605
28
-
29
25
  == SUPPORT:
30
26
 
31
27
  日本語でNokogiriの
@@ -85,6 +81,10 @@ Copyright (c) 2008 - 2010:
85
81
 
86
82
  * {Aaron Patterson}[http://tenderlovemaking.com]
87
83
  * {Mike Dalessio}[http://mike.daless.io]
84
+ * {Charles Nutter}[http://blog.headius.com]
85
+ * {Sergio Arbeo}[http://www.serabe.com]
86
+ * {Patrick Mahoney}[http://polycrystal.org]
87
+ * {Yoko Harada}[http://yokolet.blogspot.com]
88
88
 
89
89
  Permission is hereby granted, free of charge, to any person obtaining
90
90
  a copy of this software and associated documentation files (the
@@ -23,10 +23,6 @@ enough of it.
23
23
  Nokogiri parses and searches XML/HTML very quickly, and also has
24
24
  correctly implemented CSS3 selector support as well as XPath support.
25
25
 
26
- Here is a speed test:
27
-
28
- * http://gist.github.com/24605
29
-
30
26
  == SUPPORT:
31
27
 
32
28
  The Nokogiri {mailing list}[http://groups.google.com/group/nokogiri-talk]
@@ -129,6 +125,10 @@ Copyright (c) 2008 - 2010:
129
125
 
130
126
  * {Aaron Patterson}[http://tenderlovemaking.com]
131
127
  * {Mike Dalessio}[http://mike.daless.io]
128
+ * {Charles Nutter}[http://blog.headius.com]
129
+ * {Sergio Arbeo}[http://www.serabe.com]
130
+ * {Patrick Mahoney}[http://polycrystal.org]
131
+ * {Yoko Harada}[http://yokolet.blogspot.com]
132
132
 
133
133
  Permission is hereby granted, free of charge, to any person obtaining
134
134
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -17,6 +17,7 @@ JRUBY_HOME = Config::CONFIG['prefix']
17
17
 
18
18
  # Make sure hoe-debugging is installed
19
19
  Hoe.plugin :debugging
20
+ Hoe.plugin :git
20
21
 
21
22
  HOE = Hoe.spec 'nokogiri' do
22
23
  developer('Aaron Patterson', 'aaronp@rubyforge.org')
@@ -70,6 +71,7 @@ unless java
70
71
  ext.config_options << ENV['EXTOPTS']
71
72
  ext.cross_compile = true
72
73
  ext.cross_platform = 'i386-mingw32'
74
+ # ext.cross_platform = 'i386-mswin32'
73
75
  ext.cross_config_options <<
74
76
  "--with-xml2-include=#{File.join(CROSS_DIR, 'include', 'libxml2')}"
75
77
  ext.cross_config_options <<
@@ -98,6 +100,7 @@ namespace :java do
98
100
 
99
101
  desc "Build a gem targetted for JRuby"
100
102
  task :gem => ['java:spec', GENERATED_PARSER, GENERATED_TOKENIZER, :build] do
103
+ raise "ERROR: please run this task under jruby" unless java
101
104
  system "gem build nokogiri.gemspec"
102
105
  FileUtils.mkdir_p "pkg"
103
106
  FileUtils.mv Dir.glob("nokogiri*-java.gem"), "pkg"
@@ -7,6 +7,7 @@ require 'rubygems'
7
7
  require 'nokogiri'
8
8
 
9
9
  parse_class = Nokogiri
10
+ encoding = nil
10
11
 
11
12
  opts = OptionParser.new do |opts|
12
13
  opts.banner = "Nokogiri: an HTML, XML, SAX, and Reader parser"
@@ -22,6 +23,10 @@ opts = OptionParser.new do |opts|
22
23
  parse_class = {:xml => Nokogiri::XML, :html => Nokogiri::HTML}[v]
23
24
  end
24
25
 
26
+ opts.on("-E", "--encoding encoding", "Read as encoding (default #{encoding})") do |v|
27
+ encoding = v
28
+ end
29
+
25
30
  opts.on_tail("-?", "--help", "Show this message") do
26
31
  puts opts
27
32
  exit
@@ -42,7 +47,7 @@ if uri.to_s.strip.empty?
42
47
  exit 1
43
48
  end
44
49
 
45
- @doc = parse_class.parse(open(uri).read)
50
+ @doc = parse_class.parse(open(uri).read, nil, encoding)
46
51
 
47
52
  puts "Your document is stored in @doc..."
48
53
  IRB.start
@@ -1,3 +1,35 @@
1
+ /**
2
+ * (The MIT License)
3
+ *
4
+ * Copyright (c) 2008 - 2010:
5
+ *
6
+ * * {Aaron Patterson}[http://tenderlovemaking.com]
7
+ * * {Mike Dalessio}[http://mike.daless.io]
8
+ * * {Charles Nutter}[http://blog.headius.com]
9
+ * * {Sergio Arbeo}[http://www.serabe.com]
10
+ * * {Patrick Mahoney}[http://polycrystal.org]
11
+ * * {Yoko Harada}[http://yokolet.blogspot.com]
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * 'Software'), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+
1
33
  package nokogiri;
2
34
 
3
35
  import static nokogiri.internals.NokogiriHelpers.getNokogiriClass;
@@ -1,3 +1,35 @@
1
+ /**
2
+ * (The MIT License)
3
+ *
4
+ * Copyright (c) 2008 - 2010:
5
+ *
6
+ * * {Aaron Patterson}[http://tenderlovemaking.com]
7
+ * * {Mike Dalessio}[http://mike.daless.io]
8
+ * * {Charles Nutter}[http://blog.headius.com]
9
+ * * {Sergio Arbeo}[http://www.serabe.com]
10
+ * * {Patrick Mahoney}[http://polycrystal.org]
11
+ * * {Yoko Harada}[http://yokolet.blogspot.com]
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * 'Software'), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+
1
33
  package nokogiri;
2
34
 
3
35
  import nokogiri.internals.HtmlDomParserContext;
@@ -14,6 +46,10 @@ import org.jruby.runtime.builtin.IRubyObject;
14
46
  import org.w3c.dom.Document;
15
47
  import org.w3c.dom.DocumentType;
16
48
 
49
+ /**
50
+ * Class for Nokogiri::HTML::Document.
51
+ *
52
+ */
17
53
  @JRubyClass(name="Nokogiri::HTML::Document", parent="Nokogiri::XML::Document")
18
54
  public class HtmlDocument extends XmlDocument {
19
55
 
@@ -1,3 +1,35 @@
1
+ /**
2
+ * (The MIT License)
3
+ *
4
+ * Copyright (c) 2008 - 2010:
5
+ *
6
+ * * {Aaron Patterson}[http://tenderlovemaking.com]
7
+ * * {Mike Dalessio}[http://mike.daless.io]
8
+ * * {Charles Nutter}[http://blog.headius.com]
9
+ * * {Sergio Arbeo}[http://www.serabe.com]
10
+ * * {Patrick Mahoney}[http://polycrystal.org]
11
+ * * {Yoko Harada}[http://yokolet.blogspot.com]
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * 'Software'), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+
1
33
  package nokogiri;
2
34
 
3
35
  import java.util.ArrayList;
@@ -16,6 +48,8 @@ import org.jruby.runtime.ThreadContext;
16
48
  import org.jruby.runtime.builtin.IRubyObject;
17
49
 
18
50
  /**
51
+ * Class for Nokogiri::HTML::ElementDescription.
52
+ *
19
53
  * @author Patrick Mahoney <pat@polycrystal.org>
20
54
  */
21
55
  @JRubyClass(name="Nokogiri::HTML::ElementDescription")
@@ -1,3 +1,35 @@
1
+ /**
2
+ * (The MIT License)
3
+ *
4
+ * Copyright (c) 2008 - 2010:
5
+ *
6
+ * * {Aaron Patterson}[http://tenderlovemaking.com]
7
+ * * {Mike Dalessio}[http://mike.daless.io]
8
+ * * {Charles Nutter}[http://blog.headius.com]
9
+ * * {Sergio Arbeo}[http://www.serabe.com]
10
+ * * {Patrick Mahoney}[http://polycrystal.org]
11
+ * * {Yoko Harada}[http://yokolet.blogspot.com]
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * 'Software'), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+
1
33
  package nokogiri;
2
34
 
3
35
  import static org.jruby.javasupport.util.RuntimeHelpers.invoke;
@@ -12,6 +44,8 @@ import org.jruby.runtime.ThreadContext;
12
44
  import org.jruby.runtime.builtin.IRubyObject;
13
45
 
14
46
  /**
47
+ * Class for Nokogiri::HTML::EntityLookup.
48
+ *
15
49
  * @author Patrick Mahoney <pat@polycrystal.org>
16
50
  */
17
51
  @JRubyClass(name="Nokogiri::HTML::EntityLookup")