issue_owner_repo
listlengths
2
2
issue_body
stringlengths
0
262k
⌀
issue_title
stringlengths
1
1.02k
issue_comments_url
stringlengths
53
116
issue_comments_count
int64
0
2.49k
issue_created_at
stringdate
1999-03-17 02:06:42
2025-06-23 11:41:49
issue_updated_at
stringdate
2000-02-10 06:43:57
2025-06-23 11:43:00
issue_html_url
stringlengths
34
97
issue_github_id
int64
132
3.17B
issue_number
int64
1
215k
[ "sparklemotion", "nokogiri" ]
If a specific Nokogiri::HTML::Document extends a module M, a clone of that document won't. I expected otherwise, since in Ruby all builtin classes, as well as user created classes will copy the singleton_class when cloning. Thakns! require 'nokogiri' require 'open-uri' module M; def foo; end end doc = Nokogiri::HT...
clone & singleton classes
https://api.github.com/repos/sparklemotion/nokogiri/issues/316/comments
6
2010-07-26T20:34:31Z
2024-06-24T12:57:49Z
https://github.com/sparklemotion/nokogiri/issues/316
260,134
316
[ "sparklemotion", "nokogiri" ]
In Nokogiri 1.4.2, creating a document fragment from a string with an unclosed `<script>` element results in the script element being closed, but `</body></html>` is also appended to the CDATA inside the script element. Here's a simple repro case in IRB: ``` >> Nokogiri::HTML.fragment("foo <script>bar") => #<Nokogiri...
Fragment with unclosed script element has "</body></html>" appended as CDATA
https://api.github.com/repos/sparklemotion/nokogiri/issues/315/comments
3
2010-07-26T02:47:44Z
2010-08-23T03:18:52Z
https://github.com/sparklemotion/nokogiri/issues/315
259,378
315
[ "sparklemotion", "nokogiri" ]
...dies with "undefined method `children' for nil:NilClass" when trying to add malformed html (a tag with multiple classes) I think it should throw a more relevant exception.
inner_html fails confusingly with malformed html
https://api.github.com/repos/sparklemotion/nokogiri/issues/313/comments
9
2010-07-22T08:07:39Z
2010-08-09T02:56:38Z
https://github.com/sparklemotion/nokogiri/issues/313
256,281
313
[ "sparklemotion", "nokogiri" ]
Nokogiri 1.5.0 beta 1 is busted: ``` $ ruby --version ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.4.0] $ sudo gem install nokogiri --pre Building native extensions. This could take a while... Successfully installed nokogiri-1.5.0.beta.1 1 gem installed Installing ri documentation for nokogiri-1.5.0.beta...
Nokogiri 1.5.0 beta 1 loading bug and solution
https://api.github.com/repos/sparklemotion/nokogiri/issues/312/comments
4
2010-07-22T02:59:23Z
2010-07-29T12:43:37Z
https://github.com/sparklemotion/nokogiri/issues/312
256,156
312
[ "sparklemotion", "nokogiri" ]
Run the following gist: https://gist.github.com/f1ec33937642648a78cb Notice the `<![CDATA[ ]]>` tag that is created inside the `<style>` tag. This is bad because `CDATA` tags inside `<style>` tags require CSS comments around them or they have they cause the CSS to not be parsed by the browser. Info here about `CDATA...
Nokogiri::XML::NodeSet#to_xhtml adds invalid CDATA tags
https://api.github.com/repos/sparklemotion/nokogiri/issues/311/comments
6
2010-07-21T23:37:58Z
2020-10-12T13:25:23Z
https://github.com/sparklemotion/nokogiri/issues/311
255,945
311
[ "sparklemotion", "nokogiri" ]
from a nokogiri-talk thread started by Markus mman75@gmail.com, extconf.rb is using GCC compile options on un*x platforms. we should check that the compiler is gcc before doing this.
make extconf.rb friendly to non-gcc compilers.
https://api.github.com/repos/sparklemotion/nokogiri/issues/310/comments
1
2010-07-16T14:49:24Z
2010-07-16T14:53:11Z
https://github.com/sparklemotion/nokogiri/issues/310
250,690
310
[ "sparklemotion", "nokogiri" ]
Expected: ["//_[@a = '1']//_[@b = '2']"] Actual: ["//*[@a = '1' and @b = '2']"]
wrong result for Nokogiri::CSS.xpath_for("[a='1'] [b='2']")
https://api.github.com/repos/sparklemotion/nokogiri/issues/309/comments
2
2010-07-15T23:40:12Z
2014-12-31T07:14:00Z
https://github.com/sparklemotion/nokogiri/issues/309
249,948
309
[ "sparklemotion", "nokogiri" ]
Trying to replace a Text node with a Fragment (or anything else for that matter) results in some odd behaviour. ``` html = %q{blah http://google.com blah blah} new_html = %q{blah <a href="http://google.com">http://google.com</a> blah blah} frag = Nokogiri::HTML.fragment(html) text = frag.children.first p frag.to_html ...
Strange behaviour using replace
https://api.github.com/repos/sparklemotion/nokogiri/issues/308/comments
4
2010-07-15T05:34:25Z
2010-08-30T06:04:20Z
https://github.com/sparklemotion/nokogiri/issues/308
247,908
308
[ "sparklemotion", "nokogiri" ]
Trying to install nokogiri 1.4.2 with MacRuby's macgem. When I do: sudo macgem install nokogiri I get: Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/bin/macruby extco...
installing with macgem fails
https://api.github.com/repos/sparklemotion/nokogiri/issues/307/comments
3
2010-07-13T22:59:57Z
2010-07-26T19:14:57Z
https://github.com/sparklemotion/nokogiri/issues/307
246,687
307
[ "sparklemotion", "nokogiri" ]
To strip out unwanted html tags I use the following construct ``` element.inner_html = element.inner_text ``` this used to work perfectly fine with 1.3.3, but with 1.4.2 it sometimes produces "Â" right before a non-breaking whitespaces (nbsp). When inspecting the inner_text output for example for "<p>&nbsp;</p>" n...
nokogiris's inner_html converts &nbsp; to Â&nbsp;
https://api.github.com/repos/sparklemotion/nokogiri/issues/306/comments
7
2010-07-05T14:20:55Z
2013-04-23T17:52:56Z
https://github.com/sparklemotion/nokogiri/issues/306
239,244
306
[ "sparklemotion", "nokogiri" ]
Given the input: ``` # Windows: coding: IBM437 require 'nokogiri' s = '<p>François</p>' puts "[#{s.encoding}] #{s}" d = Nokogiri::HTML.parse(s) ds = d.css('p').to_xhtml puts "[#{ds.encoding}] #{ds}" f = Nokogiri::HTML.fragment(s) fs = f.to_xhtml puts "[#{fs.encoding}] #{fs}" ``` Output is: ``` C:\>ruby fragmentbug.r...
HTML.fragment() ignores encoding
https://api.github.com/repos/sparklemotion/nokogiri/issues/305/comments
7
2010-07-04T19:22:00Z
2010-07-06T18:44:22Z
https://github.com/sparklemotion/nokogiri/issues/305
238,482
305
[ "sparklemotion", "nokogiri" ]
Hi, I'm using nokogiri + Typhoeus (HTTP request), and discovered a strange behaviour : If I validate the xml files generated by Nokogiri, the first Typhoeus request enqueued is completely messed up. The params sent are replaced by binary data, especially at the beginning of the string sent. Sounds like a memory leak ...
Nokogiri::XML::Schema memory leak ?
https://api.github.com/repos/sparklemotion/nokogiri/issues/304/comments
7
2010-06-29T23:38:09Z
2010-06-30T15:20:27Z
https://github.com/sparklemotion/nokogiri/issues/304
234,583
304
[ "sparklemotion", "nokogiri" ]
Test suite run with test:multixml2 demonstrates.
xmlFirstElementChild doesn't exist in libxml < 2.7.3
https://api.github.com/repos/sparklemotion/nokogiri/issues/303/comments
4
2010-06-29T16:04:59Z
2010-07-28T08:12:08Z
https://github.com/sparklemotion/nokogiri/issues/303
234,018
303
[ "sparklemotion", "nokogiri" ]
Hi, We had previously been using Hpricot to find nodes within HTML documents and then return the css path of particular nodes. Hpricot would return the path in the short form i.e. it would return '#mainContent > p' instead of the full path, such as 'html > body > div > p' We have since moved to Nokogiri, which suppor...
Returned css_paths
https://api.github.com/repos/sparklemotion/nokogiri/issues/302/comments
1
2010-06-29T12:12:08Z
2010-06-29T14:20:54Z
https://github.com/sparklemotion/nokogiri/issues/302
233,838
302
[ "sparklemotion", "nokogiri" ]
reproduce encoding notes from README in a tutorial
reproduce encoding notes from README in a tutorial
https://api.github.com/repos/sparklemotion/nokogiri/issues/301/comments
1
2010-06-24T03:04:15Z
2010-07-01T13:02:36Z
https://github.com/sparklemotion/nokogiri/issues/301
229,980
301
[ "sparklemotion", "nokogiri" ]
Assuming you have an instance of Nokogiri::XML::Node ``` node.parse("<p>foo</p>") # returns Nokogiri::XML::Element node.parse("<p>&</p>") # returns [] ``` Do I have to escape '&'? Or is this truly a bug?
Nokogiri::XML::Node parse method returns empty array if string contains '&'
https://api.github.com/repos/sparklemotion/nokogiri/issues/300/comments
1
2010-06-23T07:25:37Z
2010-06-23T11:08:38Z
https://github.com/sparklemotion/nokogiri/issues/300
229,185
300
[ "sparklemotion", "nokogiri" ]
In JRuby, namespaces applied to attributes are lost when writing out: Nokogiri::XML('<foo xmlns:ns="ns" ns:foo="bar"/>').root.to_xml => "<foo foo=\"bar\" xmlns:ns=\"ns\"/>" The namespace is preserved in the internal structure, so it's a writer bug: Nokogiri::XML('<foo xmlns:ns="ns" ns:foo="bar"/>').child...
1.5 prerelease drops namespaces from attributes in JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/299/comments
8
2010-06-22T06:02:38Z
2010-11-20T02:30:16Z
https://github.com/sparklemotion/nokogiri/issues/299
228,116
299
[ "sparklemotion", "nokogiri" ]
This used to be a safe operation in 1.4.1. ``` % ruby -rubygems -e 'require "nokogiri"; Nokogiri::HTML.fragment("<hr>").inner_html = "<br>"' /usr/local/lib/ruby/gems/1.8/gems/nokogiri-1.5.0.beta.1/lib/nokogiri/xml/node.rb:444:in `in_context': no contextual parsing on unlinked nodes (RuntimeError) from /usr/local/l...
Setting inner_html of an HTML/XML fragment fails
https://api.github.com/repos/sparklemotion/nokogiri/issues/298/comments
1
2010-06-18T11:15:16Z
2010-06-18T21:43:40Z
https://github.com/sparklemotion/nokogiri/issues/298
225,551
298
[ "sparklemotion", "nokogiri" ]
when running tests: ``` /home/mike/code/nokogiri/test/helper.rb:10: version info: {"warnings"=>[], "nokogiri"=>"1.5.0.beta.1", "ruby"=>{"platform"=>"i686-pc-linux-gnu", "version"=>"1.8.7"}, "libxml"=>{"binding"=>"extension", "loaded"=>"2.7.5", "compiled"=>"2.7.5"}} Loaded suite (eval) Started rbx: vm/signal.cpp:45: vo...
1.4.2 seems to be broken on Rubinius
https://api.github.com/repos/sparklemotion/nokogiri/issues/297/comments
1
2010-06-17T17:29:56Z
2010-06-17T17:33:54Z
https://github.com/sparklemotion/nokogiri/issues/297
225,008
297
[ "sparklemotion", "nokogiri" ]
WARNING: Nokogiri was built against LibXML version 2.7.6, but has dynamically loaded 2.7.3 Using nokogiri-1.4.2, with rails 2.3.5 and LibXML 2.7.6.
Nokogiri was built against LibXML version "X", but has dynamically loaded "Y"
https://api.github.com/repos/sparklemotion/nokogiri/issues/296/comments
1
2010-06-17T14:55:15Z
2010-06-17T15:09:02Z
https://github.com/sparklemotion/nokogiri/issues/296
224,869
296
[ "sparklemotion", "nokogiri" ]
Calling xpath on a document appears to leak memory. Watch memory rise with the following script: ``` require 'rubygems' require 'nokogiri' xml = <<XML <?xml version="1.0"?> <tag></tag> XML loop do doc = Nokogiri::XML(xml) # The call to xpath causes memory leak x = doc.xpath(".//tag") end ``` I think I tracke...
memory leak in evaluate() of xml_xpath_context.c
https://api.github.com/repos/sparklemotion/nokogiri/issues/295/comments
4
2010-06-16T15:19:31Z
2010-06-24T04:16:01Z
https://github.com/sparklemotion/nokogiri/issues/295
223,996
295
[ "sparklemotion", "nokogiri" ]
``` #! /usr/bin/env ruby require "rubygems" require "nokogiri" xml_with_ns = <<-EOXML <?xml version="1.0" ?> <root xmlns="http://foo.example.com/"> <aaa> <bbb /> </aaa> </root> EOXML xml_without_ns = <<-EOXML <?xml version="1.0" ?> <root> <aaa> <bbb /> </aaa> </root> EOXML doc = Nokogiri::XML(xml_with_ns) doc.r...
Node#remove_namespaces! breaks Node#>
https://api.github.com/repos/sparklemotion/nokogiri/issues/294/comments
2
2010-06-15T21:11:53Z
2010-06-22T01:57:31Z
https://github.com/sparklemotion/nokogiri/issues/294
223,247
294
[ "sparklemotion", "nokogiri" ]
something like 1. provide a reproducible test case to the mailing list 2. discuss 3. if it's a bug, file a github issue
document how to report a bug, ask a question, etc.
https://api.github.com/repos/sparklemotion/nokogiri/issues/293/comments
1
2010-06-15T19:34:45Z
2010-07-01T13:02:02Z
https://github.com/sparklemotion/nokogiri/issues/293
223,158
293
[ "sparklemotion", "nokogiri" ]
for example, searches starting with "." versus "/" versus "//".
document basic XPath usage on nokogiri.org
https://api.github.com/repos/sparklemotion/nokogiri/issues/292/comments
1
2010-06-15T19:31:19Z
2010-07-08T15:17:54Z
https://github.com/sparklemotion/nokogiri/issues/292
223,155
292
[ "sparklemotion", "nokogiri" ]
1.5 prerelease on JRuby: ``` Nokogiri::XML('<a foo="bar"/>').to_xml => "<?xml version=\"1.0\"?>\n<a foo=\"bar\"/>\n" Nokogiri::XML('<a foo="bar"/>').to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::NO_DECLARATION) => "<afoo=\"bar\"/>\n" ``` In other words, all whitespace within tags -- including that separating...
1.5 prerelease NO_DECLARATION mangles attributes in tags
https://api.github.com/repos/sparklemotion/nokogiri/issues/291/comments
2
2010-06-15T06:57:55Z
2010-11-20T18:49:50Z
https://github.com/sparklemotion/nokogiri/issues/291
222,671
291
[ "sparklemotion", "nokogiri" ]
I have experienced an interesting issue when trying to run a script with ruby 1.9.1p243 that has been working before when running it with ruby 1.8.7 I am using Nokogiri to select certain `<p>` tags for me that have the following syntax. There are multiple of those tags in the input file. <P style="font-size: 11px"...
css selector working differently when running script with ruby 1.8 and ruby 1.9
https://api.github.com/repos/sparklemotion/nokogiri/issues/290/comments
3
2010-06-12T17:43:31Z
2010-06-28T10:51:19Z
https://github.com/sparklemotion/nokogiri/issues/290
220,174
290
[ "sparklemotion", "nokogiri" ]
Non-ASCII characters are corrupted when output: ``` Nokogiri::XML('<p>❤</p>').to_s => "<?xml version=\"1.0\"?>\n<p>d</p>\n" ``` And it doesn't let you specify the encoding: ``` Nokogiri::XML('<p>❤</p>', nil, 'UTF-8').to_s => "<?xml version=\"1.0\"?>\n<p>d</p>\n" Nokogiri::XML('<p>鋸</p>', nil, 'U...
1.5 prerelease corrupts non-ASCII characters in JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/289/comments
4
2010-06-11T06:34:08Z
2010-11-08T03:15:36Z
https://github.com/sparklemotion/nokogiri/issues/289
219,136
289
[ "sparklemotion", "nokogiri" ]
Hi, I am using nokogiri (1.4.2). I have an issue when I parse a HTML document and then find a node, of which I get the css path using 'node.css_path'. later in my application I attempt to get this node back again, using the css path returned by nokogiri using 'doc.search('returned_css_path)'. When I attempt to get ...
unexpected ':' after '#<Nokogiri::CSS::Node:0x7ff1855bf2d8>'
https://api.github.com/repos/sparklemotion/nokogiri/issues/288/comments
6
2010-06-10T08:31:31Z
2010-06-18T23:25:54Z
https://github.com/sparklemotion/nokogiri/issues/288
218,443
288
[ "sparklemotion", "nokogiri" ]
There appears to have been a regression between 1.4.1 and 1.4.2 related to appending UTF-8 nodes to an existing Nokogiri document: 1.4.2 clobbers the non-ASCII characters. I've tried forcing the encoding in every place that occurs to me, but with no luck. Slurping a document that contains non-ASCII characters works fin...
Non-ASCII Characters Clobbered When Appending to Document (1.4.2 Regression?)
https://api.github.com/repos/sparklemotion/nokogiri/issues/287/comments
2
2010-06-03T13:00:47Z
2010-06-03T18:44:28Z
https://github.com/sparklemotion/nokogiri/issues/287
213,416
287
[ "sparklemotion", "nokogiri" ]
using jruby-1.4.1 on osx (leopard) after upgrading from nokogiri-1.4.1 to nokogiri-1.4.2, I get the following error: jruby-1.4.1 > require 'nokogiri' FFI::NotFoundError: Function 'xmlFirstElementChild' not found in [libexslt.dylib] from /Users/glie/.rvm/rubies/jruby-1.4.1/lib/ruby/site_ruby/shared/ffi/ffi.rb:...
nokogiri-1.4.2 throwing error
https://api.github.com/repos/sparklemotion/nokogiri/issues/286/comments
3
2010-06-02T17:22:58Z
2010-06-17T14:27:12Z
https://github.com/sparklemotion/nokogiri/issues/286
212,678
286
[ "sparklemotion", "nokogiri" ]
Hey guys, we're using JRuby on our build-server in production, but develop on MRI due to autotest-speed, etc. Nokogiri 1.5.0.beta.1 solves a FFI::NotFoundError on our Debian build-server, but it can't be included into the Gemfile because for development (MRI), we would have to comment it out. Would it be difficult to...
Version 1.5.0.beta.1 for MRI?
https://api.github.com/repos/sparklemotion/nokogiri/issues/285/comments
7
2010-05-31T19:25:25Z
2010-06-08T19:44:25Z
https://github.com/sparklemotion/nokogiri/issues/285
210,778
285
[ "sparklemotion", "nokogiri" ]
For some reason, while everything else works fine, when I issue xml.text "Text here" I don't get <text>Text here</text> When it is nested, I just get Text here without the <text> on either side, what do I do?
how do I use xml.text "Text"? No <text> appears nested when I use this?
https://api.github.com/repos/sparklemotion/nokogiri/issues/284/comments
1
2010-05-31T02:42:35Z
2010-05-31T04:17:08Z
https://github.com/sparklemotion/nokogiri/issues/284
210,267
284
[ "sparklemotion", "nokogiri" ]
Seeing this when upgrading from 1.4.1 to 1.4.2: ``` 04:53:37.481200 2104 page.rb:158: undefined method `traverse' for 30912:Fixnum 04:53:37.481252 2104 page.rb:159: /home/onespot/.bundle/ruby/1.9.1/gems/nokogiri-1.4.2/lib/nokogiri/xml/node.rb:592:in `block in traverse' /home/onespot/.bundle/ruby/1.9.1/gems/nokogiri-1....
undefined method `traverse'
https://api.github.com/repos/sparklemotion/nokogiri/issues/283/comments
21
2010-05-28T04:59:18Z
2010-06-24T13:00:15Z
https://github.com/sparklemotion/nokogiri/issues/283
208,419
283
[ "sparklemotion", "nokogiri" ]
Ruby version: 1.9.1-p378 libxml2 version: 2.6.32 (on Debian machine) After updating Nokogiri to the latest version (1.4.2), I experienced strange encoding errors which render this version unusable (at least for me). The following code should reproduce the issue (tested on MacOS X 10.6.2 and Debian Lenny): ``` #encodi...
Encoding(?) error since 1.4.2
https://api.github.com/repos/sparklemotion/nokogiri/issues/282/comments
6
2010-05-27T23:47:41Z
2010-05-29T10:46:29Z
https://github.com/sparklemotion/nokogiri/issues/282
208,274
282
[ "sparklemotion", "nokogiri" ]
Issue when parsing top-level node in document fragments with nokogiri 1.4.2: (gist at http://gist.github.com/413419) ``` $ irb >> a = "<br><p>Hey</p>" => "<br><p>Hey</p>" >> b = Nokogiri::HTML.fragment a => #<Nokogiri::HTML::DocumentFragment:0x455e318 name="#document-fragment" children=[#<Nokogiri::XML::Element:0x455...
Erronious error: "no contextual parsing on unlinked nodes" for top-level node
https://api.github.com/repos/sparklemotion/nokogiri/issues/281/comments
1
2010-05-25T17:22:19Z
2010-06-18T21:57:15Z
https://github.com/sparklemotion/nokogiri/issues/281
206,049
281
[ "sparklemotion", "nokogiri" ]
Remove all 2.6.16 workarounds. Make extconf.rb blow up when compiling against 2.6.16 or earlier. Evaluate whether there are versions between 2.6.16 and 2.6.32 that we should also deprecate.
deprecate libxml 2.6.16
https://api.github.com/repos/sparklemotion/nokogiri/issues/280/comments
1
2010-05-25T04:54:02Z
2010-06-14T23:08:34Z
https://github.com/sparklemotion/nokogiri/issues/280
205,319
280
[ "sparklemotion", "nokogiri" ]
After installing version 1.4.2 (using gem install nokogiri), and trying to import the module using require 'nokogiri', I get the following error: ``` irb(main):001:0> require 'nokogiri' LoadError: 127: The specified procedure could not be found. - Init_nokogiri C:/Ruby19/lib/ruby/gems/1.9.1/gems/nokogiri-1.4.2-x86-m...
LoadError with nokogiri-1.4.2-x86-mingw32
https://api.github.com/repos/sparklemotion/nokogiri/issues/279/comments
10
2010-05-22T19:23:56Z
2010-06-03T06:11:38Z
https://github.com/sparklemotion/nokogiri/issues/279
203,759
279
[ "sparklemotion", "nokogiri" ]
``` require 'nokogiri' require 'open-uri' require 'iconv' #define the html url url="http://cd.58.com/wangzhanmeigong/" # get the nokogiri document doc = Nokogiri::HTML(open(url)) # new a file for save file = File.new("c:/a.html","w") file.write("\<html\>\<head\>\<meta http-equiv=\"content-type\" content=\"text/html;ch...
the Iconv test
https://api.github.com/repos/sparklemotion/nokogiri/issues/278/comments
3
2010-05-22T15:20:31Z
2010-05-25T02:06:57Z
https://github.com/sparklemotion/nokogiri/issues/278
203,681
278
[ "sparklemotion", "nokogiri" ]
Nokogiri seems to add `<?xml version="1.0" encoding="UTF-8"?>` even when I'm processing a text output XSLT file. See [this gist](http://gist.github.com/401718) for an example.
XSLT with <xsl:output method="text"> unexpected behaviour
https://api.github.com/repos/sparklemotion/nokogiri/issues/276/comments
2
2010-05-14T21:57:51Z
2010-05-16T11:00:34Z
https://github.com/sparklemotion/nokogiri/issues/276
195,942
276
[ "sparklemotion", "nokogiri" ]
I attempted to bundle a nightly build of Nokogiri on JRuby 1.5.0, but got this error instead: ``` Installing nokogiri (1.4.1.20100514000014) from rubygems repository at http://tenderlovemaking.com/ with native extensions /home/hal/.rvm/rubies/jruby-1.5.0/lib/ruby/site_ruby/1.8/rubygems/installer.rb:482:in `build_exten...
Nightly builds of nokogiri fail to install on JRuby 1.5.0 with Bundler.
https://api.github.com/repos/sparklemotion/nokogiri/issues/275/comments
2
2010-05-14T12:28:54Z
2010-05-14T13:11:40Z
https://github.com/sparklemotion/nokogiri/issues/275
195,568
275
[ "sparklemotion", "nokogiri" ]
I wish to bundle the edge version of nokogiri, but the repository lacks a gemspec file. This prevents Gem Bundler from building a fresh gem from the repository.
Nokogiri needs a gemspec file for Gem Bundler to use.
https://api.github.com/repos/sparklemotion/nokogiri/issues/274/comments
6
2010-05-14T10:31:12Z
2012-03-14T16:27:52Z
https://github.com/sparklemotion/nokogiri/issues/274
195,532
274
[ "sparklemotion", "nokogiri" ]
I don't know if this is classified as a feature or preferred behavior, but I need to get around it. I have created a simple test (test_encoding.rb), which does almost what I want (compare the contents of a tag with the string it was initialized with). It fails because of the "expanding" of an empty tag. git://github.co...
Emty tags changing from a single one to open+close tags
https://api.github.com/repos/sparklemotion/nokogiri/issues/273/comments
1
2010-05-07T16:55:38Z
2010-05-10T12:18:17Z
https://github.com/sparklemotion/nokogiri/issues/273
189,116
273
[ "sparklemotion", "nokogiri" ]
If you try to validate a xml document against a given xml schema, like the code below you get a Error saying: uninitialized constant LibXMLJRuby::XML::Schema <code>require 'xml' ... <br> document = XML::Document.file(temp_file.path) schema = XML::Schema.document(xsd_file_name) document.validate_schema(schema) ...</c...
uninitialized constant LibXMLJRuby::XML::Schema
https://api.github.com/repos/sparklemotion/nokogiri/issues/272/comments
2
2010-05-07T12:57:33Z
2011-01-30T01:16:38Z
https://github.com/sparklemotion/nokogiri/issues/272
188,958
272
[ "sparklemotion", "nokogiri" ]
``` text = Nokogiri::XML::Document.new.create_text_node( "" ) text.content = "\"" text.to_s ``` output: "&amp;quot;" expected: "&quot;"
Overencoding in text nodes
https://api.github.com/repos/sparklemotion/nokogiri/issues/271/comments
3
2010-05-05T01:21:04Z
2010-05-14T13:11:02Z
https://github.com/sparklemotion/nokogiri/issues/271
186,903
271
[ "sparklemotion", "nokogiri" ]
``` text = Nokogiri::XML::Document.new.create_text_node( "" ) text.content = """ text.to_s ``` output: "&amp;quot;" expected: "&quot;"
Overencoding in text nodes
https://api.github.com/repos/sparklemotion/nokogiri/issues/270/comments
1
2010-05-05T01:19:28Z
2010-05-05T01:19:58Z
https://github.com/sparklemotion/nokogiri/issues/270
186,902
270
[ "sparklemotion", "nokogiri" ]
text = Nokogiri::XML::Document.new.create_text_node( "" ) text.content = "\"" text.to_s output: "&amp;quot;" expected: "&quot;" or "\""
Overencoding in text nodes
https://api.github.com/repos/sparklemotion/nokogiri/issues/269/comments
1
2010-05-05T01:15:40Z
2010-05-05T01:18:08Z
https://github.com/sparklemotion/nokogiri/issues/269
186,900
269
[ "sparklemotion", "nokogiri" ]
Crash script: http://gist.github.com/388697 <pre> $ ruby crash.rb parsed selected crash.rb:12: [BUG] Segmentation fault ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-linux] Aborted $ ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-linux] $ nokogiri -v --- warnings: [] libxml: loaded: 2.7.5 binding: extensi...
Segfault on selecting a range from an empty nodeset
https://api.github.com/repos/sparklemotion/nokogiri/issues/268/comments
1
2010-05-03T22:56:54Z
2010-05-04T10:57:20Z
https://github.com/sparklemotion/nokogiri/issues/268
185,905
268
[ "sparklemotion", "nokogiri" ]
Hey, We get this one "often" (like every few hours on GBytes of XML content). I'm trying to provide you guys more but I'm not sure how :( 2010-05-01_22:24:14.98374 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/sax/push_parser.rb:47: [BUG] Segmentation fault 2010-05-01_22:24:14.98381 ruby...
Segmentation fault
https://api.github.com/repos/sparklemotion/nokogiri/issues/267/comments
8
2010-05-01T22:31:40Z
2010-05-03T12:23:38Z
https://github.com/sparklemotion/nokogiri/issues/267
184,562
267
[ "sparklemotion", "nokogiri" ]
I'm pulling in emails from a POP server and parsing any html encoding with Nokogiri but I'm running into an issue where Nokogiri stops parsing after the first set of children. Here is the body of the email that I want Nokogiri to parse: <b>this is bold</b>\xC2\xA0<i>this is italic</i> I use the following command ...
Nokogiri HTML parse not grabbing whole string
https://api.github.com/repos/sparklemotion/nokogiri/issues/266/comments
3
2010-04-30T14:13:33Z
2010-04-30T14:27:43Z
https://github.com/sparklemotion/nokogiri/issues/266
183,849
266
[ "sparklemotion", "nokogiri" ]
I've installed nokogiri like all other gems with <pre>sudo gem install nokogiri</pre> and it downloads and does all the native extensions just fine. When I go to include it in my document I type: <pre>require 'nokogiri'</pre> However when I go to my rails app, I get the message that I'm missing a source file <...
After installing I get "Missing source file"
https://api.github.com/repos/sparklemotion/nokogiri/issues/265/comments
6
2010-04-29T13:04:18Z
2010-04-29T21:30:59Z
https://github.com/sparklemotion/nokogiri/issues/265
183,059
265
[ "sparklemotion", "nokogiri" ]
I have the following (new) testcase (in test/html/test_document.rb): ``` def test_html_inner_text html = Nokogiri::HTML(<<-eohtml) <html> <body><div><p>Hello inner world!</p></div></body> </html> eohtml assert_equal('Hello inner world!", html.inner_text) end ``` which fails, because inner_text returns nil....
inner_text for Nokogiri::HTML returns nil
https://api.github.com/repos/sparklemotion/nokogiri/issues/264/comments
8
2010-04-27T14:00:29Z
2010-11-22T13:17:33Z
https://github.com/sparklemotion/nokogiri/issues/264
180,813
264
[ "sparklemotion", "nokogiri" ]
Hey, I think it would be awesome to have a semantical equivalence method to compare 2 XML Nodes. Equivalent is defined as follows : - same name - same attributes (order doesn't matter) - same same default namespace (different definitions are ok) - same number of children - each child is equivalent to one child of the...
Semantical Equivalence
https://api.github.com/repos/sparklemotion/nokogiri/issues/263/comments
2
2010-04-25T15:19:04Z
2010-04-26T13:27:51Z
https://github.com/sparklemotion/nokogiri/issues/263
179,382
263
[ "sparklemotion", "nokogiri" ]
The Reader pull-parser doesn't expose a way to determine if an element is empty when there is no separate end tag (<foo/>), since no end element is encountered (or synthesized). I presume some call to xmlTextReaderIsEmptyElement is in order.
Detecting empty elements with XML::Reader
https://api.github.com/repos/sparklemotion/nokogiri/issues/262/comments
13
2010-04-22T15:41:38Z
2010-06-23T20:03:29Z
https://github.com/sparklemotion/nokogiri/issues/262
177,636
262
[ "sparklemotion", "nokogiri" ]
i am running on master, and bug is reproducible by running this script: http://gist.github.com/372105 ruby(52321) malloc: **\* error for object 0x1004c81b0: pointer being freed was not allocated **\* set a breakpoint in malloc_error_break to debug Program received signal SIGABRT, Aborted. 0x00007fff825b3096 in __kil...
memory problem: freed twice (?)
https://api.github.com/repos/sparklemotion/nokogiri/issues/261/comments
7
2010-04-20T06:56:06Z
2010-04-21T23:37:28Z
https://github.com/sparklemotion/nokogiri/issues/261
175,512
261
[ "sparklemotion", "nokogiri" ]
moving stuff from XML::Builder to XML::Document http://github.com/hayeah/nokogiri in particular Document#create_element takes the same arguments as XML::Builder#method_missing used to take.
some trivial patches
https://api.github.com/repos/sparklemotion/nokogiri/issues/260/comments
1
2010-04-19T05:54:56Z
2010-04-20T15:57:16Z
https://github.com/sparklemotion/nokogiri/issues/260
174,620
260
[ "sparklemotion", "nokogiri" ]
example: ``` document = Nokogiri::HTML::Document.new ctx = document.root = Nokogiri::XML::Element.new('div', document) ctx.parse("<div><span>bar</span><snippet>foo</snippet></div>", Nokogiri::XML::ParseOptions::DEFAULT_HTML) ``` should not result in an empty document (because parsing quits on the first syntax error),...
in_context parsing doesn't appear to pay attention to parse options
https://api.github.com/repos/sparklemotion/nokogiri/issues/259/comments
1
2010-04-19T03:16:25Z
2010-04-23T16:38:01Z
https://github.com/sparklemotion/nokogiri/issues/259
174,536
259
[ "sparklemotion", "nokogiri" ]
Hi, I'm getting a segmentation fault on nokogiri when running the test suites for [ruby-readability](http://github.com/iterationlabs/ruby-readability/) using Nokogiri 1.4.1 on OS X 10.6. ``` mu:ruby-readability tom$ rake spec --trace (in /Users/tom/src/ruby-readability) ** Invoke spec (first_time) ** Execute spec ......
Segmentation Fault on 1.4.1
https://api.github.com/repos/sparklemotion/nokogiri/issues/258/comments
14
2010-04-18T11:46:38Z
2010-07-16T14:27:58Z
https://github.com/sparklemotion/nokogiri/issues/258
174,173
258
[ "sparklemotion", "nokogiri" ]
doc = Nokogiri::XML::Document.parse("&lt;foo xmlns:r='blonka/bloo'&gt;&lt;bar id='3' r:id='twenty' /&gt;&lt;/foo&gt;") doc.at_xpath(".//bar").attributes.inspect => {"id"=>#<Nokogiri::XML::Attr:0x80a71be4 name="id" namespace=#<Nokogiri::XML::Namespace:0x80a71db0 prefix="r" href="blonka/bloo"> value="twenty">} note tha...
attributes method cannot discriminate attributes with same name but different namespace
https://api.github.com/repos/sparklemotion/nokogiri/issues/257/comments
6
2010-04-17T04:57:34Z
2012-02-20T14:37:49Z
https://github.com/sparklemotion/nokogiri/issues/257
173,653
257
[ "sparklemotion", "nokogiri" ]
From an email from Devlin Daley to nokogiri-talk: > If I had any C extension fu I would add what I think is an > awesome approach to Nokogiri for parsing large xml files. The > bummer about going to SAX or a reader is that you lose xpath and > css selectors. The compromise is to restrict yourself to only > forward-loo...
allow XPath within XmlReader
https://api.github.com/repos/sparklemotion/nokogiri/issues/256/comments
17
2010-04-15T19:36:23Z
2024-01-30T17:09:14Z
https://github.com/sparklemotion/nokogiri/issues/256
172,589
256
[ "sparklemotion", "nokogiri" ]
I have compiled ruby 1.9.1 with Visual Studio's C Compiler in windows. It works great. However, I can't use nokogiri because its extconf.rb is very gcc/unix centric.
No support for compiling with cl.exe (Visual Studio's C compiler)
https://api.github.com/repos/sparklemotion/nokogiri/issues/255/comments
15
2010-04-15T16:17:34Z
2010-07-06T23:09:51Z
https://github.com/sparklemotion/nokogiri/issues/255
172,421
255
[ "sparklemotion", "nokogiri" ]
I've been making some code that will convert my custom tags into more complex layout. One of these tags (named snippet) would be converted into a div with rounded corners using only CSS using the method shown on spiffycorners.com To do this I parsed through my html, found any snippet tags, then converted them into spi...
Segfault when using Nokogiri::HTML::Builder
https://api.github.com/repos/sparklemotion/nokogiri/issues/254/comments
4
2010-04-12T18:09:53Z
2010-04-13T13:30:05Z
https://github.com/sparklemotion/nokogiri/issues/254
170,090
254
[ "sparklemotion", "nokogiri" ]
Not sure whether this applies to everyone, but the [install docs](http://nokogiri.org/tutorials/installing_nokogiri.html) says to use the following on Ubuntu: ``` sudo apt-get install libxslt-dev libxml2-dev ``` That didn't work for me (on Hardy), I needed to do a: ``` sudo apt-get install libxslt1-dev libxml2-dev `...
Installation tutorial incorrect for Ubuntu?
https://api.github.com/repos/sparklemotion/nokogiri/issues/253/comments
4
2010-04-09T17:36:33Z
2010-04-13T07:39:19Z
https://github.com/sparklemotion/nokogiri/issues/253
168,291
253
[ "sparklemotion", "nokogiri" ]
Attributes can be of a different namespace than the node they belong too. I wasn't able to find a method to add namespaced attributes, and adding an namespace to an existing attribute ``` @current.attributes[a.localname].add_namespace(a.prefix, a.uri) ``` raises an error : ::Attr:0x80b79e4c name="width" value="75...
Add a namespaced attribute
https://api.github.com/repos/sparklemotion/nokogiri/issues/252/comments
5
2010-04-08T10:24:27Z
2010-07-02T13:22:23Z
https://github.com/sparklemotion/nokogiri/issues/252
167,436
252
[ "sparklemotion", "nokogiri" ]
require 'rubygems' require 'nokogiri' require 'open-uri' puts Nokogiri::HTML(open('http://www.omniscientx.com/test.html')) If I run the above code on a CentOS 5.x server with Ruby 1.8.7, it returns: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <!-- SWCOM_...
CentOS nokogiri 1.4.1 produces different output than Debian or Mac OS X nokogiri 1.4.1
https://api.github.com/repos/sparklemotion/nokogiri/issues/251/comments
8
2010-04-07T19:13:35Z
2010-04-29T12:27:13Z
https://github.com/sparklemotion/nokogiri/issues/251
166,962
251
[ "sparklemotion", "nokogiri" ]
Some HTML documents does not get parsed properly. Nokogiri stops without any errors, and some part of the document is available. I've uploaded a sample that stops (the parsing stops in the head section, almost at the end of the head but before the body section) The sample HTML is here: http://uploaded.to/file/thb8hc ...
Document the ability to declare document encoding
https://api.github.com/repos/sparklemotion/nokogiri/issues/250/comments
9
2010-04-01T09:22:52Z
2010-06-23T20:09:22Z
https://github.com/sparklemotion/nokogiri/issues/250
163,085
250
[ "sparklemotion", "nokogiri" ]
From the spec at http://www.w3.org/TR/CSS2/selector.html I read: E + F Matches any F element immediately preceded by a sibling element E. Or, you can read here: http://www.w3.org/TR/CSS2/selector.html#adjacent-selectors So, it appears as if the second node should be returned but on my tests the first node (E) is...
+ operator in css method returns wrong node
https://api.github.com/repos/sparklemotion/nokogiri/issues/249/comments
4
2010-04-01T00:55:26Z
2010-05-10T12:21:03Z
https://github.com/sparklemotion/nokogiri/issues/249
162,844
249
[ "sparklemotion", "nokogiri" ]
originallly http://jira.codehaus.org/browse/JRUBY-4679
JRuby crash
https://api.github.com/repos/sparklemotion/nokogiri/issues/248/comments
2
2010-03-29T13:37:21Z
2010-03-31T06:45:32Z
https://github.com/sparklemotion/nokogiri/issues/248
160,757
248
[ "sparklemotion", "nokogiri" ]
My understanding is that: <xsl:output method="xml" omit-xml-declaration="yes" /> Means I should just see my output without the <?xml ...?> tag, but I see it when using Nokogiri::XSLT. If I use xsltproc from command line, I get the desired effect. I read the spec to confirm my expectation. Also, it seems per xsltp...
Nokogiri::XSLT.transform - 1.4.1 emits xml declaration when it should not.
https://api.github.com/repos/sparklemotion/nokogiri/issues/247/comments
1
2010-03-27T22:27:46Z
2014-03-17T12:26:07Z
https://github.com/sparklemotion/nokogiri/issues/247
159,805
247
[ "sparklemotion", "nokogiri" ]
Heya, We use Nokogiri with Cucumber to parse our XML's and perform XPath queries.. nokogiri (1.4.0) libxml2-2.6.26-2.1.2.8 We have found that intermittently when we call the 'xpath' on the nokogiri parsed document we get the same element returned twice.. Here is the code we use for the test (and the check/debug code...
.xpath returns duplicate elements... sometimes!
https://api.github.com/repos/sparklemotion/nokogiri/issues/246/comments
7
2010-03-25T04:41:18Z
2013-08-28T09:36:10Z
https://github.com/sparklemotion/nokogiri/issues/246
158,108
246
[ "sparklemotion", "nokogiri" ]
INFO: New instance of JRuby runtime created in 9,672 milliseconds SEVERE: Could not load FFI Provider: FFI not available: C:\Documents and Settings\xxxx\Local Settings\Temp\jffi7548027405700609128.tmp: Invalid access to memory location --- Note, though that I am able to run the same application if I use Mongrel. Yes...
Unable to use nokogiri in JRuby on Rails in Windows
https://api.github.com/repos/sparklemotion/nokogiri/issues/245/comments
4
2010-03-23T06:59:37Z
2010-04-19T03:11:33Z
https://github.com/sparklemotion/nokogiri/issues/245
156,633
245
[ "sparklemotion", "nokogiri" ]
Parsing ~1g xml file I have observed that ruby is using ~5g of memory. Accidentally I looked at inner_xml and outer_xml functions static VALUE inner_xml(VALUE self) { xmlTextReaderPtr reader; Data_Get_Struct(self, xmlTextReader, reader); const char \* value = (const char *)xmlTextReaderReadInnerXml(reader); ...
Memory leak
https://api.github.com/repos/sparklemotion/nokogiri/issues/244/comments
2
2010-03-18T19:05:41Z
2010-03-19T02:20:47Z
https://github.com/sparklemotion/nokogiri/issues/244
153,861
244
[ "sparklemotion", "nokogiri" ]
Intermittently, probably every 3-4 runs I see following exception: <pre><code> undefined method `key?' for nil:NilClass /var/www/ruby/delcampe/app/scripts/crawler.rb:92:in `block in process_page' /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.4.1/lib/nokogiri/xml/node_set.rb:213:in `block in each' /usr/local/lib/ruby/...
at_xpath and xpath return Nokogiri::XML::Element without proper methods like [] or key?
https://api.github.com/repos/sparklemotion/nokogiri/issues/243/comments
9
2010-03-18T02:38:26Z
2010-03-24T04:29:55Z
https://github.com/sparklemotion/nokogiri/issues/243
153,432
243
[ "sparklemotion", "nokogiri" ]
Also, look into why #after and #add_next_sibling have different implementations. Sheesh.
Node#add_child should accept strings (like #after and #before)
https://api.github.com/repos/sparklemotion/nokogiri/issues/242/comments
1
2010-03-17T19:21:48Z
2010-04-13T06:15:38Z
https://github.com/sparklemotion/nokogiri/issues/242
153,161
242
[ "sparklemotion", "nokogiri" ]
the check for Solaris-ness in ext/nokogiri/extconf.rb is: Config::CONFIG['target_os'] == 'solaris2' whereas: ruby -rrbconfig -e "puts Config::CONFIG['target_os']" solaris2.10 I'd suggest Config::CONFIG['target_os'] =~ /solaris/ is a better test full notes: http://nicksellen.co.uk/2010/01/28/compiling-nokogiri-gem-o...
incorrect checking for target_os in Solaris 10
https://api.github.com/repos/sparklemotion/nokogiri/issues/241/comments
1
2010-03-15T10:03:02Z
2010-03-15T15:38:57Z
https://github.com/sparklemotion/nokogiri/issues/241
151,245
241
[ "sparklemotion", "nokogiri" ]
``` require 'test/unit' require 'nokogiri' class AttributeXPathWithNsTest < Test::Unit::TestCase def setup @ns = {'ns' => "urn:myns"} @implicit_xml_str = "<xrd xmlns='#{@ns['ns']}'><Link rel='lrdd' /></xrd>" @explicit_xml_str = "<ns:xrd xmlns:ns='#{@ns['ns']}'><ns:Link ns:rel='lrdd' /></ns:xrd>" @exp...
Attr XPaths Should Work the Same in Docs with Default vs Prefixed Namespaces
https://api.github.com/repos/sparklemotion/nokogiri/issues/240/comments
2
2010-03-14T02:17:08Z
2010-03-17T04:42:10Z
https://github.com/sparklemotion/nokogiri/issues/240
150,691
240
[ "sparklemotion", "nokogiri" ]
Under jruby 1.5: ``` require 'rubygems' require 'nokogiri' ``` Results in: ``` NameError: undefined local variable or method `java' for Nokogiri::LibXML:Module ``` It works if java is required first: ``` require 'java' require 'rubygems' require 'nokogiri' ``` Seems like Nokogiri should require java by itself
require 'nokogiri' fails in jruby unless 'java' has been required
https://api.github.com/repos/sparklemotion/nokogiri/issues/239/comments
2
2010-03-11T14:42:41Z
2010-06-02T00:13:21Z
https://github.com/sparklemotion/nokogiri/issues/239
149,077
239
[ "sparklemotion", "nokogiri" ]
This looks to me like a libxml2 error but I can't figure that out for sure and I'm experiencing it via Nokogiri 1.4.1. I'm hoping you can help. When linked against libxml2 2.7.3 Nokogiri successfully parses the page: http://starlite.ru . However, when linked against 2.7.4, 2.7.5, and 2.7.6 it seg faults. It appears...
Segfault in parsing script or style tag
https://api.github.com/repos/sparklemotion/nokogiri/issues/238/comments
5
2010-03-08T00:21:27Z
2010-03-20T18:17:26Z
https://github.com/sparklemotion/nokogiri/issues/238
146,435
238
[ "sparklemotion", "nokogiri" ]
Trying to build with macruby produces a bunch of warnings and then in trying to require 'nokogiri' produces: NameError: undefined method `next_sibling' for class`Nokogiri::XML::Node' from (irb):1:in `<main>' Tried to run Nokogiri::XML(open('http://myurl.com/1625759.xml')) after include, which yields: ...
Cannot build with MacRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/237/comments
1
2010-03-04T21:50:27Z
2010-03-05T16:37:35Z
https://github.com/sparklemotion/nokogiri/issues/237
144,870
237
[ "sparklemotion", "nokogiri" ]
Newbie question: I am having trouble install nokogiri. System: redhat what i get: Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb checking for iconv.h in /opt/local/include/,/opt/local/include/libxml2,/opt/...
Issues with install
https://api.github.com/repos/sparklemotion/nokogiri/issues/236/comments
3
2010-03-03T22:11:38Z
2010-03-17T04:30:21Z
https://github.com/sparklemotion/nokogiri/issues/236
144,152
236
[ "sparklemotion", "nokogiri" ]
Long story that I don't really want to transcribe again. Short of it is that a site that specifies utf-8 encoding in the server-sent headers, but not in the html itself, gets translated as latin by nokogiri. Bah. [My SO question](http://stackoverflow.com/questions/2349920/ruby-string-encoding/) (with all the juicy d...
incorrectly identifies encoding without <meta> tag
https://api.github.com/repos/sparklemotion/nokogiri/issues/235/comments
2
2010-03-03T08:44:16Z
2010-03-03T22:11:44Z
https://github.com/sparklemotion/nokogiri/issues/235
143,688
235
[ "sparklemotion", "nokogiri" ]
``` >> Nokogiri::HTML.fragment('<!-- Comment --> <div></div>').to_s => "<!-- Comment -->" >> Hpricot('<!-- Comment --> <div></div>').to_s => "<!-- Comment --> <div></div>" ```
Nokogiri fragment parser removing html after comments
https://api.github.com/repos/sparklemotion/nokogiri/issues/234/comments
1
2010-02-26T20:37:30Z
2010-03-06T01:06:04Z
https://github.com/sparklemotion/nokogiri/issues/234
140,762
234
[ "sparklemotion", "nokogiri" ]
I cannot for the life of me find how to do this, feature request?
to_xml output without newlines?
https://api.github.com/repos/sparklemotion/nokogiri/issues/233/comments
4
2010-02-25T17:15:09Z
2010-03-17T04:28:40Z
https://github.com/sparklemotion/nokogiri/issues/233
139,897
233
[ "sparklemotion", "nokogiri" ]
Hi, From the mailing list (Guillaume gjeudy@gmail.com): ``` I'm using nokogiri 1.4.1 on windows. I noticed that there is still a system file handle lock after I've called Nokogiri::XML::SAX::Parser:parse_file <file_name_string>. The file handle is only closed when the ruby interpreter exits. I tried Nokogiri::XML::S...
Nokogiri::XML::SAX file lock?
https://api.github.com/repos/sparklemotion/nokogiri/issues/232/comments
1
2010-02-25T15:33:41Z
2010-03-01T00:09:45Z
https://github.com/sparklemotion/nokogiri/issues/232
139,818
232
[ "sparklemotion", "nokogiri" ]
For http://nokogiri.org/Nokogiri/XML/Node.html, section for ">(selector)", "immidiate" should be spelled "immediate".
Misspelling in documentation
https://api.github.com/repos/sparklemotion/nokogiri/issues/231/comments
1
2010-02-24T06:05:29Z
2010-02-28T23:59:54Z
https://github.com/sparklemotion/nokogiri/issues/231
138,854
231
[ "sparklemotion", "nokogiri" ]
Is there any way to compare XML files. Something that when comparing <root><atr t="true" f="false" /></root> AND <root><atr f="false" t="true"></atr></root> that would return true. Is this possible with Nokogiri? Thanks!
Compare XML files
https://api.github.com/repos/sparklemotion/nokogiri/issues/230/comments
1
2010-02-19T17:34:06Z
2010-02-19T17:41:38Z
https://github.com/sparklemotion/nokogiri/issues/230
136,104
230
[ "sparklemotion", "nokogiri" ]
I've been using Nokogiri heavily for about a year (thank you!) and I've always encoded my EUC-KR documents to UTF-8 before processing it with Nokogiri. Then I noticed in README that "Strings are always stored as UTF-8 internally. Methods that return text values will always return UTF-8 encoded strings. Methods that r...
README's encoding explanation is confusing.
https://api.github.com/repos/sparklemotion/nokogiri/issues/229/comments
1
2010-02-17T02:59:58Z
2010-02-28T23:48:34Z
https://github.com/sparklemotion/nokogiri/issues/229
134,411
229
[ "sparklemotion", "nokogiri" ]
Hello, it seems that calling parent.unlink breaks builder context, thus it is impossible to add further nodes: <pre><code> >> Nokogiri::XML::Builder.new { |xml| xml.foo { xml.bar { xml.parent.unlink } ; xml.bar2 {} } } NoMethodError: undefined method `add_child' for nil:NilClass from /var/lib/gems/1.8/gems/n...
parent.remove breaks builder context
https://api.github.com/repos/sparklemotion/nokogiri/issues/228/comments
1
2010-02-11T19:49:55Z
2010-02-15T01:57:16Z
https://github.com/sparklemotion/nokogiri/issues/228
131,103
228
[ "sparklemotion", "nokogiri" ]
hi, first, thanks for such a great library! i really enjoy all it has to offer. now, as for my specific problem: i unpacked cucumber/webrat/rspec into a rails app, plus all their dependencies (which included nokogiri-1.3.3). now when i try to run "rake cucumber", it fails, saying: <pre> $ script/cucumber features...
nokogiri can't find "nokogiri/nokogiri" when unpacked into a rails app
https://api.github.com/repos/sparklemotion/nokogiri/issues/227/comments
2
2010-02-08T19:49:47Z
2010-02-08T19:56:15Z
https://github.com/sparklemotion/nokogiri/issues/227
128,237
227
[ "sparklemotion", "nokogiri" ]
Let's add c14n support! http://xmlsoft.org/html/libxml-c14n.html
Add c14n support
https://api.github.com/repos/sparklemotion/nokogiri/issues/226/comments
35
2010-02-07T20:15:03Z
2013-11-20T08:18:51Z
https://github.com/sparklemotion/nokogiri/issues/226
127,652
226
[ "sparklemotion", "nokogiri" ]
I had some crashes with buggy stylesheets. The stylesheets had endless loops or similar problems (stack overflow?). nokogiri should throw an exception. This might be also an problem in libxslt.
xslt module segfaults
https://api.github.com/repos/sparklemotion/nokogiri/issues/225/comments
6
2010-02-07T09:28:54Z
2010-02-10T16:33:15Z
https://github.com/sparklemotion/nokogiri/issues/225
127,484
225
[ "sparklemotion", "nokogiri" ]
xslt module crashes
https://api.github.com/repos/sparklemotion/nokogiri/issues/224/comments
2
2010-02-07T09:24:37Z
2010-02-07T18:32:31Z
https://github.com/sparklemotion/nokogiri/issues/224
127,482
224
[ "sparklemotion", "nokogiri" ]
xslt.transform(doc, {:x => 1, :y => 2}) it should at least throw an invalid argument error
xslt module segfaults if transform parameter are given in wrong format
https://api.github.com/repos/sparklemotion/nokogiri/issues/223/comments
3
2010-02-07T09:24:25Z
2010-02-07T18:37:32Z
https://github.com/sparklemotion/nokogiri/issues/223
127,481
223
[ "sparklemotion", "nokogiri" ]
this would allow validating the xml schema as the stream is parsed with SAX parsing method for example. Currently one has to validate/parse the whole xml schema upfront and then re-parse to do the actual processing.
Extend nokogiri API to support libxml API call xmlSchemaValidateStream
https://api.github.com/repos/sparklemotion/nokogiri/issues/222/comments
1
2010-02-05T20:38:37Z
2024-06-24T20:22:38Z
https://github.com/sparklemotion/nokogiri/issues/222
126,649
222
[ "sparklemotion", "nokogiri" ]
I'm on OS X 10.6 and Ruby 1.9.1. When installing the nokogiri gem I get: ``` make install /opt/local/bin/ginstall -c -m 0755 nokogiri.bundle /Users/erdah/.rvm/gems/ruby-1.9.1-p378/gems/nokogiri-1.4.1/lib/nokogiri make: /opt/local/bin/ginstall: No such file or directory make: *** [/Users/erdah/.rvm/gems/ruby-1.9.1-p378...
Cannot find ginstall
https://api.github.com/repos/sparklemotion/nokogiri/issues/221/comments
4
2010-02-04T07:44:15Z
2012-04-26T08:06:46Z
https://github.com/sparklemotion/nokogiri/issues/221
125,475
221
[ "sparklemotion", "nokogiri" ]
I ended up asking about this on IRC because it was non-obvious from the documentation that it wasn't supported, and someone else just asked on the mailing list, so I'm adding.
XML::Builder should support setting the DTD tag for a document
https://api.github.com/repos/sparklemotion/nokogiri/issues/220/comments
2
2010-02-03T02:20:55Z
2010-02-14T04:37:17Z
https://github.com/sparklemotion/nokogiri/issues/220
124,762
220
[ "sparklemotion", "nokogiri" ]
currently Schema#validate, when passed a file, parses the file and passes it to xmlSchemaValidateDoc. libxml2 provides xmlSchemaValidateFile which allows us to validate a file without parsing a full-blown Nokogiri::XML::Document. let's use that for files instead.
Schema should support file validation without parsing the document
https://api.github.com/repos/sparklemotion/nokogiri/issues/219/comments
3
2010-02-02T23:44:07Z
2010-02-03T04:10:23Z
https://github.com/sparklemotion/nokogiri/issues/219
124,696
219
[ "sparklemotion", "nokogiri" ]
XML::Node#line() doesn't seem to work. In my case, traversing an HTML document, it is always 0.
XML::Node#line() always 0
https://api.github.com/repos/sparklemotion/nokogiri/issues/218/comments
2
2010-01-29T04:53:55Z
2010-02-07T22:20:10Z
https://github.com/sparklemotion/nokogiri/issues/218
121,871
218
[ "sparklemotion", "nokogiri" ]
This is a continuation of bug #212. Some code that demonstrates the problem. Stick in a file `nokogiri-bug.rb` and run `ruby nokogiri-bug.rb` . ``` require "nokogiri" xml = <<-XML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml...
undefined method `next_element' for #<Nokogiri::XML::DTD:0x....> (NoMethodError)
https://api.github.com/repos/sparklemotion/nokogiri/issues/217/comments
10
2010-01-28T09:45:36Z
2010-02-12T10:46:47Z
https://github.com/sparklemotion/nokogiri/issues/217
121,360
217
[ "sparklemotion", "nokogiri" ]
This on mac os 10.5. It found all the headers, but failed in the tests. The only noticable difference in the mkmf.log was "-arch ppc -arch i386" being passed to the compiler. Not a big issue, but knowing about it may save people some time... ## find_library: checking for xmlParseDoc() in -lxml2... -------------------...
Nokogiri won't install when RUBYOPT=rubygems is in the environment
https://api.github.com/repos/sparklemotion/nokogiri/issues/216/comments
3
2010-01-28T01:45:19Z
2010-01-28T05:23:12Z
https://github.com/sparklemotion/nokogiri/issues/216
121,159
216
[ "sparklemotion", "nokogiri" ]
Consider this scenario: ``` require 'open-uri' require 'nokogiri' puts Nokogiri::VERSION_INFO puts Nokogiri::LIBXML_ICONV_ENABLED f = open('http://www.hometheater.co.il/').read; true puts f.encoding.to_s p = Nokogiri::HTML(f); true puts p.encoding puts p.meta_encoding p.to_html ``` Result: ``` {"warn...
Unable to output the HTML::Document in the original encoding
https://api.github.com/repos/sparklemotion/nokogiri/issues/215/comments
8
2010-01-27T15:11:57Z
2019-01-05T01:22:52Z
https://github.com/sparklemotion/nokogiri/issues/215
120,790
215