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" ]
I have an xml document with the following content: http://gist.github.com/286925 Nokogiri ( and I'm guessing its libxml2 that actually is doing this and then passing it to nokogiri ) decodes the encoded HTML entities in the attribute values. There is no way to get the raw string data from a nodes attribute values as ...
libxml2 and nokogiri decode html entities in node attributes
https://api.github.com/repos/sparklemotion/nokogiri/issues/214/comments
8
2010-01-26T16:19:49Z
2016-06-30T14:21:37Z
https://github.com/sparklemotion/nokogiri/issues/214
120,215
214
[ "sparklemotion", "nokogiri" ]
``` require 'nokogiri' html = DATA.read doc1 = Nokogiri::HTML(html) doc2 = Nokogiri::HTML::DocumentFragment.parse(html) ELEMENT_ONLY = ".//h2" WITH_ID = ".//h2[@id='foo']" p doc1.xpath(ELEMENT_ONLY).first['id'], doc1.xpath(WITH_ID), doc2.xpath(ELEMENT_ONLY).first['id'], doc2.xpath(WITH_ID) #=> "foo" #=> [...
DocumentFragment#xpath fails to find specific attribute for elements at the root of the fragment
https://api.github.com/repos/sparklemotion/nokogiri/issues/213/comments
7
2010-01-25T19:56:19Z
2024-08-25T08:09:21Z
https://github.com/sparklemotion/nokogiri/issues/213
119,650
213
[ "sparklemotion", "nokogiri" ]
Here is what I'm doing to get that NoMethodError in Nokogiri 1.4.1: ``` xmldoc = Nokogiri::XML(some_xhtml_response_body) xpathcontext = Nokogiri::XML::XPathContext.new(xmldoc) # Looking for a default namespace in the document root document_root = xmldoc.child.element? ? \ xmldoc.child : xmldoc.child.next_...
undefined method `next_element' for #<Nokogiri::XML::DTD:0x....> (NoMethodError)
https://api.github.com/repos/sparklemotion/nokogiri/issues/212/comments
4
2010-01-25T16:26:10Z
2010-01-28T10:00:51Z
https://github.com/sparklemotion/nokogiri/issues/212
119,502
212
[ "sparklemotion", "nokogiri" ]
The issue is described [here](http://stackoverflow.com/questions/2116629/what-is-the-absolutely-cheapest-way-to-select-a-child-node-in-nokogiri). The point is that calling Node#children is unnecessarily expensive if you already know the exact position of your element. There is no need to parse the whole parents all th...
Allow for more direct access to node children.
https://api.github.com/repos/sparklemotion/nokogiri/issues/211/comments
6
2010-01-24T11:40:02Z
2010-01-24T23:16:26Z
https://github.com/sparklemotion/nokogiri/issues/211
118,835
211
[ "sparklemotion", "nokogiri" ]
Came across this while processing some HTML files and reduced to a fairly minimal test case. The error I see is: /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/html/document.rb:76: [BUG] Segmentation fault ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] ## Here is the output of nokogiri -v: war...
Segmentation fault document.rb:76 on repeated use of Nokogiri::HTML
https://api.github.com/repos/sparklemotion/nokogiri/issues/210/comments
7
2010-01-20T21:22:41Z
2010-01-26T16:05:05Z
https://github.com/sparklemotion/nokogiri/issues/210
116,623
210
[ "sparklemotion", "nokogiri" ]
Is this intentional? Given `DocumentFragment#css`, it'd be nice to also have an `xpath` method that works on a fragment. I find these results surprising: ``` require 'nokogiri' hdoc = Nokogiri::HTML('<img id="foo" />') frag = hdoc.fragment( '<img id="bar" />') lone = Nokogiri::HTML::DocumentFragment.parse('<img id="ji...
xpath on DocumentFragment runs on document instead
https://api.github.com/repos/sparklemotion/nokogiri/issues/209/comments
3
2010-01-20T04:25:07Z
2010-01-20T06:01:21Z
https://github.com/sparklemotion/nokogiri/issues/209
116,253
209
[ "sparklemotion", "nokogiri" ]
``` require 'nokogiri' xpath = "concat('a','b')" d = Nokogiri::HTML("") p d.at_xpath(xpath), d.xpath(xpath) #=> nil #=> [] ``` Compare this with the following string pasted into the address bar of Safari, Chrome, Firefox, or Opera: `javascript:alert( (new XPathEvaluator).evaluate( "concat('a','b')", document.documentE...
XPath cannot return string values
https://api.github.com/repos/sparklemotion/nokogiri/issues/208/comments
4
2010-01-20T03:38:12Z
2010-01-20T05:00:18Z
https://github.com/sparklemotion/nokogiri/issues/208
116,232
208
[ "sparklemotion", "nokogiri" ]
Not sure if it is a bug but I think it is an unexpected behaviour: a br node content is not "\n" but just "" For instance: require 'rubygems' require 'nokogiri' ``` doc = Nokogiri::HTML.parse("hi<br>world\ncr") p doc.content p doc.search('//br') p doc.search('//br')[0].content ``` I get ``` $ irb irb(main):...
<br> & content
https://api.github.com/repos/sparklemotion/nokogiri/issues/207/comments
2
2010-01-14T09:40:02Z
2011-09-24T16:51:34Z
https://github.com/sparklemotion/nokogiri/issues/207
112,679
207
[ "sparklemotion", "nokogiri" ]
When Nokogiri finds a syntax error in an xpath query it obviously raises and exception. Unfortunately the query isn't included in the error message. It would be great if the query was also displayed so you don't have to print it from the code. <pre><code>1) Error: test_spec {Definition::Profile} 004 [should return a r...
SyntaxError doesn't show the offending query
https://api.github.com/repos/sparklemotion/nokogiri/issues/206/comments
1
2010-01-12T15:50:22Z
2010-03-01T00:44:14Z
https://github.com/sparklemotion/nokogiri/issues/206
111,391
206
[ "sparklemotion", "nokogiri" ]
I am trying to use the :not() selector of CSS3 to filter out the first list item from an unordered list. When I run this code however, I run into an error "RuntimeError: xmlXPathCompOpEval: function first-child not found" d = Nokogiri::HTML.parse('&lt;html>&lt;body>&lt;ul>&lt;li id="1">1&lt;/li>&lt;li id="2">2&lt;/li...
CSS3 not selector
https://api.github.com/repos/sparklemotion/nokogiri/issues/205/comments
4
2010-01-05T15:32:24Z
2010-02-14T05:41:23Z
https://github.com/sparklemotion/nokogiri/issues/205
106,814
205
[ "sparklemotion", "nokogiri" ]
One liner (must be in utf-8) ``` Nokogiri::HTML::SAX::Parser.new(Nokogiri::XML::SAX::Document.new).parse_memory('<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">И', 'utf-8') ``` causes encoding error : input conversion failed due to input error, bytes 0x98 0x00 0x98 0x00 encoding er...
Can't force encoding of SAX parser
https://api.github.com/repos/sparklemotion/nokogiri/issues/204/comments
3
2009-12-30T21:56:39Z
2010-07-30T11:54:17Z
https://github.com/sparklemotion/nokogiri/issues/204
104,480
204
[ "sparklemotion", "nokogiri" ]
trying this code just crashes: ``` require 'rubygems' require 'nokogiri' document = Nokogiri::HTML.parse(" <div style=\"overflow: hidden; float: left; margin: 2px 0;\">\n <a href=\"http://aaaa.aaaa.aaaa/aaaaa/aaaaa_aaaaa/aaaaaa/aaaaaa/aaaaaaaaaaaa/aaaaaa/aaaaaaaaaa/view\">\n <div class=\"aaaa-aaaaa\" title=\"...
[BUG] Segmentation fault
https://api.github.com/repos/sparklemotion/nokogiri/issues/203/comments
10
2009-12-29T14:56:53Z
2010-01-10T01:25:09Z
https://github.com/sparklemotion/nokogiri/issues/203
103,823
203
[ "sparklemotion", "nokogiri" ]
I am getting this error when i am trying to use from console the steps followed below ruby script/console user = User.post(:register,params) i am getting below erro Nokogiri::XML::SyntaxError: Opening and ending tag mismatch: link line 107 and head
ERROR In Opening and ending tag mismatch: link line 107 and head
https://api.github.com/repos/sparklemotion/nokogiri/issues/202/comments
2
2009-12-29T12:55:21Z
2010-01-20T05:42:43Z
https://github.com/sparklemotion/nokogiri/issues/202
103,790
202
[ "sparklemotion", "nokogiri" ]
Is there a proper Nokogiri FFI interface (i.e. nokogiri-ffi gem) for all Ruby VMs that support FFI to use?
Proper Nokogiri FFI interface
https://api.github.com/repos/sparklemotion/nokogiri/issues/201/comments
1
2009-12-29T07:07:03Z
2009-12-29T19:30:15Z
https://github.com/sparklemotion/nokogiri/issues/201
103,687
201
[ "sparklemotion", "nokogiri" ]
Although the quick and dirty (and ugly) code found at https://gist.github.com/5f85088352cb23d8223d uses mechanize, it's the splice function of nokogiri that is apparently throwing the segmentation faults and bus errors on ruby 1.8.6 (2008-08-11) [universal-darwin9.0]. The backtrace gives the following: Program receive...
Splice throwing segmentation faults
https://api.github.com/repos/sparklemotion/nokogiri/issues/200/comments
7
2009-12-16T10:09:09Z
2009-12-30T10:41:06Z
https://github.com/sparklemotion/nokogiri/issues/200
98,468
200
[ "sparklemotion", "nokogiri" ]
I've been running into some weirdness in switching from Nokogiri 1.3.3 to 1.4.1. I've written a small script to demo the namespace weirdness. http://pastie.org/745219 If you run it using 1.4.1, hopefully you should see whats wrong. oai_dc:dc element namespaces beginning with xmlns aren't being properly added. Now, ...
XML Builder Namespace weirdness
https://api.github.com/repos/sparklemotion/nokogiri/issues/199/comments
11
2009-12-16T05:11:37Z
2010-03-03T18:55:53Z
https://github.com/sparklemotion/nokogiri/issues/199
98,374
199
[ "sparklemotion", "nokogiri" ]
In general, our decoration of NodeSets could be cleaned up
Node#children returns an undecorated NodeSet
https://api.github.com/repos/sparklemotion/nokogiri/issues/198/comments
1
2009-12-15T14:47:05Z
2009-12-16T04:01:12Z
https://github.com/sparklemotion/nokogiri/issues/198
97,929
198
[ "sparklemotion", "nokogiri" ]
Sigh. C extension is out of sync with FFI again.
Make FFI pass tests again (1.4.1)
https://api.github.com/repos/sparklemotion/nokogiri/issues/197/comments
1
2009-12-15T13:11:33Z
2009-12-15T13:14:19Z
https://github.com/sparklemotion/nokogiri/issues/197
97,815
197
[ "sparklemotion", "nokogiri" ]
I'd like this for Loofah so I don't have as much special code for DocumentFragments, and so the nodes in a fragment have scrub! methods just like document nodes.
DocumentFragments should support decorators like a Document
https://api.github.com/repos/sparklemotion/nokogiri/issues/196/comments
3
2009-12-15T13:09:58Z
2009-12-15T14:38:04Z
https://github.com/sparklemotion/nokogiri/issues/196
97,812
196
[ "sparklemotion", "nokogiri" ]
Is there a way to estimate memory usage of a Nokogiri:XML:Document at runtime?
estimating memory usage
https://api.github.com/repos/sparklemotion/nokogiri/issues/195/comments
1
2009-12-13T00:05:50Z
2009-12-13T01:54:26Z
https://github.com/sparklemotion/nokogiri/issues/195
96,490
195
[ "sparklemotion", "nokogiri" ]
called out by Nick Sieger: http://www.engineyard.com/blog/2009/xml-parsing-in-ruby/
add Reader node type constants
https://api.github.com/repos/sparklemotion/nokogiri/issues/194/comments
1
2009-12-11T14:08:55Z
2009-12-11T14:16:58Z
https://github.com/sparklemotion/nokogiri/issues/194
95,914
194
[ "sparklemotion", "nokogiri" ]
Given the following input: ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <p>Foo <a ...
XML::EntityReference migration
https://api.github.com/repos/sparklemotion/nokogiri/issues/193/comments
9
2009-12-11T13:48:52Z
2019-01-05T05:25:40Z
https://github.com/sparklemotion/nokogiri/issues/193
95,902
193
[ "sparklemotion", "nokogiri" ]
When inserting a fragment containing nodes with namespace prefix Nokogiri parses it incorrectly. A real use case: ``` doc = Nokogiri::XML <<-EOXML <root xmlns:ns1="urn:ns1"> </root> EOXML new_node = <<-EOXML <ns1:child_a /> <ns2:child_b /> EOXML frag = doc.root.fragment(new_node) doc.root.add_child(frag) puts doc.to...
XML fragment is wrongly parsed when contains nodes with namespace prefix
https://api.github.com/repos/sparklemotion/nokogiri/issues/192/comments
3
2009-12-11T09:18:38Z
2010-02-07T08:56:34Z
https://github.com/sparklemotion/nokogiri/issues/192
95,785
192
[ "sparklemotion", "nokogiri" ]
I'm trying to validate a document against the ONIX 2.1 reference schema, which includes the following lines... ``` <xs:include schemaLocation="ONIX_BookProduct_CodeLists.xsd"/> <xs:include schemaLocation="ONIX_XHTML_Subset.xsd"/> ``` When running the validation, I receive this error: ``` Nokogiri::XML::SyntaxError: ...
Included files referenced by relative paths in xml schemas can't be found.
https://api.github.com/repos/sparklemotion/nokogiri/issues/191/comments
5
2009-12-10T22:24:09Z
2015-03-20T14:02:07Z
https://github.com/sparklemotion/nokogiri/issues/191
95,583
191
[ "sparklemotion", "nokogiri" ]
Test_unit showing the issues: http://gist.github.com/253538 This test unit has 5 tests. 3 of them are fixed in my modified Nokogiri: http://github.com/ibc/nokogiri/commit/1fd50936f1d4d21172f0f8e1ea7f07c888691766 The remaining two tests fail in official trunk version and also in my version: - test_adding_a_fragment_co...
Error when adding a XML fragment containing "xmlns" declaration or prefixed attribute
https://api.github.com/repos/sparklemotion/nokogiri/issues/190/comments
8
2009-12-10T18:33:43Z
2010-02-07T08:56:15Z
https://github.com/sparklemotion/nokogiri/issues/190
95,419
190
[ "sparklemotion", "nokogiri" ]
After working in bug #185 I've realized that inserting a fragment could never be really robust and exact. In my brach http://github.com/ibc/nokogiri/commit/1fd50936f1d4d21172f0f8e1ea7f07c888691766 I've improved it a bit so now parent node namespace scopes are inspected instead of root node namespace declarations. Howe...
New way to insert a XML fragment
https://api.github.com/repos/sparklemotion/nokogiri/issues/189/comments
2
2009-12-09T20:05:43Z
2009-12-09T22:43:44Z
https://github.com/sparklemotion/nokogiri/issues/189
94,976
189
[ "sparklemotion", "nokogiri" ]
see #109 for more details.
segfault on windows
https://api.github.com/repos/sparklemotion/nokogiri/issues/188/comments
1
2009-12-09T18:39:02Z
2009-12-15T04:03:07Z
https://github.com/sparklemotion/nokogiri/issues/188
94,931
188
[ "sparklemotion", "nokogiri" ]
Imagine this XML: ``` <root xmlns="urn:default" xmlns:att1="urn:att1" xmlns:att2="urn:att2" att:name="'value1" att2:name="value2" /> ``` If I get 'attribute_nodes' for root I get: ``` irb> doc.xpath("/*").first.attribute_nodes [#<Nokogiri::XML::Attr:0x9ae188 name="name" value="'att' prefixed attribute">, #<N...
XML::Node#attributes fails when two attributes with same name but different prefix exist
https://api.github.com/repos/sparklemotion/nokogiri/issues/187/comments
3
2009-12-09T15:16:59Z
2009-12-09T20:14:37Z
https://github.com/sparklemotion/nokogiri/issues/187
94,808
187
[ "sparklemotion", "nokogiri" ]
I work in a project which just manages XML documents with namespaces for all the nodes. If the document (or a node into it) doesn't have a default namespace and there is a node with no prefix into it, then it's a wrong XML document for me. However Nokogiri (libxml2 in fact) allows XML nodes without namespace binding w...
An option to force namespace binding for all nodes
https://api.github.com/repos/sparklemotion/nokogiri/issues/186/comments
2
2009-12-07T16:41:34Z
2009-12-07T17:00:54Z
https://github.com/sparklemotion/nokogiri/issues/186
93,606
186
[ "sparklemotion", "nokogiri" ]
Recently a commit fixed a bug when inserting a fragment with namespace prefixes into a node: http://github.com/tenderlove/nokogiri/commit/597195ff8fe471e5350581c2d5cce704fcf87439 However it's coded under wrong assumptions (IMHO). Imagine this case: ``` <?xml version='1.0' encoding='UTF-8'?> <cp:ruleset xmlns="defaul...
Don't modify namespace prefixes for new fragments added into the document
https://api.github.com/repos/sparklemotion/nokogiri/issues/185/comments
40
2009-12-05T02:45:13Z
2010-02-07T22:02:57Z
https://github.com/sparklemotion/nokogiri/issues/185
92,583
185
[ "sparklemotion", "nokogiri" ]
http://github.com/bcardarella/nokogiri-issue Migrate the test database and run the Cucumber feature in JRuby: > jruby -S cucumber features/book.feature This works in MRI Change the test database adapter to 'sqlite3' Then: > cucumber features/book.feature
JRuby - undefined method `namespaces'
https://api.github.com/repos/sparklemotion/nokogiri/issues/184/comments
3
2009-12-04T23:27:48Z
2009-12-05T18:41:00Z
https://github.com/sparklemotion/nokogiri/issues/184
92,514
184
[ "sparklemotion", "nokogiri" ]
also maybe alias next -> next_sibling and previous -> previous_sibling
alias next= and prev= for add_next_sibling and add_previous_sibling
https://api.github.com/repos/sparklemotion/nokogiri/issues/183/comments
1
2009-12-04T20:02:58Z
2009-12-04T20:10:58Z
https://github.com/sparklemotion/nokogiri/issues/183
92,451
183
[ "sparklemotion", "nokogiri" ]
When installing in snow leopard 10.6.2: LoadError: dlopen(/Library/Ruby/Gems/1.8/gems/nokogiri-1.4.0/lib/nokogiri/nokogiri.bundle, 9): no suitable image found. Did find: /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.0/lib/nokogiri/nokogiri.bundle: mach-o, but wrong architecture - /Library/Ruby/Gems/1.8/gems/nokogi...
nokogiri.bundle: mach-o, but wrong architecture
https://api.github.com/repos/sparklemotion/nokogiri/issues/182/comments
2
2009-12-03T22:49:10Z
2009-12-04T19:26:09Z
https://github.com/sparklemotion/nokogiri/issues/182
92,023
182
[ "sparklemotion", "nokogiri" ]
Let's imagine a XML document like: ``` <?xml version='1.0' encoding='UTF-8'?> <cp:ruleset xmlns:cp="urn:ietf:params:xml:ns:common-policy"> <cp:identity> <cp:one id="sip:alice@example.org"/> <cp:one id="sip:bob@example.org"/> <cp:one id="sip:carol@example.org"/> </cp:identity> </cp:ruleset> ``` I want ...
Add a method Node#add_at_pos to insert a node into a specific position
https://api.github.com/repos/sparklemotion/nokogiri/issues/181/comments
1
2009-12-03T21:09:02Z
2009-12-04T05:54:30Z
https://github.com/sparklemotion/nokogiri/issues/181
91,964
181
[ "sparklemotion", "nokogiri" ]
I think it's something similar to issue #178 When &lt;br /&gt; is inside &amp;quot;, Nokogiri seems to remove it when the fragment is parsed. Here's an irb session demonstrating the issue: ``` >> worked = "test<br/>test" => "test<br/>test" >> Nokogiri::HTML::DocumentFragment.parse(worked).to_xhtml => "test<br />test" ...
<br /> surrounded by &quot; is lost when parsing an HTML
https://api.github.com/repos/sparklemotion/nokogiri/issues/180/comments
2
2009-12-03T15:04:29Z
2009-12-04T05:04:50Z
https://github.com/sparklemotion/nokogiri/issues/180
91,729
180
[ "sparklemotion", "nokogiri" ]
Code to reproduce ``` >> Nokogiri::HTML(%(<a>tag</a> <a href="test\0test"> you don't see me!)).to_html => "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html><body>\n<a>tag</a> <a href=\"test\"></a>\n</body></html>\n" ``` \0 outside works though. M...
\0 in an attribute stops parsing.
https://api.github.com/repos/sparklemotion/nokogiri/issues/179/comments
4
2009-12-01T13:58:33Z
2009-12-04T16:50:17Z
https://github.com/sparklemotion/nokogiri/issues/179
90,553
179
[ "sparklemotion", "nokogiri" ]
When a `<br />` element is preceded by a newline in an HTML fragment, Nokogiri seems to remove it when the fragment is parsed. Here's an irb session demonstrating the issue (using Nokogiri 1.4.0 with libxml2 2.7.6): ``` >> require 'rubygems' => false >> require 'nokogiri' => true >> html = "First line\nSecond line<br ...
<br /> preceded by a newline is lost when parsing an HTML fragment
https://api.github.com/repos/sparklemotion/nokogiri/issues/178/comments
5
2009-12-01T04:30:35Z
2009-12-04T18:37:18Z
https://github.com/sparklemotion/nokogiri/issues/178
90,379
178
[ "sparklemotion", "nokogiri" ]
Hi, the following Code crashes MRI on line 2: ``` Nokogiri::XML("") / '//*xml[@name="]' rescue nil Nokogiri::XML("") / '//*xml[@name="]' ``` (Independent of the XML-Document) I don't know whether this is a problem of the interpreter, but as I have never seen this bug before, I thought I'll post it here first. Addi...
Uncaught exceptions segfault on 1.9
https://api.github.com/repos/sparklemotion/nokogiri/issues/177/comments
1
2009-11-28T06:55:38Z
2009-11-30T19:23:34Z
https://github.com/sparklemotion/nokogiri/issues/177
89,253
177
[ "sparklemotion", "nokogiri" ]
In things such as JSTL and ESI, we have this pattern where people intersperse namespaced XML which form a valid document among other bits of text, which are implicitly treated as CDATA. It would be so awesome if, on creating an XML document, we could tell it which namespaces to parse, and everything else would be handl...
XML interspersed in non-XML document
https://api.github.com/repos/sparklemotion/nokogiri/issues/176/comments
1
2009-11-27T17:20:25Z
2009-11-30T19:24:23Z
https://github.com/sparklemotion/nokogiri/issues/176
89,054
176
[ "sparklemotion", "nokogiri" ]
Because XSLT transform methods only return serialized documents, 'output method="text"' is ignored and using "disable-output-escaping" has odd effects (new lines get inserted on all the text nodes). Would it be possible to support text output as well as XML/HTML output from transforms? This isn't a big issue because it...
Feature request: support 'output method="text"' for XSLT transform
https://api.github.com/repos/sparklemotion/nokogiri/issues/175/comments
4
2009-11-24T07:46:25Z
2009-12-02T03:46:03Z
https://github.com/sparklemotion/nokogiri/issues/175
87,238
175
[ "sparklemotion", "nokogiri" ]
I'm writing a utility to rewrite URIs in some RDF/XML files. This behavior is suprising: ``` $ irb -r nokogiri irb(main):001:0> doc = Nokogiri::XML::Document.new => #<Nokogiri::XML::Document:0x..fdbbf990a name="document"> irb(main):002:0> ed = Nokogiri::XML::EntityDecl.new('ed', doc) => #<Nokogiri::XML::EntityDecl:0x....
allow creation and deletion of Entity Declaration elements
https://api.github.com/repos/sparklemotion/nokogiri/issues/174/comments
5
2009-11-24T01:19:46Z
2010-02-07T08:53:10Z
https://github.com/sparklemotion/nokogiri/issues/174
87,115
174
[ "sparklemotion", "nokogiri" ]
Z:\rich\dev\blather\examples>jruby -rrubygems echo.rb [user]@[domain].com/ruby [pwd] [server] C:/Program Files/jruby-1.4.0/lib/ruby/gems/1.8/gems/nokogiri-1.4.0-java/lib/nokogiri/ffi/libxml.rb:6: Nokogiri requires JRuby 1.4.0RC1 or later on Windows (RuntimeError) from C:/Program Files/jruby-1.4.0/lib/ruby/gems/...
1.4.0-java doesn't work on jruby-1.4.0
https://api.github.com/repos/sparklemotion/nokogiri/issues/173/comments
1
2009-11-24T00:00:48Z
2009-11-25T04:45:43Z
https://github.com/sparklemotion/nokogiri/issues/173
87,063
173
[ "sparklemotion", "nokogiri" ]
I'm using nokogiri through webrat to assert whether elements exist. The set of css3 selectors are limited if you compare them with the set selectors of jquery (.e.g. :has, :contains). So I have the following questions: - is there a plan to make nokogiri compatible with jquery? - if not, would it be hard to fork nokogi...
Extending nokogiri with jQuery selectors?
https://api.github.com/repos/sparklemotion/nokogiri/issues/172/comments
1
2009-11-20T09:55:56Z
2009-11-30T22:39:56Z
https://github.com/sparklemotion/nokogiri/issues/172
85,692
172
[ "sparklemotion", "nokogiri" ]
XML::Node#attributes returns 'name => node' instead of 'name => node.value' ... lib/nokogiri/xml/node.rb ~line 292 ``` #### # Returns a hash containing the node's attributes. The key is the # attribute name, the value is the string value of the attribute. def attributes Hash[*(attribute_nodes.map { |node...
XML::Node#attributes doesn't do what the doc says
https://api.github.com/repos/sparklemotion/nokogiri/issues/171/comments
1
2009-11-19T06:27:37Z
2009-11-19T23:37:23Z
https://github.com/sparklemotion/nokogiri/issues/171
85,221
171
[ "sparklemotion", "nokogiri" ]
<pre> C:/Ruby/lib/ruby/gems/1.8/gems/nokogiri-1.4.0-x86-mswin32/lib/nokogiri/xml/builder.rb:272: warning: parenthesize argument(s) for future version </pre>
warning: parenthesize argument(s) for future version
https://api.github.com/repos/sparklemotion/nokogiri/issues/170/comments
1
2009-11-19T05:12:25Z
2009-11-19T23:33:33Z
https://github.com/sparklemotion/nokogiri/issues/170
85,213
170
[ "sparklemotion", "nokogiri" ]
Nokogiri 1.4.0 segfaults when calling add_namespace irb(main):001:0> require 'rubygems';require 'nokogiri'; puts Nokogiri::VERSION; Nokogiri::XML.parse('<a/>').add_namespace('foo', 'bar') 1.4.0 (irb):1: [BUG] Segmentation fault ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
Segmentation fault when calling #add_namespace
https://api.github.com/repos/sparklemotion/nokogiri/issues/169/comments
1
2009-11-16T16:17:46Z
2009-11-16T16:55:38Z
https://github.com/sparklemotion/nokogiri/issues/169
83,842
169
[ "sparklemotion", "nokogiri" ]
Hi all! The tutorials link on the Nokogiri site is broken on Firefox 3.5.5 on Mandriva Linux Cooker (standard Mandriva package), even when JavaScript is enabled (and it should work even when it isn't.). I don't see anything in the error console. Please fix it. Regards, -- Shlomi Fish
The Tutorials link is broken on Firefox (including when JavaScript is enabled)
https://api.github.com/repos/sparklemotion/nokogiri/issues/168/comments
1
2009-11-15T20:05:34Z
2009-11-25T04:43:50Z
https://github.com/sparklemotion/nokogiri/issues/168
83,511
168
[ "sparklemotion", "nokogiri" ]
I added the xmldecl method to the SAX callbacks, and that broke the SOAP adapter. That broken this dudes code: http://groups.google.com/group/nokogiri-talk/msg/dca72612114cfcc5 We need to figure out a way to get the adapter under test _without_ loading in soap4r
The SOAP adapter is busted
https://api.github.com/repos/sparklemotion/nokogiri/issues/167/comments
2
2009-11-15T19:57:15Z
2009-11-25T04:32:36Z
https://github.com/sparklemotion/nokogiri/issues/167
83,509
167
[ "sparklemotion", "nokogiri" ]
I _think_ the inspect method is broken. Broken or not, we need to figure out this crash: http://groups.google.com/group/nokogiri-talk/msg/6f8e4ac93fbebf39
XML::Namespace#inspect may be broken
https://api.github.com/repos/sparklemotion/nokogiri/issues/166/comments
1
2009-11-15T19:55:33Z
2009-11-25T04:43:30Z
https://github.com/sparklemotion/nokogiri/issues/166
83,507
166
[ "sparklemotion", "nokogiri" ]
Currently if I attempt to parse a document that has named entities in it I get an exception. The files I'm trying to parse conform to a DTD that defines the valid entities, word on the street is that by loading the DTD i may be able to avoid the exception. See http://groups.google.com/group/nokogiri-talk/browse_thread...
Provide DOM/SAX examples of loading a DTD so named entities can be resolved
https://api.github.com/repos/sparklemotion/nokogiri/issues/165/comments
4
2009-11-14T06:51:40Z
2009-12-07T02:45:37Z
https://github.com/sparklemotion/nokogiri/issues/165
82,962
165
[ "sparklemotion", "nokogiri" ]
http://gist.github.com/227705
Add some of these methods
https://api.github.com/repos/sparklemotion/nokogiri/issues/164/comments
1
2009-11-14T00:51:27Z
2009-12-03T07:46:50Z
https://github.com/sparklemotion/nokogiri/issues/164
82,906
164
[ "sparklemotion", "nokogiri" ]
This simple script generates invalid output https://gist.github.com/a7b4f4fd038da142f202
Replacing a text node
https://api.github.com/repos/sparklemotion/nokogiri/issues/163/comments
1
2009-11-13T23:04:54Z
2009-11-18T06:38:37Z
https://github.com/sparklemotion/nokogiri/issues/163
82,886
163
[ "sparklemotion", "nokogiri" ]
If you replace a node from another document, there is a crash on exit. A Node is probably referenced from both documents and tried to delete twice. Example: # !/usr/bin/env ruby require 'nokogiri' xml1 = "<test> <caption>Original caption</caption> </test>" xml2 = "<test> <caption>Replacement caption</caption> </...
Replacing a Node from another document will crash on exit
https://api.github.com/repos/sparklemotion/nokogiri/issues/162/comments
5
2009-11-12T21:55:22Z
2009-11-18T07:09:33Z
https://github.com/sparklemotion/nokogiri/issues/162
82,415
162
[ "sparklemotion", "nokogiri" ]
http://gist.github.com/232170
push parser needs fixin'
https://api.github.com/repos/sparklemotion/nokogiri/issues/161/comments
2
2009-11-11T21:47:41Z
2009-12-03T07:40:34Z
https://github.com/sparklemotion/nokogiri/issues/161
81,927
161
[ "sparklemotion", "nokogiri" ]
When requiring nokogiri from irb or cucumber there is an FFI error: FFI::NotFoundError: Function '__xmlParserVersion' not found in [msvcrt] I am including links to show the entire issue: http://pastie.org/690973 - when running cucumber http://pastie.org/691987 - when running irb (through JRuby)
JRuby 1.4.0, Nokogiri 1.4.0 and Windows
https://api.github.com/repos/sparklemotion/nokogiri/issues/160/comments
5
2009-11-10T15:20:22Z
2009-11-19T23:29:31Z
https://github.com/sparklemotion/nokogiri/issues/160
81,227
160
[ "sparklemotion", "nokogiri" ]
``` raise(RuntimeError, "Nokogiri requires JRuby 1.4.0RC1 or later on Windows") if JRUBY_VERSION < "1.4.0RC1" ``` fails if my version is 1.4.0 reported by bhauff
JRuby version test on Windows is broken
https://api.github.com/repos/sparklemotion/nokogiri/issues/159/comments
5
2009-11-09T22:02:50Z
2009-11-09T22:37:58Z
https://github.com/sparklemotion/nokogiri/issues/159
80,849
159
[ "sparklemotion", "nokogiri" ]
See this script for an example: http://gist.github.com/227429
Ancestor search doesn't work with a css query.
https://api.github.com/repos/sparklemotion/nokogiri/issues/158/comments
1
2009-11-05T21:42:10Z
2009-11-06T03:46:04Z
https://github.com/sparklemotion/nokogiri/issues/158
79,241
158
[ "sparklemotion", "nokogiri" ]
Add the ":self" pseudo selector so that people can have CSS expressions like this: ``` ":self > foo" ``` which would be equivalent to this: ``` "./foo" ```
Add the ":self" psuedo selector
https://api.github.com/repos/sparklemotion/nokogiri/issues/157/comments
1
2009-11-05T16:57:10Z
2009-11-09T23:37:12Z
https://github.com/sparklemotion/nokogiri/issues/157
79,080
157
[ "sparklemotion", "nokogiri" ]
I don't know if this really a bug or if I'm being really stupid, but here goes: So, when you have a double quote character inside your attribute value, nokogiri does this attribute='a string with a double " quote' Unfortunately, this is making the xerces java parser (or whatever parser Openfire uses) throw a hissy f...
&quot; is nice
https://api.github.com/repos/sparklemotion/nokogiri/issues/156/comments
2
2009-11-03T10:36:40Z
2009-11-25T04:44:31Z
https://github.com/sparklemotion/nokogiri/issues/156
77,706
156
[ "sparklemotion", "nokogiri" ]
I'm comparing 1.3.3 on rubyforge, with the Oct. 29 09:05:43 2009 -0700 commit 7fbf2622ddb7364e21bfed70759203f7f86da596 . I'm on Ruby 1.8.7 ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10] LibXML2 is 2.7.3. With 1.3.3, DocumentFragment works OK with UTF8 strings. <code> puts Nokogiri::HTML::DocumentFragment.parse...
Nokogiri::HTML::DocumentFragment#parse regression in how UTF8 is handled
https://api.github.com/repos/sparklemotion/nokogiri/issues/155/comments
2
2009-10-30T18:45:36Z
2009-10-31T00:46:45Z
https://github.com/sparklemotion/nokogiri/issues/155
76,500
155
[ "sparklemotion", "nokogiri" ]
I get a [BUG] Segmentation Fault with the following code: ``` class XMLDocument < Nokogiri::XML::Document def initialize() super() body_node = Nokogiri::XML::Node.new("body",self) body_node.content = "stuff" self.root = body_node end end ``` If I execute the following 'xmldoc=XMLDocument.new()' th...
Segmentation fault when creating new node with 'Self' reference
https://api.github.com/repos/sparklemotion/nokogiri/issues/154/comments
1
2009-10-29T14:46:14Z
2009-10-29T16:05:48Z
https://github.com/sparklemotion/nokogiri/issues/154
75,713
154
[ "sparklemotion", "nokogiri" ]
Reported by Iñaki Baz Castillo on the mailing list. Creating a fragment with a namespace makes the prefix part of the tag name, and (arbitrarily?) uses the namespace of the document root's first child.
Fragment nodes with namespaces should work properly
https://api.github.com/repos/sparklemotion/nokogiri/issues/153/comments
1
2009-10-27T14:57:17Z
2009-10-27T14:58:45Z
https://github.com/sparklemotion/nokogiri/issues/153
74,580
153
[ "sparklemotion", "nokogiri" ]
Failing spec: ``` def test_wrap_preserves_document_structure assert_equal "employeeId", @xml.at_xpath("//employee").children.detect{|j| ! j.text? }.name @xml.xpath("//employeeId[text()='EMP0001']").wrap("<wrapper/>") assert_equal "wrapper", @xml.at_xpath("//employee").ch...
NodeSet.wrap does not preserve document structure
https://api.github.com/repos/sparklemotion/nokogiri/issues/152/comments
2
2009-10-20T03:10:28Z
2009-10-20T03:12:12Z
https://github.com/sparklemotion/nokogiri/issues/152
71,114
152
[ "sparklemotion", "nokogiri" ]
Would also be nice to see a :new_lines => false option at some point, so you get back to back elements, no extra spacing. Making the builder object searchable would be awesome too. e.g. builder.at('//root').to_xml(:indent => 0, :new_lines => false) or better yet: builder.root.to_xml(:spacing => false)
Allow builder.to_xml to be passed options like :new_lines => false, or :spacing => false
https://api.github.com/repos/sparklemotion/nokogiri/issues/151/comments
4
2009-10-18T02:55:50Z
2009-10-29T23:05:00Z
https://github.com/sparklemotion/nokogiri/issues/151
70,311
151
[ "sparklemotion", "nokogiri" ]
Reproduce Nokogiri::XML(open('http://www.cite-sciences.fr/rss/ressources/fr/faq_fr_20.xml').read, nil, 'UTF-8', 18543) Nokogiri::XML::SyntaxError: Unsupported encoding UTF-85 This xml, not valid becouse <?xml version="1.0" encoding="UTF-85"> but encoding set global. Thanks for nokogiri ^-^.
Nokogiri::XML ignore my set encoding
https://api.github.com/repos/sparklemotion/nokogiri/issues/150/comments
2
2009-10-15T14:06:52Z
2009-11-10T01:47:05Z
https://github.com/sparklemotion/nokogiri/issues/150
69,220
150
[ "sparklemotion", "nokogiri" ]
This is just weird. Observe the reduced test cases: ``` s = '<a><b>see</b></a>' n = Nokogiri::HTML::DocumentFragment.parse(s) n.to_xhtml => "<a>\n <b>see</b>\n</a>" ``` to_html works: ``` s = '<a><b>see</b></a>' n = Nokogiri::HTML::DocumentFragment.parse(s) n.to_html => "<a><b>see</b></a>" ``` as does adding a te...
Anchor tags tightly wrapping another element generate unwanted whitespace on #to_xhtml
https://api.github.com/repos/sparklemotion/nokogiri/issues/149/comments
3
2009-10-14T21:43:42Z
2009-10-14T23:43:06Z
https://github.com/sparklemotion/nokogiri/issues/149
69,001
149
[ "sparklemotion", "nokogiri" ]
<pre> xml = Nokogiri::XML('&lt;xml /&gt;') begin xml.xpath('http://') rescue Nokogiri::XML::XPath::SyntaxError => e raise e, "howdy" end </pre> results in: <pre> [BUG] Segmentation fault ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10] Abort trap </pre> for <pre> --- warnings: [] libxml: loaded: ...
Segmentation Fault on modified re-raise
https://api.github.com/repos/sparklemotion/nokogiri/issues/148/comments
1
2009-10-14T01:12:17Z
2009-10-14T03:49:06Z
https://github.com/sparklemotion/nokogiri/issues/148
68,596
148
[ "sparklemotion", "nokogiri" ]
Untitled
https://api.github.com/repos/sparklemotion/nokogiri/issues/147/comments
0
2009-10-10T21:53:41Z
2009-10-11T01:39:39Z
https://github.com/sparklemotion/nokogiri/issues/147
67,385
147
[ "sparklemotion", "nokogiri" ]
This segfaults, if you look at it funny out of the corner of your eye: ``` require "nokogiri" class TextHandler < Nokogiri::XML::SAX::Document def initialize @chunks = [] end attr_reader :chunks def cdata_block(string) characters(string) end def characters(string) @chunks << string.strip if...
OS X 10.5 + 1.8.6 + 1.3.3 segfault
https://api.github.com/repos/sparklemotion/nokogiri/issues/146/comments
4
2009-10-10T17:32:41Z
2013-11-20T07:49:59Z
https://github.com/sparklemotion/nokogiri/issues/146
67,322
146
[ "sparklemotion", "nokogiri" ]
$ ruby -rubygems -rnokogiri -e 'Nokogiri::XML("<yo />").root << Nokogiri::XML::Document.new' <main>: [BUG] Segmentation fault ruby 1.9.1p243 (2009-07-16 revision 24175) [i486-linux] -- control frame ---------- ## c:0001 p:0000 s:0002 b:0002 l:0011a4 d:0011a4 TOP -- Ruby level backtrace information-------------------...
Adding a Document to a Node causes segfault on program exit
https://api.github.com/repos/sparklemotion/nokogiri/issues/145/comments
1
2009-10-08T13:53:48Z
2009-10-13T18:17:11Z
https://github.com/sparklemotion/nokogiri/issues/145
66,458
145
[ "sparklemotion", "nokogiri" ]
Hi guys, I get the following error message while downloading an XML file and opening it using nokogiri: ``` res = Net::HTTP.post_form(URI.parse(....), {...}) doc = Nokogiri::XML(Nokogiri::XML(res.body).xpath("//text()").to_s.gsub("& lt;", "<").gsub("& gt;", ">")) ``` I have installed the latest nightly on OS X 10.5....
Segmentation fault
https://api.github.com/repos/sparklemotion/nokogiri/issues/144/comments
7
2009-10-06T13:10:09Z
2009-10-15T16:16:59Z
https://github.com/sparklemotion/nokogiri/issues/144
65,540
144
[ "sparklemotion", "nokogiri" ]
There is no test in the code below... ``` # test_document.rb def test_empty_string_returns_empty_doc doc = Nokogiri::HTML('') end ```
test_empty_string_returns_empty_doc is empty
https://api.github.com/repos/sparklemotion/nokogiri/issues/143/comments
2
2009-10-05T03:30:55Z
2009-10-05T12:54:59Z
https://github.com/sparklemotion/nokogiri/issues/143
64,943
143
[ "sparklemotion", "nokogiri" ]
Any idea how do I make it load the correct version? I'm on Ubuntu. I've followed the directions here: http://wiki.github.com/tenderlove/nokogiri/use-libxml-from-source but it's just not flying. Thanks in advance.
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.6.32
https://api.github.com/repos/sparklemotion/nokogiri/issues/142/comments
3
2009-10-03T11:01:25Z
2010-08-06T13:17:35Z
https://github.com/sparklemotion/nokogiri/issues/142
64,570
142
[ "sparklemotion", "nokogiri" ]
Here's a tiny patch implementing the functionality talked about here[0]. [0] http://rubyforge.org/pipermail/nokogiri-talk/2009-March/000224.html <pre> diff --git a/lib/nokogiri/xml/builder.rb b/lib/nokogiri/xml/builder.rb index 89cd63a..5cdcafd 100644 --- a/lib/nokogiri/xml/builder.rb +++ b/lib/nokogiri/xml/builder.r...
[PATCH] adding Builder#<< for appending raw strings
https://api.github.com/repos/sparklemotion/nokogiri/issues/141/comments
4
2009-10-02T20:17:20Z
2009-10-05T15:38:30Z
https://github.com/sparklemotion/nokogiri/issues/141
64,377
141
[ "sparklemotion", "nokogiri" ]
Nokogiri::HTML(data) src/tcmalloc.cc:186] Attempt to free invalid pointer: 0x20e030 Nokogiri::VERSION => "1.3.2" Nokogiri::LIBXML_VERSION => "2.6.32" ruby -v => ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-darwin9.7.0] Ruby Enterprise Edition 20090610 Where 'data' is... http://gist.github.com/199496 Thanks for the h...
tcmalloc error
https://api.github.com/repos/sparklemotion/nokogiri/issues/140/comments
4
2009-10-02T05:52:10Z
2009-10-13T20:50:42Z
https://github.com/sparklemotion/nokogiri/issues/140
64,079
140
[ "sparklemotion", "nokogiri" ]
ruby-enterprise-1.8.6-20090610: ``` checking for xmlRelaxNGSetParserStructuredErrors()... no checking for xmlRelaxNGSetParserStructuredErrors()... no checking for xmlRelaxNGSetValidStructuredErrors()... no checking for xmlSchemaSetValidStructuredErrors()... no checking for xmlSchemaSetParserStructuredErrors()... no ``...
extconf.rb have_func() always fails under Ruby Enterprise build system
https://api.github.com/repos/sparklemotion/nokogiri/issues/139/comments
7
2009-10-01T05:58:00Z
2009-10-05T12:33:42Z
https://github.com/sparklemotion/nokogiri/issues/139
63,605
139
[ "sparklemotion", "nokogiri" ]
Hi I've got some code here which replaces some parts of a html document with new content. This works pretty well in 99 out of 100 times, but in certain situation nokogiri segfaults. Yesterday we were able to capture a 'crashing' situation, this is: a) the original document b) a start and end dom-id and c) the new cont...
Segfaults / memory corruption
https://api.github.com/repos/sparklemotion/nokogiri/issues/138/comments
16
2009-09-23T11:47:59Z
2009-10-13T20:49:02Z
https://github.com/sparklemotion/nokogiri/issues/138
60,545
138
[ "sparklemotion", "nokogiri" ]
Right now, the JRuby gem does not ship with the DLLs. To work around this, I tried copying the DLLs from the Windows MRI gem, but then Nokogiri gives the following error: FFI::NotFoundError: Function 'calloc' not found in [exslt]
Support for JRuby on Windows
https://api.github.com/repos/sparklemotion/nokogiri/issues/137/comments
7
2009-09-16T20:50:10Z
2009-10-13T20:52:03Z
https://github.com/sparklemotion/nokogiri/issues/137
58,250
137
[ "sparklemotion", "nokogiri" ]
I'm having some trouble on the following environment. The code below fails on a linux install but not on a macports install. Both environments are: ``` $ nokogiri -v --- warnings: [] libxml: loaded: 2.7.3 binding: extension compiled: 2.7.3 nokogiri: 1.3.3 ``` But on the linux environment, the following co...
inner_html= dropping some elements
https://api.github.com/repos/sparklemotion/nokogiri/issues/136/comments
10
2009-09-12T13:15:05Z
2009-09-15T04:07:45Z
https://github.com/sparklemotion/nokogiri/issues/136
56,753
136
[ "sparklemotion", "nokogiri" ]
I think we should remove Node#collect_namespaces. Since namespace names are not unique, I don't know that this method is very useful.
Remove Node#collect_namespaces
https://api.github.com/repos/sparklemotion/nokogiri/issues/135/comments
3
2009-09-12T04:49:23Z
2009-10-05T03:34:10Z
https://github.com/sparklemotion/nokogiri/issues/135
56,705
135
[ "sparklemotion", "nokogiri" ]
This works: ``` doc = Nokogiri::XML("<element><child xmlns="woop:de:doo" /></element>") doc.at("//xmlns:child", 'xmlns' => 'woop:de:doo') #=> <child xmlns="woop:de:doo" /> ``` This doesn't: ``` doc = Nokogiri::XML::Document.new e = Nokogiri::XML::Node.new('element', doc) c = Nokogiri::XML::Node.new('child', doc) c.a...
Adding a node with a default namespace stores it as 'no-namespace' in the parent
https://api.github.com/repos/sparklemotion/nokogiri/issues/134/comments
2
2009-09-09T16:24:25Z
2009-09-12T04:48:15Z
https://github.com/sparklemotion/nokogiri/issues/134
55,862
134
[ "sparklemotion", "nokogiri" ]
<img src="http://rubyclub.com.ua/upload/2009/9/8/nokogiri.png"> I need original text like 'Пупкин' ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] Linux lenny5/stable nokogiri -1.3.3.
Cyrillyc chars
https://api.github.com/repos/sparklemotion/nokogiri/issues/133/comments
10
2009-09-08T12:57:29Z
2009-09-12T04:09:12Z
https://github.com/sparklemotion/nokogiri/issues/133
55,391
133
[ "sparklemotion", "nokogiri" ]
/Library/Ruby/Gems/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/node.rb:591: [BUG] Segmentation fault ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] I think it happens whether I'm using OS X 10.5, 10.6, ruby 1.9.1, or 1.8.7 Also, it doesn't happen every time, but about a third of the time (I'm using Mechaniz...
Segfault when searching with #at (1.3.3)
https://api.github.com/repos/sparklemotion/nokogiri/issues/132/comments
4
2009-09-06T11:28:31Z
2009-09-15T05:15:22Z
https://github.com/sparklemotion/nokogiri/issues/132
54,814
132
[ "sparklemotion", "nokogiri" ]
Looks like NodeSet#slice isn't handling range beyond the end of the array... ``` #!/usr/bin/env ruby require 'rubygems' require 'nokogiri' xml = Nokogiri::XML('<?xml version="1.0" encoding="utf-8"?> <rss version="2.0"> <channel> <item><title>t1</title></item> <item><title>t2</title></item> </channel> <...
NodeSet#slice doesn't handle ranges beyond the end of the array
https://api.github.com/repos/sparklemotion/nokogiri/issues/131/comments
1
2009-09-03T02:43:48Z
2009-09-12T04:07:34Z
https://github.com/sparklemotion/nokogiri/issues/131
53,817
131
[ "sparklemotion", "nokogiri" ]
I think the reference to the racc tarball (v 1.4.5) should be removed from the gem compilation script because that version doesn't work on ruby 1.9. Instead of the user being directed to that tarball, the user should be told to install the racc gem (now 1.4.6 and compatable with 1.9).
racc requisite
https://api.github.com/repos/sparklemotion/nokogiri/issues/130/comments
3
2009-09-01T19:48:33Z
2009-09-01T21:58:57Z
https://github.com/sparklemotion/nokogiri/issues/130
53,288
130
[ "sparklemotion", "nokogiri" ]
RELAXNG's validate() method changed in 1.3.3: - In 1.3.2, it returns an array of errors (and empty if succesful). - In 1.3.3, it always returns an empty array AND writes to stderr. This is probably due to 1.3.3's registering a libxml global error-handler. This is a critical breaking change on 2 counts: - validate() n...
1.3.3 breaks RELAXNG.new(rng).validate(xml)
https://api.github.com/repos/sparklemotion/nokogiri/issues/129/comments
10
2009-09-01T05:13:52Z
2009-09-06T22:02:33Z
https://github.com/sparklemotion/nokogiri/issues/129
53,027
129
[ "sparklemotion", "nokogiri" ]
After installing nokogiri on Snow Leoaprd (using ARCHFLAG or not), it blows up with: dlopen(/usr/local/lib/ruby/gems/1.8/gems/nokogiri-1.3.3/lib/nokogiri/nokogiri.bundle, 9): no suitable image found. Did find: /usr/local/lib/ruby/gems/1.8/gems/nokogiri-1.3.3/lib/nokogiri/nokogiri.bundle: mach-o, but wrong architectu...
Nokogiri Fail on Snow Leopard
https://api.github.com/repos/sparklemotion/nokogiri/issues/128/comments
2
2009-08-31T17:13:55Z
2009-08-31T17:43:51Z
https://github.com/sparklemotion/nokogiri/issues/128
52,785
128
[ "sparklemotion", "nokogiri" ]
implement Nokogiri::XML::DTD#external_id and system_id look at xmlDtdPtr
implement Nokogiri::XML::DTD#external_id and system_id
https://api.github.com/repos/sparklemotion/nokogiri/issues/127/comments
1
2009-08-31T04:54:27Z
2009-09-12T21:06:51Z
https://github.com/sparklemotion/nokogiri/issues/127
52,575
127
[ "sparklemotion", "nokogiri" ]
Implement Nokogiri::XML::ElementDecl#content look at tree.h struct _xmlElement, content member
Implement Nokogiri::XML::ElementDecl#content
https://api.github.com/repos/sparklemotion/nokogiri/issues/126/comments
1
2009-08-31T04:12:02Z
2009-09-13T00:14:18Z
https://github.com/sparklemotion/nokogiri/issues/126
52,551
126
[ "sparklemotion", "nokogiri" ]
Strings returned by Nokogiri::HTML(open(url)).xpath("//xpath_expression/text()").to_ary are such formatted that comparaison return false on identic strings. To avoid the problem i have to do it : Nokogiri::HTML(open(url)).xpath("//xpath_expression").collect(&:text)
strings returned by xpath expression "/text()" are bad formatted
https://api.github.com/repos/sparklemotion/nokogiri/issues/125/comments
1
2009-08-30T09:47:15Z
2009-08-30T17:45:38Z
https://github.com/sparklemotion/nokogiri/issues/125
52,381
125
[ "sparklemotion", "nokogiri" ]
Every now and again Nokogiri will fail to process an HTML document, producing the error "output error : unknown encoding". Reference issue 122 as I strongly suspect that this is also related to the version of libxml2. This issue only comes up in my Windows XP environment and it works fine in my Linux environment (aga...
Nokogiri produces error "output error : unknown encoding" on certain pages
https://api.github.com/repos/sparklemotion/nokogiri/issues/124/comments
1
2009-08-27T18:27:27Z
2009-08-28T01:33:52Z
https://github.com/sparklemotion/nokogiri/issues/124
51,725
124
[ "sparklemotion", "nokogiri" ]
``` fragment = '<p id="content">hi</p>' Nokogiri::HTML.fragment(fragment).search('#content').length # this returns zero Nokogiri::HTML(fragment).search('#content').length # this returns 1 ``` Searching for an element ('p') does work, but using any CSS selector or XPath seems to always produce zero results. Non-fragmen...
DocumentFragment lacks detailed search
https://api.github.com/repos/sparklemotion/nokogiri/issues/123/comments
1
2009-08-26T15:23:53Z
2009-08-29T05:23:02Z
https://github.com/sparklemotion/nokogiri/issues/123
51,242
123
[ "sparklemotion", "nokogiri" ]
Linux environment: CentOS 5.2 ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux] rails 2.3.3 Nokogiri 1.3.3 Windows environment: Windows XP ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] rails 2.3.3 Nokogiri 1.3.3 This is a peculiar issue I discovered when I moved my application from my Windows XP developme...
Nokogiri only returns HTML comment tags
https://api.github.com/repos/sparklemotion/nokogiri/issues/122/comments
6
2009-08-24T23:59:28Z
2009-08-28T00:49:55Z
https://github.com/sparklemotion/nokogiri/issues/122
50,692
122
[ "sparklemotion", "nokogiri" ]
Works fine with MRI, but not with REE: ``` henrik@Nyx ~/Code$ which nokogiri /opt/ruby-enterprise-1.8.6-20090610/bin/nokogiri henrik@Nyx ~/Code$ nokogiri -v --- nokogiri: 1.3.3 warnings: [] libxml: compiled: 2.7.3 loaded: 2.7.3 binding: extension henrik@Nyx ~/Code$ which ruby /opt/ruby-enterprise-1.8.6-200906...
tcmalloc error parsing "<a><b></a>" fragment with REE
https://api.github.com/repos/sparklemotion/nokogiri/issues/121/comments
4
2009-08-23T17:48:42Z
2010-01-24T01:13:14Z
https://github.com/sparklemotion/nokogiri/issues/121
50,192
121
[ "sparklemotion", "nokogiri" ]
I am use ubuntu 9.04 amd64, xml2, xslt and exslt libraries are installed. When I require nokogiri, I got following error: irb(main):003:0> require 'nokogiri' LoadError: Could not open any of [xml2, xslt, exslt] from /home/dan/installed/jruby/lib/ruby/1.8/ffi/library.rb:18:in `ffi_lib' from /home/dan/installed/jruby-1....
nokogiri-1.3.3 is not working with libxml2, libxslt in 1.3.1
https://api.github.com/repos/sparklemotion/nokogiri/issues/120/comments
1
2009-08-18T01:00:13Z
2009-08-19T06:17:34Z
https://github.com/sparklemotion/nokogiri/issues/120
48,192
120
[ "sparklemotion", "nokogiri" ]
Hi there: I've been tracking down some problems with my implementation for XPath and I think it is not my problem, but yours. Let me explain. In Nokogiri::XML::NodeSet#search you can see: ``` each do |node| paths.each do |path| sub_set += send(path =~ /^(\.\/|\/)/ ? :xpath : :css, *(paths + [ns])) end e...
NodeSet#search problems and NodeSet#+ is not different from NodeSet#&
https://api.github.com/repos/sparklemotion/nokogiri/issues/119/comments
1
2009-08-12T01:25:45Z
2009-08-12T18:44:31Z
https://github.com/sparklemotion/nokogiri/issues/119
46,261
119
[ "sparklemotion", "nokogiri" ]
These methods need to be converted to Ruby. The current meta_encoding= method will call xmlFreeNode() on the old meta tag which will cause a segv: ``` require 'nokogiri' doc = Nokogiri::HTML DATA.read node = doc.at('meta') puts node.name doc.meta_encoding = 'EUC-JP' p node __END__ <html> <head> <meta http-...
Convert meta_encoding and meta_encoding= to ruby
https://api.github.com/repos/sparklemotion/nokogiri/issues/118/comments
1
2009-08-10T17:03:25Z
2009-10-14T04:38:38Z
https://github.com/sparklemotion/nokogiri/issues/118
45,648
118
[ "sparklemotion", "nokogiri" ]
There seems to be an inconsistency between how encoding conversion is applied with the inner_text, inner_html and to_html methods. With #inner_text, I think all output is automatically converted to UTF8. With #inner_html, encoding conversions are not applied. With #to_html, you can specify the desired encoding for t...
Shouldn't inner_html convert to UTF8 the same way as inner_text?
https://api.github.com/repos/sparklemotion/nokogiri/issues/117/comments
4
2009-08-07T08:44:05Z
2009-08-31T02:07:35Z
https://github.com/sparklemotion/nokogiri/issues/117
44,663
117
[ "sparklemotion", "nokogiri" ]
1.3.2 installs fine but I can't seem to build/install 1.3.3. I'm running Ubuntu 9.04. What is st.h and how do I get it to find it? Thanks! <pre> > sudo gem1.9 install nokogiri -v 1.3.2 Building native extensions. This could take a while... Successfully installed nokogiri-1.3.2 1 gem installed Installing ri document...
nokogiri-1.3.3 introduces dependency on st.h -- error: st.h: No such file or directory
https://api.github.com/repos/sparklemotion/nokogiri/issues/116/comments
2
2009-08-06T20:32:12Z
2010-05-28T15:38:55Z
https://github.com/sparklemotion/nokogiri/issues/116
44,469
116
[ "sparklemotion", "nokogiri" ]
Is thrown on (malformed) documents with missing encoding info on v1.3.2 Steps to reproduce: ``` require 'nokogiri' require 'open-uri' doc = Nokogiri::HTML(open('http://www.europapress.es/valencia/noticia-moby-dick-john-huston-obrira-cap-setmana-filmoteca-destiu-valencia-20090731183544.html')) doc.meta_encoding ``` r...
"ArgumentError: NULL pointer given" on calling doc.meta_encoding
https://api.github.com/repos/sparklemotion/nokogiri/issues/115/comments
1
2009-08-04T11:28:58Z
2009-08-07T04:24:55Z
https://github.com/sparklemotion/nokogiri/issues/115
43,466
115