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"
] | Nokogiri occasionally has issues parsing the css_path it provides. A sample case is the following path (retrieved by running Node.css_path()):
html > body > div > div:nth-of-type(2) > div > text():nth-of-type(2)
Reasonably certain the cause is the 'text():nth-of-type(2)', which is generated from the corresponding .p... | Error parsing provided css_path() | https://api.github.com/repos/sparklemotion/nokogiri/issues/114/comments | 5 | 2009-08-01T00:39:29Z | 2009-08-08T02:19:12Z | https://github.com/sparklemotion/nokogiri/issues/114 | 42,632 | 114 |
[
"sparklemotion",
"nokogiri"
] | We need to be able to tell when a user is running on windows, not by just the platform. Right now, the code looks at the platform when it needs to look at the OS. Switch to this (from Luis):
```
RUBY_PLATFORM + RbConfig::CONFIG['host_os']
Similar approach is being used by mspec and the RubySpec to determine
which A... | Fix platform detection code | https://api.github.com/repos/sparklemotion/nokogiri/issues/113/comments | 1 | 2009-07-30T16:47:46Z | 2009-08-07T04:24:55Z | https://github.com/sparklemotion/nokogiri/issues/113 | 42,100 | 113 |
[
"sparklemotion",
"nokogiri"
] | Package libxml2 dll's with jruby gem so that the jruby gem can work on windows / jruby
| Package libxml2 dll's with jruby gem | https://api.github.com/repos/sparklemotion/nokogiri/issues/112/comments | 2 | 2009-07-30T16:42:47Z | 2009-08-12T18:45:22Z | https://github.com/sparklemotion/nokogiri/issues/112 | 42,096 | 112 |
[
"sparklemotion",
"nokogiri"
] | No matter how you set up, on every Windows system the newest Nokogiri (1.3.3) fails to load with the following error (both 1.9 and 1.8 Ruby):
irb(main):001:0> require 'rubygems'
=> false
irb(main):002:0> require 'nokogiri'
LoadError: no such file to load -- nokogiri/1.9/nokogiri
from c:/Ruby/lib/ruby/gems/1.9.... | Windows Nokogiri 1.3.3 - ALWAYS LoadError: no such file to load -- nokogiri/1.9/nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/111/comments | 1 | 2009-07-28T16:58:41Z | 2009-07-28T20:20:51Z | https://github.com/sparklemotion/nokogiri/issues/111 | 41,320 | 111 |
[
"sparklemotion",
"nokogiri"
] | boy... do I have issues.
(ignore me... using it for developing omnifocus-github)
| I have issues | https://api.github.com/repos/sparklemotion/nokogiri/issues/110/comments | 1 | 2009-07-28T08:49:39Z | 2009-07-28T08:54:31Z | https://github.com/sparklemotion/nokogiri/issues/110 | 41,197 | 110 |
[
"sparklemotion",
"nokogiri"
] | ```
require 'nokogiri'
GC_HACK = false
GC.disable if GC_HACK # will delay "error : Name is not from the document dictionnary"
gc_count = 0
cycles = 0
loop do
cycles = cycles + 1
if GC_HACK
if gc_count > 10000
GC.enable
GC.start
p "gc start cycles: #{cycles}"
sleep 10... | document.rb:104: [BUG] object allocation during garbage collection phase | https://api.github.com/repos/sparklemotion/nokogiri/issues/109/comments | 27 | 2009-07-27T05:28:51Z | 2010-06-19T00:30:31Z | https://github.com/sparklemotion/nokogiri/issues/109 | 40,846 | 109 |
[
"sparklemotion",
"nokogiri"
] | Wondering about the possibility of things like to_xml/to_xhtml/etc... being able to write/stream to an IO or possibly even a proc (chunks at a time) instead of waiting for the entire document to be appended to a string and finally returned to the caller.
Would offer the same benefits as parsing from an IO or using a pu... | Encoder streaming | https://api.github.com/repos/sparklemotion/nokogiri/issues/108/comments | 4 | 2009-07-27T04:55:48Z | 2009-07-27T17:56:46Z | https://github.com/sparklemotion/nokogiri/issues/108 | 40,836 | 108 |
[
"sparklemotion",
"nokogiri"
] | Just what the title says. :-)
| Document encoding should be yielded on SAX parsing | https://api.github.com/repos/sparklemotion/nokogiri/issues/107/comments | 1 | 2009-07-27T04:41:59Z | 2009-08-10T02:39:48Z | https://github.com/sparklemotion/nokogiri/issues/107 | 40,833 | 107 |
[
"sparklemotion",
"nokogiri"
] | Extension commit f34f3bd needs to be ported.
| FFI needs unlinkedNodes to be optimized | https://api.github.com/repos/sparklemotion/nokogiri/issues/106/comments | 1 | 2009-07-27T02:35:22Z | 2010-05-04T10:58:12Z | https://github.com/sparklemotion/nokogiri/issues/106 | 40,808 | 106 |
[
"sparklemotion",
"nokogiri"
] | I think we should switch this to assume it is an HTML document when an IO is provided
| Nokogiri.parse always assumes XML with the document is an IO | https://api.github.com/repos/sparklemotion/nokogiri/issues/105/comments | 1 | 2009-07-27T01:43:14Z | 2009-07-27T01:54:51Z | https://github.com/sparklemotion/nokogiri/issues/105 | 40,792 | 105 |
[
"sparklemotion",
"nokogiri"
] | I would like to be able to attach a DTD to an HTML document so that the id() xpath function works.
| Figure out how to attach a DTD to a document | https://api.github.com/repos/sparklemotion/nokogiri/issues/104/comments | 1 | 2009-07-27T01:41:34Z | 2009-12-02T05:00:01Z | https://github.com/sparklemotion/nokogiri/issues/104 | 40,791 | 104 |
[
"sparklemotion",
"nokogiri"
] | Run the following under jruby 1.3.1 and nokogiri 1.3.2
On my machine, I get up to a "ran 800 times", then my machine is starting to run really slow.
The test eats up ~500Mb right off the bat, which leads me to believe memory is leaking.
```
require 'rubygems'
require 'nokogiri'
require 'open-uri'
REPORT_EVERY=100
NUM_... | Is jRuby/FFI leaking memory? | https://api.github.com/repos/sparklemotion/nokogiri/issues/103/comments | 6 | 2009-07-21T23:14:56Z | 2009-09-12T21:57:35Z | https://github.com/sparklemotion/nokogiri/issues/103 | 39,205 | 103 |
[
"sparklemotion",
"nokogiri"
] | I have this quick demo code to show the issue.
http://pastie.org/551329
| Self-closing tags getting messed up | https://api.github.com/repos/sparklemotion/nokogiri/issues/102/comments | 1 | 2009-07-19T18:13:14Z | 2009-07-19T18:14:06Z | https://github.com/sparklemotion/nokogiri/issues/102 | 38,375 | 102 |
[
"sparklemotion",
"nokogiri"
] | some benchmark numbers:
```
user system total real
nokogiri: 1000 docs, 10 stories, to string 5.180000 0.470000 5.650000 ( 5.663716)
nokogiri: 100 docs, 100 stories, to string 5.500000 0.480000 5.980000 ( 5.984575)
nokogiri: 10 doc... | improve performance building large documents with XML::Builder | https://api.github.com/repos/sparklemotion/nokogiri/issues/101/comments | 3 | 2009-07-18T00:23:57Z | 2009-07-18T00:29:14Z | https://github.com/sparklemotion/nokogiri/issues/101 | 37,943 | 101 |
[
"sparklemotion",
"nokogiri"
] | <pre>
>> a = Nokogiri::HTML.parse(%(<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"><body><fb:login-button></fb:login-button></body></html>))
=> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC... | namespaces stripped out of tag names | https://api.github.com/repos/sparklemotion/nokogiri/issues/100/comments | 2 | 2009-07-17T23:24:29Z | 2019-01-05T01:59:01Z | https://github.com/sparklemotion/nokogiri/issues/100 | 37,926 | 100 |
[
"sparklemotion",
"nokogiri"
] | I'll attach the test case.
Correct result is 10
[Hpricot] size = 10
[Nokogiri] size = 0
## Environment:
nokogiri: 1.3.2
warnings: []
libxml:
compiled: 2.7.3
loaded: 2.7.3
binding: extension
| Xpath search works with Hpricot, fails with Nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/99/comments | 2 | 2009-07-17T19:24:59Z | 2019-01-05T01:59:01Z | https://github.com/sparklemotion/nokogiri/issues/99 | 37,804 | 99 |
[
"sparklemotion",
"nokogiri"
] | 'gem install nokogiri' currently fails. Yet 'gem install nokogiri -v 1.3.1' is working just fine.
I was unable to determine the cause, there was no detailed log or output.
It appears to be some interaction/confusion with rake-compiler.
This is on CentOS 5 with ruby 1.8.5.
| Nokogiri 1.3.2 fails to build, yet 1.3.1 works | https://api.github.com/repos/sparklemotion/nokogiri/issues/98/comments | 2 | 2009-07-16T20:15:20Z | 2009-07-23T05:21:39Z | https://github.com/sparklemotion/nokogiri/issues/98 | 37,321 | 98 |
[
"sparklemotion",
"nokogiri"
] | Untitled | https://api.github.com/repos/sparklemotion/nokogiri/issues/97/comments | 1 | 2009-07-14T22:54:23Z | 2009-07-16T01:10:53Z | https://github.com/sparklemotion/nokogiri/issues/97 | 36,536 | 97 | |
[
"sparklemotion",
"nokogiri"
] | I've created a syntactically wrong XSD file and run:
Nokogiri::XML::Schema(File.read(XSD))
In Ruby 1.9.1 compiled from sources in Linux Ubuntu 64 bits, I get a segmentfault:
---
ruby1.9 nokogiri_02.rb /usr/local/lib/ruby1.9/gems/1.9.1/gems/nokogiri-1.3.2/lib/nokogiri/xml/schema.rb:37:in `from_document': Element '{... | Segmentation fault ruby 1.9.1p0 (2009-01-30 revision 21907) [x86_64-linux] | https://api.github.com/repos/sparklemotion/nokogiri/issues/96/comments | 2 | 2009-07-14T20:18:52Z | 2009-07-16T18:59:47Z | https://github.com/sparklemotion/nokogiri/issues/96 | 36,489 | 96 |
[
"sparklemotion",
"nokogiri"
] | each results in segmentation fault
nokogiri 1.3.2
ruby 1.8.7
linux and macos
steps to reproduce
require 'nokogiri'
open('testfile.xml', 'w'){|f|
f.write("<elements>\n");
20000.times{|i| f.write("<element id=\"#{i}\">stuff</element>\n")}
f.write("</elements>")}
Nokogiri::XML::Reader.from_io(open('testfile.xml'))... | Reader segmentation fault on each with attributes | https://api.github.com/repos/sparklemotion/nokogiri/issues/95/comments | 3 | 2009-07-12T07:15:21Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/95 | 35,707 | 95 |
[
"sparklemotion",
"nokogiri"
] | Take a look at:
http://gist.github.com/142934
| Nokogiri::XML::Document#add_child creates a two-nodes-rooted xml. | https://api.github.com/repos/sparklemotion/nokogiri/issues/94/comments | 10 | 2009-07-09T21:59:04Z | 2009-07-27T00:56:24Z | https://github.com/sparklemotion/nokogiri/issues/94 | 35,062 | 94 |
[
"sparklemotion",
"nokogiri"
] | The following test fails
```
require 'rubygems'
require 'nokogiri'
out = Nokogiri::HTML.parse("")
frag = Nokogiri::XML::Node.new("p", out)
foo = "this is a test (<em>Let's see</em>)"
frag.inner_html = foo
puts frag.inner_html == foo #false
puts frag.inner_html #)<em>Let's see</em>this is a test (
frag2 = Nok... | inner_html with parens gives incorrect results | https://api.github.com/repos/sparklemotion/nokogiri/issues/93/comments | 1 | 2009-07-05T04:39:11Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/93 | 33,317 | 93 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri currently does not do namespaced XPath queries properly.
Take the following XML:
sampledoc = <<-EOF;
<?xml version="1.0" ?>
<GenericXML xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex="http://example.org/">;
rdf:RDF
<rdf:Description rdf:about="http://example.org/one">;
ex:nameFoo/ex:name
/rd... | XPath is not namespace aware | https://api.github.com/repos/sparklemotion/nokogiri/issues/92/comments | 3 | 2009-07-04T10:22:42Z | 2019-01-05T01:59:01Z | https://github.com/sparklemotion/nokogiri/issues/92 | 33,176 | 92 |
[
"sparklemotion",
"nokogiri"
] | When trying to create a new document from part of an existing document via #dup a segfault results:
doc = Nokogiri::XML('<title>test</title>')
doc2 = Nokogiri::XML::Document.new
doc2.root = doc.root.dup(1)
| Creating a new document by with a root node cloned from another causes segfault | https://api.github.com/repos/sparklemotion/nokogiri/issues/91/comments | 6 | 2009-07-02T17:04:08Z | 2009-07-16T01:07:50Z | https://github.com/sparklemotion/nokogiri/issues/91 | 32,693 | 91 |
[
"sparklemotion",
"nokogiri"
] | Originally at http://jira.codehaus.org/browse/JRUBY-3781
FreeBSD 7.2/amd64, jruby 1.3.1, nokogiri 1.3.2-java, libxml2-2.6.32
---
Loading nokogiri fails with:
```
irb(main):002:0> require 'nokogiri'
ArgumentError: Invalid callback parameter type: STRING
from /home/lovec/bin/jruby/lib/ruby/1.8/ffi/ffi.rb:120:in `cre... | FFI: Invalid callback parameter type: STRING on FreeBSD/amd64 | https://api.github.com/repos/sparklemotion/nokogiri/issues/90/comments | 20 | 2009-06-30T11:31:12Z | 2009-09-29T21:13:18Z | https://github.com/sparklemotion/nokogiri/issues/90 | 31,886 | 90 |
[
"sparklemotion",
"nokogiri"
] | nokogiri parses the entire html document ignoring the xpath result, as my code shows the found code is correct(createaccount form) but the parsing not; it iterates over all the html instead of the searched code
http://pastebin.com/m4343fa1c
| parser handle the entire document instead of the search result | https://api.github.com/repos/sparklemotion/nokogiri/issues/89/comments | 1 | 2009-06-30T06:26:18Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/89 | 31,843 | 89 |
[
"sparklemotion",
"nokogiri"
] | ```
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>Example page</title>
</head>
<body>
<style type="text/css" media="screen, print">
@import 'http://wwwimg.bbc.co.uk/home/release-31-0/style/homepage.min.css';
... | Setting inner_html to empty string crashes nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/88/comments | 4 | 2009-06-24T08:04:09Z | 2009-07-16T00:13:41Z | https://github.com/sparklemotion/nokogiri/issues/88 | 30,025 | 88 |
[
"sparklemotion",
"nokogiri"
] | http://pastie.org/520797
as demonstrated requiring libxml stuffs up nokogiri's error handlers. this is especially difficult to trace if your application is using nokogiri but one of the plugin uses libxml-ruby. this is not a bug per-se in nokogiri but i would like to see this ironed out or atleast listed as an issue i... | nokogiri sax error handlers get fscked up when using libxml | https://api.github.com/repos/sparklemotion/nokogiri/issues/87/comments | 4 | 2009-06-22T21:29:14Z | 2016-02-17T03:08:46Z | https://github.com/sparklemotion/nokogiri/issues/87 | 29,505 | 87 |
[
"sparklemotion",
"nokogiri"
] | SAX parser start_element_ns is broken when it comes to attributes. The start_element_ns method should take a list of Attribute objects, not a hash. Namespace names are not unique, so we _must_ pass an href along with the attribute.
Here is an example of two nodes with attributes of the same name, but the attributes ... | SAX parser start_element_ns is broken wrt to attributes | https://api.github.com/repos/sparklemotion/nokogiri/issues/86/comments | 2 | 2009-06-19T23:27:33Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/86 | 28,791 | 86 |
[
"sparklemotion",
"nokogiri"
] | I'm reading in an HTML, inserting a node and then serializing it. Here's before and after for one particular SCRIPT block:
<pre>
<script type="text/javascript">
/* <![CDATA[ */
var jsexec = dj.util.JSExec(dj.context.jsexec);
if (window.AT_VARS.articleType.indexOf('The+Mossberg+Solution') > -1) { globalP... | Bizarre CDATA serialization | https://api.github.com/repos/sparklemotion/nokogiri/issues/85/comments | 7 | 2009-06-19T17:09:24Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/85 | 28,646 | 85 |
[
"sparklemotion",
"nokogiri"
] | Perhaps I'm using the schema code incorrectly, but assuming schemas 'foo/foo.xsd' and 'bar/bar.xsd', where foo/foo.xsd has an xsd:include for '../bar/bar.xsd', the following code fails when run from the parent directory:
```
schema = Nokogiri::XML::Schema(File.new('foo/foo.xsd'))
```
The error generated is `Element '... | Problem with xsd:include and relative paths | https://api.github.com/repos/sparklemotion/nokogiri/issues/84/comments | 5 | 2009-06-18T18:56:13Z | 2009-12-10T22:16:07Z | https://github.com/sparklemotion/nokogiri/issues/84 | 28,295 | 84 |
[
"sparklemotion",
"nokogiri"
] | I defined Nokogiri::XML::Node#== for myself in 1.2.3 to compare only by attributes/content/number of children. This worked well.
Now in 1.3.1 (maybe 1.3 too) it doesn't work anymore. Nokogiri::NodeSet#include? doesn't use Nokogiri::XML::Node#== anymore.
I think this is a bug.
Thank you.
| XML::NodeSet#include? doesn't use XML::Node#== | https://api.github.com/repos/sparklemotion/nokogiri/issues/83/comments | 3 | 2009-06-16T18:16:11Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/83 | 27,481 | 83 |
[
"sparklemotion",
"nokogiri"
] | <pre>
@var = 1
# this works
b = Nokogiri::XML::Builder.new { |xml| }
b.tag { @var+1 }
# this fails when not initialized with { |xml| }
b = Nokogiri::XML::Builder.new
b.tag { @var+1 }
</pre>
| builder initialization issue? | https://api.github.com/repos/sparklemotion/nokogiri/issues/82/comments | 1 | 2009-06-16T15:50:29Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/82 | 27,432 | 82 |
[
"sparklemotion",
"nokogiri"
] | Tests fails on JRuby 1.3.0 and 1.3.1. Notably, 1.3.0RC2 does not break. WTF?
| jruby breakage - 1.3.0 and 1.3.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/81/comments | 3 | 2009-06-16T01:42:00Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/81 | 27,237 | 81 |
[
"sparklemotion",
"nokogiri"
] | The following simple test works on my windows box, but is seg faulting on my host. They are running:
- nokogiri (1.3.1)
- ruby 1.8.5 (2006-08-25) [i386-linux]
I'm not sure of the system setup (some flavour of linux) but I could rustle up some more info if it would be helpful.
Could you please check this problem out?... | node.rb:653: segmentation fault on Linux when parsing meta tag | https://api.github.com/repos/sparklemotion/nokogiri/issues/80/comments | 1 | 2009-06-15T00:33:57Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/80 | 26,834 | 80 |
[
"sparklemotion",
"nokogiri"
] | the nokogiri gem is not usable by default on 64b capable snowleopard machines (core 2 duo +), it bombs out in an architecture mismatch.
as a temporary workaround, one can run ruby in 32 bit
arch -i386 ruby ...
or tweak extconf.rb
ENV["ARCHFLAGS"] = "-arch #{`uname -p` =~ /powerpc/ ? 'ppc' : 'x86_64'}"
| 64 bit / snowleopard failure - native extension has hardcoded archflags | https://api.github.com/repos/sparklemotion/nokogiri/issues/79/comments | 2 | 2009-06-14T23:57:26Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/79 | 26,832 | 79 |
[
"sparklemotion",
"nokogiri"
] | I already asked this question on nokogiri-talk, but haven't got any replies. So I'm assuming this is a bug. I'm trying to add a chunk of HTML from a rails partial, which includes some script and style tags. Unfortunately, if I try to add this raw html with Node or NodeSet.before/after, all the contents of style and scr... | Node/NodeSet.before and after methods scrub script and style tags | https://api.github.com/repos/sparklemotion/nokogiri/issues/78/comments | 3 | 2009-06-12T22:39:11Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/78 | 26,384 | 78 |
[
"sparklemotion",
"nokogiri"
] | Am I missing something? Thx!
<pre><code>
testnode = Nokogiri::XML::Node.new('test', doc)
testnode.content = "&<>" + '"' + "'"
puts testnode.to_s
#=> <test>&<>"'</test>
</code></pre>
| Single and double quote not getting encoded with Nokogiri::XML::Node#content= | https://api.github.com/repos/sparklemotion/nokogiri/issues/77/comments | 1 | 2009-06-09T17:56:44Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/77 | 24,902 | 77 |
[
"sparklemotion",
"nokogiri"
] | Hey,
It seems that Nokogiri has problem with & inside attributes. if the & is not escaped, it raises an error, which seems logical :
Couldn't parse chunk (RuntimeError)
However, if the & is escaped in &, then, the sax parser actually sees & ... which is not what we want!
Here is a sample code :
```
... | Problem with & character and SaxPushParser (Maybe SaxParser as well..) | https://api.github.com/repos/sparklemotion/nokogiri/issues/76/comments | 3 | 2009-06-08T20:17:17Z | 2013-12-10T14:59:58Z | https://github.com/sparklemotion/nokogiri/issues/76 | 24,554 | 76 |
[
"sparklemotion",
"nokogiri"
] | The documentation doesn't mention `Nokogiri::XML::Namespace#href` and `Nokogiri::XML::Namespace#prefix`, which is rather annoying, since namespaces diverge from earlier versions of Nokogiri.
| Lacking documentation for Nokogiri::XML::Namespace | https://api.github.com/repos/sparklemotion/nokogiri/issues/75/comments | 1 | 2009-06-08T15:32:00Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/75 | 24,441 | 75 |
[
"sparklemotion",
"nokogiri"
] | Is this how NodeSet#search ought to behave?
```
require 'nokogiri'
xml = Nokogiri::XML <<-EOS
<root><x><m id="a" class="q">dummy</m><n id="b" class="q">dummy</n></x></root>
EOS
nodeset = xml.search('.q')
p nodeset
<m id="a" class="q">dummy</m><n id="b" class="q">dummy</n>
p nodeset.search('#a')
=> nil
```
nil? ... | NodeSet#search behavior | https://api.github.com/repos/sparklemotion/nokogiri/issues/74/comments | 3 | 2009-06-08T03:54:15Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/74 | 24,293 | 74 |
[
"sparklemotion",
"nokogiri"
] | Because a CSS search on a Node only returns children of that node, a search on NodeSet will search across the collective children of the nodes in the set.
We should return matching toplevel nodes.
tenderlove suggested that CSS queries on a NodeSet should get translated as follows:
```
"div" => "self::div | .//div"
`... | CSS queries on NodeSet should return matching toplevel nodes | https://api.github.com/repos/sparklemotion/nokogiri/issues/73/comments | 2 | 2009-06-07T22:09:09Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/73 | 24,219 | 73 |
[
"sparklemotion",
"nokogiri"
] | I get this output:
serabe@Sylar:~/Programming/projects/nokogiri (master)
$ ruby -v test/xml/test_namespace.rb
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
/home/serabe/Programming/projects/nokogiri/test/helper.rb:12: libxml version info: {"warnings"=>[], "libxml"=>{"loaded"=>"2.6.32", "binding"=>"extension", "c... | One test in test/xml/test_namespace.rb is not passing | https://api.github.com/repos/sparklemotion/nokogiri/issues/72/comments | 2 | 2009-06-06T20:36:16Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/72 | 23,940 | 72 |
[
"sparklemotion",
"nokogiri"
] | File looks like the following:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
soapenv:Body
<loginResponse xmlns="http://sts.idm.telekom.com/schema/"... | Can't find certain elements in a parsed XML file (neither css nor xpath) | https://api.github.com/repos/sparklemotion/nokogiri/issues/71/comments | 3 | 2009-06-05T21:14:20Z | 2019-01-05T01:59:00Z | https://github.com/sparklemotion/nokogiri/issues/71 | 23,634 | 71 |
[
"sparklemotion",
"nokogiri"
] | I'm trying to come up with a simple test case to reproduce this (and will update this issue when I have), but the segfault happened on line 326 of nokogiri/xml/node.rb:
key = ['xmlns', nd.prefix].compact.join(':')
The code reproducing this takes a sizable list of nodes (all in the same namespace) and evaluates som... | Segfault in Nokogiri 1.3.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/70/comments | 1 | 2009-06-05T16:44:38Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/70 | 23,528 | 70 |
[
"sparklemotion",
"nokogiri"
] | Sorry to have to bring this up but I've spent the past couple of days trying to work this out for myself and wondered if there was an answer somewhere. I'm on Mac OS 10.5.7 and previously used the default libxml2 installed with Leopard. When I updated nokogiri the other day I started getting the above message about hav... | I_KNOW_I_AM_USING_AN_OLD_AND_BUGGY_VERSION_OF_LIBXML2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/69/comments | 16 | 2009-06-03T13:59:26Z | 2009-08-25T03:03:48Z | https://github.com/sparklemotion/nokogiri/issues/69 | 22,574 | 69 |
[
"sparklemotion",
"nokogiri"
] | Old problem with a new twist. Have the latest libxml2 installed. Happens in 1.3 not in 1.2 which is why I can continue developing for the moment
| Symbol not found: _xmlRelaxNGSetParserStructuredErrors | https://api.github.com/repos/sparklemotion/nokogiri/issues/68/comments | 4 | 2009-06-01T20:48:39Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/68 | 21,834 | 68 |
[
"sparklemotion",
"nokogiri"
] | According to [the documentation](http://nokogiri.rubyforge.org/nokogiri/Nokogiri/XML.html#substitute-entities--method), you can change the internal string encoding that Nokogiri uses. There are a couple of problems with this.
First, it doesn't work as advertised. If you set `substitute_entities` to a boolean, you get ... | substitute_entities | https://api.github.com/repos/sparklemotion/nokogiri/issues/67/comments | 5 | 2009-05-28T13:23:05Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/67 | 20,292 | 67 |
[
"sparklemotion",
"nokogiri"
] | Hey,
I am trying to install Nokogiri with Ruby 1.9.
I have Frex installed, but I still get this error :
```
/usr/local/lib/ruby/gems/1.9.1/gems/tenderlove-frex-1.0.1.20090313144615/lib/frex/rexcmd.rb:66:in `initialize': undefined method `collect' for #<String:0xa0cba98> (NoMethodError)
from /usr/local/lib/ruby/ge... | Problem with Frexn Nokogiri and Ruby 1.9 | https://api.github.com/repos/sparklemotion/nokogiri/issues/66/comments | 2 | 2009-05-27T15:51:32Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/66 | 19,925 | 66 |
[
"sparklemotion",
"nokogiri"
] | should be in JRuby 1.3 final, not sure about MRI-FFI right now. in particular, this can be used in SAX parser implementation.
| use get_array_of_pointer for performance improvement | https://api.github.com/repos/sparklemotion/nokogiri/issues/65/comments | 1 | 2009-05-27T03:15:10Z | 2009-11-25T04:42:52Z | https://github.com/sparklemotion/nokogiri/issues/65 | 19,738 | 65 |
[
"sparklemotion",
"nokogiri"
] | ```
frag = Nokogiri::HTML.fragment("<p>foo</p>")
frag.to_xml # => "<p>foo</p>\n"
frag.serialize # => "<p>foo</p>\n"
```
but
```
frag.to_s # => "<><p>foo</p></>"
frag.to_html # => "<><p>foo</p></>"
```
| fragment serialization is inconsistent | https://api.github.com/repos/sparklemotion/nokogiri/issues/64/comments | 2 | 2009-05-21T03:17:48Z | 2009-07-13T11:34:12Z | https://github.com/sparklemotion/nokogiri/issues/64 | 17,665 | 64 |
[
"sparklemotion",
"nokogiri"
] | Run following program with and without HPRICOT variable and see the difference.
Cheers,
Han Holl
# !/usr/bin/ruby -w
require 'rubygems'
gem 'hpricot', '=0.6.164'
gem 'mechanize', '=0.9.2'
require 'hpricot'
require 'mechanize'
require 'yaml'
require 'pp'
if ENV['HPRICOT']
WWW::Mechanize.html_parser = Hpricot
end
cl... | Nokogiri doesn not parse page correctly | https://api.github.com/repos/sparklemotion/nokogiri/issues/63/comments | 3 | 2009-05-19T12:41:36Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/63 | 16,814 | 63 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri won't find iconv.h in /usr/include under Cygwin.
```
$ cat mkmf.log
find_header: checking for iconv.h in /usr/include,/opt/local/include,/usr/local/
include,/usr/include... -------------------- no
"gcc -E -I. -I/usr/lib/ruby/1.8/i386-cygwin -I. -g -O2 -g -DXP_UNIX -O3 -
Wall -Wcast-qual -Wwrite-string... | Won't build under Cygwin: can't find iconv.h | https://api.github.com/repos/sparklemotion/nokogiri/issues/62/comments | 2 | 2009-05-19T01:38:22Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/62 | 16,664 | 62 |
[
"sparklemotion",
"nokogiri"
] | If possible, separating the XML namespaces from the attributes in the #start_element hook would be a big win.
And sending back the values as already-formed hashes would be nice too.
| SAX Push Parser should yield more specific information | https://api.github.com/repos/sparklemotion/nokogiri/issues/61/comments | 6 | 2009-05-17T16:42:48Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/61 | 16,078 | 61 |
[
"sparklemotion",
"nokogiri"
] | Add a method to node to get back a list of namespaces.
| add Node#namespace_nodes | https://api.github.com/repos/sparklemotion/nokogiri/issues/60/comments | 1 | 2009-05-17T02:24:25Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/60 | 15,966 | 60 |
[
"sparklemotion",
"nokogiri"
] | You need to pull the pointer out of the temporary memory passed as the second arg to xmlSplitQName2(), after it returns.
```
prefix = FFI::MemoryPointer.new :pointer
localname = LibXML.xmlSplitQName2(name, prefix)
prefix = prefix.get_pointer(0)
```
| FFI: Reader.attribute does not use pointer returned from xmlSplitQName2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/59/comments | 1 | 2009-05-16T18:41:46Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/59 | 15,888 | 59 |
[
"sparklemotion",
"nokogiri"
] | In the FFI version of XML::Reader.from_io, the proc instance returned from IoCallbacks.reader(io) should be passed in to initialize as the source, so it is kept alive as long as the reader is. If it is not, then the native callback memory may be freed before the Reader instance is finished with it, and the VM will cra... | FFI: Reader.from_io does not keep reference to callback alive | https://api.github.com/repos/sparklemotion/nokogiri/issues/58/comments | 1 | 2009-05-16T18:35:38Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/58 | 15,887 | 58 |
[
"sparklemotion",
"nokogiri"
] | There is a subtle bug in Reader.from_memory:
```
def self.from_memory(buffer, url=nil, encoding=nil, options=0) # :nodoc:
raise(ArgumentError, "string cannot be nil") if buffer.nil?
reader_ptr = LibXML.xmlReaderForMemory(buffer, buffer.length, url, encoding, options)
raise(RuntimeError, "couldn't create a ... | FFI: Reader.from_memory needs to explicitly allocate native memory | https://api.github.com/repos/sparklemotion/nokogiri/issues/57/comments | 1 | 2009-05-16T18:24:44Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/57 | 15,882 | 57 |
[
"sparklemotion",
"nokogiri"
] | I have a failing test at:
http://github.com/halorgium/nokogiri/commit/0c32aa9b753aa2aa6f331524ec807fdd5c37468c
| Subclasses of Nokogiri::XML::Node are not able to have #initialize overriden | https://api.github.com/repos/sparklemotion/nokogiri/issues/56/comments | 2 | 2009-05-16T11:19:28Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/56 | 15,799 | 56 |
[
"sparklemotion",
"nokogiri"
] | Here's an example. google-try contains nothing but the meta tag as seen in the read.
```
j = Nokogiri::HTML.parse('<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">')
=> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
```
<html><head><m... | memory corruption from meta tags claiming a charset of ISO-8859-1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/55/comments | 13 | 2009-05-16T06:55:23Z | 2009-08-12T23:51:04Z | https://github.com/sparklemotion/nokogiri/issues/55 | 15,780 | 55 |
[
"sparklemotion",
"nokogiri"
] | Subclassing a node does not work well.
```
class MyXMLNode < Nokogiri::XML::Node
end
MyXMLNode.new("foo", @doc).class => Nokogiri::XML::Element
```
| Cannot subclass Node | https://api.github.com/repos/sparklemotion/nokogiri/issues/54/comments | 1 | 2009-05-15T23:33:38Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/54 | 15,690 | 54 |
[
"sparklemotion",
"nokogiri"
] | Right now, it is difficult to locate an attribute that has a namespace. We need to make that easy.
For example:
```
<root xmlns:aaron='http://tlm.com/'>
<foo one='two' aaron:one='three' />
</root>
```
The foo node has two attributes, but using Node#[] can only get you the first one declared. Ideally, it should s... | Finding attributes that have a namespace | https://api.github.com/repos/sparklemotion/nokogiri/issues/53/comments | 2 | 2009-05-15T17:27:34Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/53 | 15,570 | 53 |
[
"sparklemotion",
"nokogiri"
] | I think we need a configuration object similar to the configuration objects for the save methods. I hate using these freaking constants.
I want to implement something like this:
```
Nokogiri::XML(File.read(ARGV[0])) do |cfg|
cfg.strict.no_network
end
```
| Nokogiri.XML() should take a block | https://api.github.com/repos/sparklemotion/nokogiri/issues/52/comments | 2 | 2009-05-15T04:49:24Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/52 | 15,429 | 52 |
[
"sparklemotion",
"nokogiri"
] | we should open JIRA tickets for vararg support in FFI callbacks
then we should format the libxml error messages properly in the error/exception callbacks
| FFI: support varargs in error/exception callbacks | https://api.github.com/repos/sparklemotion/nokogiri/issues/51/comments | 2 | 2009-05-14T22:51:12Z | 2010-05-04T10:58:42Z | https://github.com/sparklemotion/nokogiri/issues/51 | 15,318 | 51 |
[
"sparklemotion",
"nokogiri"
] | see http://jira.codehaus.org/browse/JRUBY-3636 for details
| use FFI::IO.native_read in IoCallbacks once it's released | https://api.github.com/repos/sparklemotion/nokogiri/issues/50/comments | 2 | 2009-05-14T22:49:39Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/50 | 15,317 | 50 |
[
"sparklemotion",
"nokogiri"
] | i wish i could delete this ticket
| <ignore> | https://api.github.com/repos/sparklemotion/nokogiri/issues/49/comments | 1 | 2009-05-14T22:49:39Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/49 | 15,316 | 49 |
[
"sparklemotion",
"nokogiri"
] | id2ref is slow and may be turned off by default in JRuby 1.4.
discussed with wmeissner, and the probable path is to build an API into FFI that is an hash table containing address => weakref(ruby_object).
| FFI ruby object caching should be rewritten to not use id2ref | https://api.github.com/repos/sparklemotion/nokogiri/issues/48/comments | 6 | 2009-05-14T22:45:06Z | 2010-04-07T16:05:30Z | https://github.com/sparklemotion/nokogiri/issues/48 | 15,314 | 48 |
[
"sparklemotion",
"nokogiri"
] | We recently switched from Builder to Nokogiri for XML generation, with big speed improvements.
And now we're looking to update XML reading, however, legacy data has some standard incorrect fields that worked with Rails XmlSimple (which uses REXML) but does not work with Nokogiri. Here is an example:
```
>> xml = "<d... | Possible missupport of invalid XML attributes | https://api.github.com/repos/sparklemotion/nokogiri/issues/47/comments | 4 | 2009-05-13T00:43:56Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/47 | 14,287 | 47 |
[
"sparklemotion",
"nokogiri"
] | We might want to write up some docs that present functionality broken down the same way that jQuery's docs do it (which I find totally useful and obvious):
- core (parsing)
- selectors
- attributes
- traversing
- manipulation
| Documentation overhaul | https://api.github.com/repos/sparklemotion/nokogiri/issues/46/comments | 6 | 2009-05-12T06:02:37Z | 2009-11-25T14:59:51Z | https://github.com/sparklemotion/nokogiri/issues/46 | 13,922 | 46 |
[
"sparklemotion",
"nokogiri"
] | We should probably alias #clone to #dup.
| Node#clone segfaults | https://api.github.com/repos/sparklemotion/nokogiri/issues/45/comments | 1 | 2009-05-12T05:58:03Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/45 | 13,920 | 45 |
[
"sparklemotion",
"nokogiri"
] | frequently getting the following error when running on MRI FFI:
```
/home/mike/code/nokogiri/test/helper.rb:11: libxml version info: {"nokogiri"=>"1.2.4", "warnings"=>[], "libxml"=>{"platform"=>"ruby", "binding"=>"ffi", "loaded"=>"2.6.31"}}
Loaded suite -e
Started
...
Finished in 3.285882 seconds.
1) Error:... | recycled object error | https://api.github.com/repos/sparklemotion/nokogiri/issues/44/comments | 2 | 2009-05-12T03:00:54Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/44 | 13,850 | 44 |
[
"sparklemotion",
"nokogiri"
] | From Wayne Meissner:
> I noticed in nokogiri, in Document.read_io that you use LibXML.memcpy to transfer data from a ruby string to a native memory buffer.
>
> It'll be much faster to use AbstractMemory#put_bytes(), as the memcpy mapping will triple copy the string data on JRuby.
>
> basically, what happens behind t... | replace memcpy with AbstractMemory#put_bytes() in FFI implementation | https://api.github.com/repos/sparklemotion/nokogiri/issues/43/comments | 1 | 2009-05-11T13:33:45Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/43 | 13,564 | 43 |
[
"sparklemotion",
"nokogiri"
] | implement NodeSet#slice | https://api.github.com/repos/sparklemotion/nokogiri/issues/42/comments | 1 | 2009-05-08T22:00:23Z | 2010-03-18T05:22:44Z | https://github.com/sparklemotion/nokogiri/issues/42 | 12,943 | 42 | |
[
"sparklemotion",
"nokogiri"
] | implement NodeSet#index | https://api.github.com/repos/sparklemotion/nokogiri/issues/41/comments | 1 | 2009-05-08T21:59:49Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/41 | 12,942 | 41 | |
[
"sparklemotion",
"nokogiri"
] | This might be pretty nice as well:
http://xmlsoft.org/html/libxml-xpathInternals.html#xmlXPathNodeSetContains
| Implement NodeSet#include? | https://api.github.com/repos/sparklemotion/nokogiri/issues/40/comments | 1 | 2009-05-08T16:57:42Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/40 | 12,835 | 40 |
[
"sparklemotion",
"nokogiri"
] | This might be nice:
http://xmlsoft.org/html/libxml-xpathInternals.html#xmlXPathHasSameNodes
| Implement NodeSet#== | https://api.github.com/repos/sparklemotion/nokogiri/issues/39/comments | 3 | 2009-05-08T16:56:09Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/39 | 12,834 | 39 |
[
"sparklemotion",
"nokogiri"
] | We should probably rewrite this in C for a speed boost:
http://xmlsoft.org/html/libxml-xpathInternals.html#xmlXPathNodeSetMerge
| Convert NodeSet#+ to C | https://api.github.com/repos/sparklemotion/nokogiri/issues/38/comments | 1 | 2009-05-08T16:55:35Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/38 | 12,833 | 38 |
[
"sparklemotion",
"nokogiri"
] | We should implement NodeSet intersection:
http://xmlsoft.org/html/libxml-xpathInternals.html#xmlXPathIntersection
| implement NodeSet#& (intersection) | https://api.github.com/repos/sparklemotion/nokogiri/issues/37/comments | 1 | 2009-05-08T16:54:45Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/37 | 12,832 | 37 |
[
"sparklemotion",
"nokogiri"
] | ```
require 'nokogiri'
require 'open-uri'
url = 'http://www.google.com/advanced_search?hl=en'
doc = Nokogiri.parse( open(url).read )
list = [
'input[@name^="as_"]', # okay
'input[@name^= "as_"]', # error
'input[@name ^="as_"]', # error
'input[@name ^= "as_"]' # error
]
list.each do | css |
begin
doc.search(... | css attribute conditionals can break | https://api.github.com/repos/sparklemotion/nokogiri/issues/36/comments | 1 | 2009-05-07T21:38:07Z | 2009-07-13T11:34:13Z | https://github.com/sparklemotion/nokogiri/issues/36 | 12,542 | 36 |
[
"sparklemotion",
"nokogiri"
] | There seems to be a problem with parsing if the html tags are irregular.
For example, in an iframe tag, if the 'height' attribute is present but
no value is written for it, then an error occurs saying that "odd number
of arguments for hash".
Please suggest a solution for this problem.
| odd number of arguments | https://api.github.com/repos/sparklemotion/nokogiri/issues/35/comments | 8 | 2009-05-06T05:13:12Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/35 | 11,565 | 35 |
[
"sparklemotion",
"nokogiri"
] | I've got two nodesets. When I try:
```
nodeset1 << nodeset2
```
... Nokogiri laughs at me with:
```
ArgumentError: node must be a Nokogiri::XML::Node
from (irb):29:in `<<'
from (irb):29
from :0
```
Ironically, the elements of a NodeSet are Nokogiri::XML::Elements, which is just an empty subclass of Noko... | Nokogiri::XML::NodeSet << operator refuses to add Nokogiri::XML::Elements | https://api.github.com/repos/sparklemotion/nokogiri/issues/34/comments | 3 | 2009-05-06T01:50:41Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/34 | 11,517 | 34 |
[
"sparklemotion",
"nokogiri"
] | I haven't worked out a way to create a simple example of this, but when I tried to use webrat (which requires nokogiri) I found that my existing tests (about 10 test classes run from rake test:integration) when run together (not singly) caused a seg fault or a bus error (this was before I wrote any specific webrat test... | Seg Faults and Bus Errors with 1.2.3 but not with 1.2.2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/33/comments | 45 | 2009-05-05T10:53:36Z | 2016-02-17T03:00:45Z | https://github.com/sparklemotion/nokogiri/issues/33 | 11,140 | 33 |
[
"sparklemotion",
"nokogiri"
] | With an XSLT stylesheet that's not well-formed, this result_doc = xslt.transform(doc) brings a segfault (at least in this specific case).
Is there a way to attach a file? For now, it's here:
http://nokogiri.lighthouseapp.com/attachments/116557/noko.rb
| Tobi Reif XSLT Syntax Error -> Segmentation Fault | https://api.github.com/repos/sparklemotion/nokogiri/issues/32/comments | 4 | 2009-05-03T09:52:50Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/32 | 10,231 | 32 |
[
"sparklemotion",
"nokogiri"
] | $ cat test.rb
require "rubygems"
require "nokogiri"
doc = Nokogiri::HTML(File.read(ARGV[0]))
p doc
$ jruby -w test.rb data.html
/Users/francois/Library/Java/JRuby/jruby-1.2.0/lib/ruby/gems/1.8/gems/nokogiri-1.2.3-java/lib/nokogiri/xml/node.rb:180: undefined method `next_sibling' for class`Nokogiri::XML::Node' (NameE... | Requiring Nokogiri 1.2.3 under JRuby 1.2 does not load | https://api.github.com/repos/sparklemotion/nokogiri/issues/31/comments | 1 | 2009-05-01T20:26:39Z | 2009-07-16T08:37:49Z | https://github.com/sparklemotion/nokogiri/issues/31 | 9,821 | 31 |
[
"sparklemotion",
"nokogiri"
] | This code raises a RuntimeError with the message `"Could not reparent node (xmlDocCopyNode)"`:
```
h = Nokogiri::HTML.parse("<p>sometext</p>")
n = h.at('p')
n.add_next_sibling(n.children)
```
We should probably pick one of these two things to do instead:
1. raise an error that says "Hey, dummy, that's a NodeSet, not... | adding a non-empty NodeSet raises an obscure error | https://api.github.com/repos/sparklemotion/nokogiri/issues/30/comments | 2 | 2009-04-29T08:18:21Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/30 | 8,639 | 30 |
[
"sparklemotion",
"nokogiri"
] | This code segfaults ruby and I think that's pretty charming. Haven't dug into it, yet.
```
h = Nokogiri::HTML.parse("<p></p>")
node = h.at('p')
node.add_next_sibling(node.children)
```
| segfault when adding a blank NodeSet as next sibling | https://api.github.com/repos/sparklemotion/nokogiri/issues/29/comments | 3 | 2009-04-29T07:43:17Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/29 | 8,625 | 29 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri::XML::Reader.from_memory needs access to its first argument for the whole lifetime of the Reader, but doesn't tell the garbage collector about it. SEGFAULTs may or may not happen afterwards, depends how the memory is reused.
| Usage of Nokogiri::XML::Reader.from_memory may corrupt memory | https://api.github.com/repos/sparklemotion/nokogiri/issues/28/comments | 1 | 2009-04-27T22:35:46Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/28 | 7,893 | 28 |
[
"sparklemotion",
"nokogiri"
] | copy/paste/run the following code. should explain itself...
require 'rubygems'
require 'nokogiri'
@builder = Nokogiri::HTML::Builder.new do |doc|
doc.html {
doc.head {
doc.title "FOOBAR"
}
doc.body {
# THIS WORKS LIKE A CHARM
doc.send(:h1, "A", { :class => 'foo'})
# THIS ONLY WOR... | generating a <p> calls Kernel#p when using send | https://api.github.com/repos/sparklemotion/nokogiri/issues/27/comments | 4 | 2009-04-27T12:22:47Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/27 | 7,651 | 27 |
[
"sparklemotion",
"nokogiri"
] | Add documentation to Nokogiri::XML::SAX::Parser
| Add documentation to Nokogiri::XML::SAX::Parser | https://api.github.com/repos/sparklemotion/nokogiri/issues/25/comments | 1 | 2009-04-24T06:50:17Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/25 | 6,234 | 25 |
[
"sparklemotion",
"nokogiri"
] | Well, I have been trying to install nokogiri on my Ubuntu 8.10 which has libxml2 version 2.6.32. Is there a version of nokogiri that works with that libxml2 version?
| Is there a version of Nokogiri that works with libxml2 shipped with Ubuntu 8.10 | https://api.github.com/repos/sparklemotion/nokogiri/issues/24/comments | 11 | 2009-04-23T14:48:25Z | 2010-01-21T19:36:36Z | https://github.com/sparklemotion/nokogiri/issues/24 | 5,921 | 24 |
[
"sparklemotion",
"nokogiri"
] | Hello,
I have posted the message in Google Groups - http://groups.google.com/group/ruby-talk-google/browse_thread/thread/fde1cde1094e0549/ea7e7d0fe029744d
I wrote the test which now fails in my test case: http://gist.github.com/100313
P.S. Nokogiri::LIBXML_VERSION outputs "2.7.3", Nokogiri::VERSION - "1.2.3".
| Nokogiri::HTML::Element#line | https://api.github.com/repos/sparklemotion/nokogiri/issues/23/comments | 2 | 2009-04-23T04:38:39Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/23 | 5,740 | 23 |
[
"sparklemotion",
"nokogiri"
] | this code, run under valgrind, demonstrates:
```
doc = Nokogiri::XML <<-EOHTML
<root>
<a>
<b/>
</a>
</root>
EOHTML
root = doc.at("root")
a = root.at("a")
b = a.at("b")
a.add_next_sibling(b.unlink)
puts doc.to_s
```
| reparenting an unlinked node results in double-free | https://api.github.com/repos/sparklemotion/nokogiri/issues/22/comments | 1 | 2009-04-22T05:06:31Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/22 | 5,249 | 22 |
[
"sparklemotion",
"nokogiri"
] | Write an rdoc test to make sure that everything has RDoc.
| Write an rdoc test | https://api.github.com/repos/sparklemotion/nokogiri/issues/21/comments | 1 | 2009-04-22T05:04:27Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/21 | 5,248 | 21 |
[
"sparklemotion",
"nokogiri"
] | Hello!
When building a node, it seems that special characters are encoded :
```
irb(main):004:0> doc = Nokogiri::XML::Document.new
=> <?xml version="1.0"?>
irb(main):005:0> n = Nokogiri::XML::Node.new("toto", doc)
=> <toto/>
irb(main):013:0> n["salut"]= "hum&"
=> "hum&"
irb(main):014:0> doc
=> <?xml version="1.0"?... | Decoding characters? | https://api.github.com/repos/sparklemotion/nokogiri/issues/20/comments | 5 | 2009-04-21T06:08:48Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/20 | 4,434 | 20 |
[
"sparklemotion",
"nokogiri"
] | Make the HTML SAX interface match the xml interface
| Make the HTML SAX interface match the xml interface | https://api.github.com/repos/sparklemotion/nokogiri/issues/19/comments | 1 | 2009-04-21T00:48:34Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/19 | 4,323 | 19 |
[
"sparklemotion",
"nokogiri"
] | We're using the Builder in Babylon to build XML stanzas (XMPP).
After running for a few hours each of our application was gaining a lot of weight... It took some hours to track the memory leaks downs (with Dike), and it seems that it comes from the Nokogiri::XML::Builder.
It seems that all the variables in the contex... | Huge Memory Leak in the Nokogiri::XML::Builder | https://api.github.com/repos/sparklemotion/nokogiri/issues/18/comments | 15 | 2009-04-18T04:36:39Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/18 | 2,343 | 18 |
[
"sparklemotion",
"nokogiri"
] | add_namespace fails when it is passed an empty string. It works when nil though, so maybe you should consider that "" is equivalent to no prefix?
Thx,
| Bug with Nokogiri::XML::add_namespace(prefix, href) when prefix == "" | https://api.github.com/repos/sparklemotion/nokogiri/issues/17/comments | 4 | 2009-04-17T21:58:37Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/17 | 2,075 | 17 |
[
"sparklemotion",
"nokogiri"
] | > > fx = Nokogiri::XML(open('http://www.bankofcanada.ca/rss/fx/noon/fx-noon-all.xml'))
> > fx.xpath('/rdf:RDF/item')
> > => nil
> > fx.xpath('rdf:RDF/_.each do |tag|
> > p tag.name
> > p xchg.path
> > end
> > "channel"
> > "/rdf:RDF/_[1]"
> > "item"
> > "/rdf:RDF/_[2]"
> > "item"
> > "/rdf:RDF/_[3]"
> > "item"
> ... | xpath does not find nested tags by name | https://api.github.com/repos/sparklemotion/nokogiri/issues/16/comments | 2 | 2009-04-17T19:37:53Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/16 | 1,890 | 16 |
[
"sparklemotion",
"nokogiri"
] | Microsoft Word notably generates this kind of HTML
| don't blow up on HTML nodes with undeclared namespaces | https://api.github.com/repos/sparklemotion/nokogiri/issues/15/comments | 1 | 2009-04-17T16:53:12Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/15 | 1,697 | 15 |
[
"sparklemotion",
"nokogiri"
] | Make sure the SAX parsers have RDoc
| SAX parser RDoc | https://api.github.com/repos/sparklemotion/nokogiri/issues/14/comments | 1 | 2009-04-16T21:16:07Z | 2009-07-13T11:34:14Z | https://github.com/sparklemotion/nokogiri/issues/14 | 215 | 14 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.