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"
] | When you push a string into the `Nokogiri::XML::Sax::PushParser` that is over 512 characters you get an odd syntax error instead of an error about the buffer overflowing.
``` ruby
require "nokogiri"
class Parser < Nokogiri::XML::SAX::Document
end
xml = <<-XML
<CreateApplicationVersionResponse xmlns="http://elasticbe... | java XmlSaxPushParser raises odd error when buffer overflows | https://api.github.com/repos/sparklemotion/nokogiri/issues/567/comments | 5 | 2011-11-14T22:00:28Z | 2012-06-13T05:17:35Z | https://github.com/sparklemotion/nokogiri/issues/567 | 2,236,610 | 567 |
[
"sparklemotion",
"nokogiri"
] | Hi I am having difficulty getting my rails server to start due to the problem
<code>/Users/idle/.rvm/gems/ruby-1.9.3-p0/bundler/gems/nokogiri-e47459e90abd/lib/nokogiri.rb:27:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)</code>
I have installed MacPorts and successfully installed libxml2 and libx... | Ruby 1.9.3 , Rails 3.1.1, Nokogiri 1.5.0 : Cannot Load Such File -- Nokogiri/Nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/566/comments | 6 | 2011-11-10T09:05:46Z | 2012-02-05T01:12:42Z | https://github.com/sparklemotion/nokogiri/issues/566 | 2,195,960 | 566 |
[
"sparklemotion",
"nokogiri"
] | I'm trying to use Nokogiri to parse the status page of my haproxy page, but the resulting Nokogiri document in truncated and mangled.
```
irb(main):003:0> Nokogiri::VERSION_INFO
=> {"warnings"=>[], "ruby"=>{"engine"=>"mri", "version"=>"1.8.7", "description"=>"ruby 1.8.7 (2009-06-12 patchlevel 174)
[i686-linux]", "pla... | HTML Parsing Incorrectly with Nokogiri 1.5.0 and libxml2 2.6.26 | https://api.github.com/repos/sparklemotion/nokogiri/issues/565/comments | 3 | 2011-11-10T06:28:13Z | 2011-11-10T18:51:01Z | https://github.com/sparklemotion/nokogiri/issues/565 | 2,195,239 | 565 |
[
"sparklemotion",
"nokogiri"
] | Please backport this commit to the java implementation. 1642214fa11836588f69df9bacdac1650541e31d
| Backport 1642214fa11836588f69df9bacdac1650541e31d to java | https://api.github.com/repos/sparklemotion/nokogiri/issues/564/comments | 1 | 2011-11-08T18:30:23Z | 2011-11-08T19:22:03Z | https://github.com/sparklemotion/nokogiri/issues/564 | 2,177,581 | 564 |
[
"sparklemotion",
"nokogiri"
] | Hi,
we have found a strange issue in Nokogiri (latest version).
Using this code:
``` ruby
html = Nokogiri::XML::Builder.new do |html|
html.doc.create_internal_subset(
'html',
'-//W3C//DTD XHTML 1.0 Transitional//EN',
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'
)... | Nokogiri adds id attribute with XHTML doctype | https://api.github.com/repos/sparklemotion/nokogiri/issues/562/comments | 2 | 2011-11-04T11:04:36Z | 2012-02-21T07:18:35Z | https://github.com/sparklemotion/nokogiri/issues/562 | 2,142,683 | 562 |
[
"sparklemotion",
"nokogiri"
] | => Booting WEBrick
=> Rails 3.1.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-11-03 13:52:05] INFO WEBrick 1.3.1
[2011-11-03 13:52:05] INFO ruby 1.9.3 (2011-10-30) [i686-linux]
[2011-11-03 13:52:05] INFO WEBrick::HTTPServer#start: pid=29647 ... | Segmentation fault - rails 3.1, nokogiri 1.5.0, ruby 1.9.3-p0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/561/comments | 9 | 2011-11-03T21:05:04Z | 2013-11-20T07:43:11Z | https://github.com/sparklemotion/nokogiri/issues/561 | 2,137,646 | 561 |
[
"sparklemotion",
"nokogiri"
] | The following simple test case:
``` ruby
require 'nokogiri'
class MyNode < Nokogiri::XML::Node
def self.new(*args)
super
end
end
class MyNode2 < Nokogiri::XML::Node
def initialize(*args)
super
end
end
class MyNode3 < Nokogiri::XML::Node
end
describe MyNode do
subject { MyNode.new 'foo', Nokogiri... | Inheriting from Nokogiri::XML::Node on JRuby (1.6.4/5) fails | https://api.github.com/repos/sparklemotion/nokogiri/issues/560/comments | 28 | 2011-11-02T16:20:07Z | 2011-12-02T20:22:35Z | https://github.com/sparklemotion/nokogiri/issues/560 | 2,123,225 | 560 |
[
"sparklemotion",
"nokogiri"
] | doesn't seem to like the <?xml ... ?> header, while in regular Ruby it doesn't have a problem. I'm guessing this is a Xerces vs. libxml issue, but wondered if anybody else has seen this issue.
I'm using 1.5.0.
I've captured a simple script that shows the error returned by the fog.io library:
https://gist.github.com... | Nokogiri::XML::SAX::PushParser's native_write in JRuby... | https://api.github.com/repos/sparklemotion/nokogiri/issues/559/comments | 10 | 2011-11-01T15:58:04Z | 2013-11-17T03:24:57Z | https://github.com/sparklemotion/nokogiri/issues/559 | 2,111,807 | 559 |
[
"sparklemotion",
"nokogiri"
] | Repro code:
```
require 'nokogiri'
p Nokogiri::VERSION, RUBY_DESCRIPTION
r = Nokogiri.XML('<r a="1" />').root
r << r.at_xpath('@a').remove
```
Result:
```
"1.5.0"
"ruby 1.9.2p180 (2011-02-18) [i386-mingw32]"
C:/Ruby/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0-x86-mingw32/lib/nokogiri/xml/node.rb:270: [BUG] Segmentation ... | Segfault when using Node#<<( attr_node ) | https://api.github.com/repos/sparklemotion/nokogiri/issues/558/comments | 2 | 2011-11-01T15:41:30Z | 2011-11-01T16:44:04Z | https://github.com/sparklemotion/nokogiri/issues/558 | 2,111,639 | 558 |
[
"sparklemotion",
"nokogiri"
] | This only happens in JRuby, using MRI it does not appear to exhibit this problem.
When the tag has content it is okay:
```
Nokogiri::HTML::DocumentFragment.parse('<p>anything</p>').to_xhtml
=> "<p>anything</p>"
```
When tag has no content it fails:
```
Nokogiri::HTML::DocumentFragment.parse('<p></p>').to_xhtml
=> "... | to_xhtml incorrectly generates <p /></p> when tag is empty | https://api.github.com/repos/sparklemotion/nokogiri/issues/557/comments | 1 | 2011-10-31T09:37:06Z | 2013-09-14T07:18:21Z | https://github.com/sparklemotion/nokogiri/issues/557 | 2,095,178 | 557 |
[
"sparklemotion",
"nokogiri"
] | I get a read_memory error. Here's the testcase :
``` ruby
def test_graph_5_malformed
input="<!-- simple graph: 1-g-2 -->\n<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<topology>\n\t<vertices>\n\t\t<vertex int_idx=\"0\" role=\"gateway\" />\n\t\t<vertex int_idx=\"1\" role=\"virtnode\" int_vn=\"1\" />\n\t\t<verte... | TypeError: can't convert Fixnum into String | https://api.github.com/repos/sparklemotion/nokogiri/issues/556/comments | 1 | 2011-10-30T21:55:19Z | 2012-02-20T20:06:53Z | https://github.com/sparklemotion/nokogiri/issues/556 | 2,092,393 | 556 |
[
"sparklemotion",
"nokogiri"
] | Hey friend, okay? I'm having problems with the following command in a test file that I'm just trying to test the nokogiri.
i have ruby version 1.9.2-head and get this error at irb in nokogiri require call:
ruby-1.9.2-head :001 > require 'nokogiri'
LoadError: no such file to load -- nokogiri
from /Users/vanilton/.r... | Nokogiri error : (Gem::LoadError) - ruby 1.9.2-head | https://api.github.com/repos/sparklemotion/nokogiri/issues/555/comments | 1 | 2011-10-22T17:13:08Z | 2012-02-20T20:11:28Z | https://github.com/sparklemotion/nokogiri/issues/555 | 2,023,670 | 555 |
[
"sparklemotion",
"nokogiri"
] | I am using ruby 1.9.3-preview1 and nokogiri 1.5.0.
``` ruby
require "nokogiri"
s = ""
puts Nokogiri::HTML::DocumentFragment.parse("e#{s}").to_s.inspect
```
Outputs:
```
output error : unknown encoding ASCII-8BIT
""
```
It is very strange that if empty string is inserted inline `"e#{""}"` - there is no error.
libx... | [Bug?] unknown encoding ASCII-8BIT | https://api.github.com/repos/sparklemotion/nokogiri/issues/553/comments | 24 | 2011-10-16T17:01:40Z | 2018-02-20T00:09:19Z | https://github.com/sparklemotion/nokogiri/issues/553 | 1,922,385 | 553 |
[
"sparklemotion",
"nokogiri"
] | ```
require 'nokogiri'
p Nokogiri::VERSION
#=> "1.5.0"
p [
Nokogiri::XML::ParseOptions::NOENT,
Nokogiri::XML::ParseOptions::DEFAULT_HTML
].map{ |o| Nokogiri::HTML("<p>Foo®</p>",nil,'utf-8',o).at('//text()') }
#=> [#<Nokogiri::XML::Text:0x810bb34c "Foo\u00AE">,
#=> #<Nokogiri::XML::Text:0x810bafdc "Foo\u00AE">]... | Parsing without NOENT still substitutes entities | https://api.github.com/repos/sparklemotion/nokogiri/issues/551/comments | 7 | 2011-10-13T20:34:33Z | 2020-09-23T12:02:01Z | https://github.com/sparklemotion/nokogiri/issues/551 | 1,904,604 | 551 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri allows siblings to be added to root, thus generating invalid XML:
ruby-1.9.2-p290 :001 > require 'rubygems'
=> false
ruby-1.9.2-p290 :002 > require 'nokogiri'
=> true
ruby-1.9.2-p290 :003 > doc = Nokogiri::XML::Document.parse '<root />'
=> #<Nokogiri::XML::Document:0x804c144c name="document" children=[#<... | prevent siblings from being added to root | https://api.github.com/repos/sparklemotion/nokogiri/issues/550/comments | 5 | 2011-10-12T06:44:16Z | 2011-12-18T05:04:10Z | https://github.com/sparklemotion/nokogiri/issues/550 | 1,884,794 | 550 |
[
"sparklemotion",
"nokogiri"
] | I've just forked Nokogiri, installed the relevant gems, & run `rake`. Things progress normally for a while, then I see:
```
.....XPath error : Stack usage errror
./test/xslt/test_custom_functions.rb:57: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
rake aborted!
Command faile... | Segmentation fault when running rake | https://api.github.com/repos/sparklemotion/nokogiri/issues/549/comments | 2 | 2011-10-12T05:59:47Z | 2011-10-13T22:26:54Z | https://github.com/sparklemotion/nokogiri/issues/549 | 1,884,645 | 549 |
[
"sparklemotion",
"nokogiri"
] | I get a null pointer error when parsing the string below:
Works in ruby 1.9.2
```
xml_string = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n<articles loadtime=\"0 sec\" rendertime=\"0.022 sec\" totaltime=\"0.022 sec\"><article><paragraph><template name=\"Infobox Radio station\">\\n<param name=\"name\">WXYG</param>\\... | Null pointer when xml parsing in jruby 1.6.4 and nokogiri (1.5.0 java) | https://api.github.com/repos/sparklemotion/nokogiri/issues/548/comments | 2 | 2011-10-11T22:41:13Z | 2011-10-28T20:12:46Z | https://github.com/sparklemotion/nokogiri/issues/548 | 1,881,869 | 548 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri seems to have issues parsing the file:
https://github.com/sgonyea/activewarehouse-etl/blob/master/spec/fixtures/data/nokogiri.xml
To reproduce the issue that I experienced (running JRuby 1.6.4), please do the following:
git clone git://github.com/sgonyea/activewarehouse-etl.git
cd activewarehouse-etl
which ... | JRuby - Issues parsing valid XML | https://api.github.com/repos/sparklemotion/nokogiri/issues/547/comments | 3 | 2011-10-10T20:07:38Z | 2012-12-05T07:39:40Z | https://github.com/sparklemotion/nokogiri/issues/547 | 1,867,613 | 547 |
[
"sparklemotion",
"nokogiri"
] | Node#add_child is fine with lots of different types of child -- strings, nodesets, etc...
https://github.com/tenderlove/nokogiri/blob/master/lib/nokogiri/xml/node.rb#L265
...but XML::Document#add_child fails if its parameter doesn't have a "type" method
https://github.com/tenderlove/nokogiri/blob/master/lib/nokogiri... | XML::Document#add_child unduly restricts its parameter's type | https://api.github.com/repos/sparklemotion/nokogiri/issues/546/comments | 2 | 2011-10-08T00:24:42Z | 2012-02-20T20:27:59Z | https://github.com/sparklemotion/nokogiri/issues/546 | 1,850,583 | 546 |
[
"sparklemotion",
"nokogiri"
] | xmlMemSetup() is used in Init_nokogiri() of ext/nokogiri/nokogiri.c, except MacRuby.
But xmlMemSetup has to be called before any other libxml routines, so I feel it should not be used in ext library.
For example, I want to use Ruby/RSVG (a part of Ruby-GNOME2) together with Nokogiri:
require "rsvg2"
require "nokog... | xmlMemSetup should not be used even in module inialization. | https://api.github.com/repos/sparklemotion/nokogiri/issues/545/comments | 6 | 2011-10-06T12:56:37Z | 2021-02-16T17:05:03Z | https://github.com/sparklemotion/nokogiri/issues/545 | 1,833,399 | 545 |
[
"sparklemotion",
"nokogiri"
] | Hello,
I've faced this issue with `sanitize` first, but the author forwards this to `nokogiri`:
```
>> Nokogiri::HTML.fragment('<b><a href="http://foo.com/">foo</a></b><img src="http://foo.com/bar.jpg" />').to_xhtml
=> "<b>\n <a href=\"http://foo.com/\">foo</a>\n</b><img src=\"http://foo.com/bar.jpg\" />"
```
Here... | extra new lines around <a> tag | https://api.github.com/repos/sparklemotion/nokogiri/issues/543/comments | 1 | 2011-10-01T06:28:37Z | 2011-10-01T12:12:42Z | https://github.com/sparklemotion/nokogiri/issues/543 | 1,790,943 | 543 |
[
"sparklemotion",
"nokogiri"
] | When parsing an HTML document with namespace definitions, the definitions should show up as attributes. This doesn't happen with the jRuby/java version:
```
describe Nokogiri::HTML do
describe "xmlns" do
it "shows namespace definitions" do
doc = Nokogiri::HTML.parse(%q(<html xmlns:dc="http://purl.org/dc/el... | Java version does not return namespace defs as attrs for ::HTML | https://api.github.com/repos/sparklemotion/nokogiri/issues/542/comments | 2 | 2011-09-30T19:27:53Z | 2011-10-28T18:01:06Z | https://github.com/sparklemotion/nokogiri/issues/542 | 1,788,466 | 542 |
[
"sparklemotion",
"nokogiri"
] | I'm using Nokogiri 1.5.0 on Snow Leopard 10.6.8.
Sometimes, when I use git-commit-notifier to send emails about my git commits, Nokogiri crashes when I push my commits.
For example:
```
Sending mail...
/Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/node.rb:821: [BUG] Segmentation fault
ruby 1.8.7 (2009-0... | 1.5.0: Crash at node.rb:821 | https://api.github.com/repos/sparklemotion/nokogiri/issues/541/comments | 12 | 2011-09-22T12:45:10Z | 2012-02-20T20:30:48Z | https://github.com/sparklemotion/nokogiri/issues/541 | 1,713,620 | 541 |
[
"sparklemotion",
"nokogiri"
] | I had the following:
```
<Node Attribute="the value of the attribute with a " inside">
...
</Node>
```
And while the document was parsed successfully by `XML.parse`, searches using `.css` results in any elements at the same level in the tree that came after this node being ignored.
| Can not handle " in attribute | https://api.github.com/repos/sparklemotion/nokogiri/issues/540/comments | 1 | 2011-09-15T21:44:54Z | 2011-09-15T22:08:03Z | https://github.com/sparklemotion/nokogiri/issues/540 | 1,657,392 | 540 |
[
"sparklemotion",
"nokogiri"
] | doc = Nokogiri::XML(open("http://www.w3.org/2001/XMLSchema-datatypes.xsd"))
doc.remove_namespaces!
(irb):6: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.8.0]
-- control frame ----------
c:0029 p:---- s:0103 b:0103 l:000102 d:000102 CFUNC :remove_namespaces!
c:0028 p:0011 s:010... | .remove_namespaces! on file with no namespaces triggers segfault? | https://api.github.com/repos/sparklemotion/nokogiri/issues/538/comments | 4 | 2011-09-13T14:47:23Z | 2011-12-18T04:55:10Z | https://github.com/sparklemotion/nokogiri/issues/538 | 1,633,833 | 538 |
[
"sparklemotion",
"nokogiri"
] | `$ gem install nokogiri`
Error installing nokogiri:
nokogiri requires Ruby version >= 1.8.7
But my version is higher. Downgrading is not an option.
| Can't install with ruby 1.9.2p290 | https://api.github.com/repos/sparklemotion/nokogiri/issues/537/comments | 4 | 2011-09-12T17:26:04Z | 2021-02-16T17:05:03Z | https://github.com/sparklemotion/nokogiri/issues/537 | 1,625,850 | 537 |
[
"sparklemotion",
"nokogiri"
] | I'm not even sure where this belongs, since the issue is related to generating XML SOAP calls in Savon, but bubbles up to org.jruby.RubyProc, yet it's with Nokogiri (I think)..
Anyway, here's the error: http://travis-ci.org/#!/klauern/mantisrb/builds/123802/L91
And here's a discussion I had with Rubii regarding Savon... | Weird error working with Savon and XML SOAP calls | https://api.github.com/repos/sparklemotion/nokogiri/issues/536/comments | 2 | 2011-09-10T17:57:59Z | 2011-09-12T12:41:29Z | https://github.com/sparklemotion/nokogiri/issues/536 | 1,615,024 | 536 |
[
"sparklemotion",
"nokogiri"
] | Just wondering--will the libxml FFI bindings continued to be supported in versions >1.5.0, or must I now only use versions 1.4.*? I am not ready to rely on nokogiri 1.5.0 because there isn't enough equivalent behavior between the two versions. Will there continue to be occasional updates to the 1.4 versions (e.g, if a... | libxml FFI bindings in nokogiri >1.5.0 and JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/535/comments | 2 | 2011-09-09T08:07:25Z | 2011-09-09T18:55:46Z | https://github.com/sparklemotion/nokogiri/issues/535 | 1,605,871 | 535 |
[
"sparklemotion",
"nokogiri"
] | I'm having issues parsing and fetching the line numbers for a feed of XML which exceeds 65535 lines. Of course the limit of an unsigned short integer is 65535 which is why I assume this fails. Once this limit is hit the line number doesn't increase, which screws our return info. I haven't been able to look into this an... | XML line limit | https://api.github.com/repos/sparklemotion/nokogiri/issues/533/comments | 3 | 2011-09-07T21:19:06Z | 2021-08-14T17:02:24Z | https://github.com/sparklemotion/nokogiri/issues/533 | 1,593,460 | 533 |
[
"sparklemotion",
"nokogiri"
] | # Expected behavior
Original XML: `<w:headerReference w:type="default" r:id="rId8"/>`
Transformed XML: `<w:headerReference w:type="default" r:id="rId8"/>`
# Actual behavior
Original XML: `<w:headerReference w:type="default" r:id="rId8"/>`
Transformed XML: `<w:headerReference w:type="default" id="rId8"/>`
(Note the 'r... | XSLT transform deletes namespace from XML tag | https://api.github.com/repos/sparklemotion/nokogiri/issues/532/comments | 0 | 2011-09-07T02:11:41Z | 2018-05-24T15:39:41Z | https://github.com/sparklemotion/nokogiri/issues/532 | 1,586,016 | 532 |
[
"sparklemotion",
"nokogiri"
] | While trying to get a .Net bug-compatible SOAP output I found the following anomaly...
``` ruby
require 'nokogiri'
SOAP_NAMESPACES = {
"xmlns:SOAP-ENV"=>"http://schemas.xmlsoap.org/soap/envelope/",
"xmlns:SOAP-ENC"=>"http://www.w3.org/2003/05/soap-encoding",
... | Nokogiri::XML::Builder doesn't support "-" (hyphens) in namespace prefixes | https://api.github.com/repos/sparklemotion/nokogiri/issues/531/comments | 0 | 2011-09-06T03:26:53Z | 2012-02-20T21:24:37Z | https://github.com/sparklemotion/nokogiri/issues/531 | 1,574,916 | 531 |
[
"sparklemotion",
"nokogiri"
] | When using HTML, no extra whitespace (indentation) is added. For example:
```
Nokogiri::XML('<pre><code>moo</code></pre>').to_html
# => "<pre><code>moo</code></pre>\n"
```
However, with XHTML (and XML), the original line is split in three lines (pre, code, and /pre) and the middle line is erroneously indented, like t... | #to_xhtml adds extra whitespace in pre elements | https://api.github.com/repos/sparklemotion/nokogiri/issues/530/comments | 2 | 2011-09-04T10:23:34Z | 2024-08-25T08:02:34Z | https://github.com/sparklemotion/nokogiri/issues/530 | 1,561,005 | 530 |
[
"sparklemotion",
"nokogiri"
] | Hello all.
I swear upon my life that I had already contacted one of the nokogiri devs about this but I cannot fidn any evidence on github, email, mailing lists etc.
Anyway. I am having to create SJIS encoded xml files on jruby on windows and Nokogiri is always creating the files in UTF-8 encoding.
This functionality... | File encoding broken in 1.5.0 / jruby / windows | https://api.github.com/repos/sparklemotion/nokogiri/issues/529/comments | 9 | 2011-09-02T06:58:27Z | 2012-01-13T20:04:34Z | https://github.com/sparklemotion/nokogiri/issues/529 | 1,548,734 | 529 |
[
"sparklemotion",
"nokogiri"
] | When I attempt to use nokogiri with doc.css('.r .l:not(.mslg .l)') I receive the error
```
Nokogiri::CSS::SyntaxError: unexpected ' ' after '#<Nokogiri::CSS::Node:0x007fb4ab5f4940>'
```
I am simply trying to get urls from a google search page. This is what I'm doing
```
doc = Nokogiri::HTML(open("http://www.google.... | CSS3 :not() with children selectors | https://api.github.com/repos/sparklemotion/nokogiri/issues/528/comments | 6 | 2011-08-30T19:54:59Z | 2019-01-05T06:46:29Z | https://github.com/sparklemotion/nokogiri/issues/528 | 1,523,839 | 528 |
[
"sparklemotion",
"nokogiri"
] | Hello,
Environment : Windows 7
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
gem list noko -> nokogiri (1.5.0 x86-mingw32)
issued with cucumber 1.0.2, melomel 0.6.4
Could not find nokogiri (~> 1.4.3) amongst [.... , nokogiri-1.5.0-x86-mingw32, ...] !!!
Thanks.
| nokogiri-1.5.0-x86-mingw32 is not found when asking for ~> 1.4.3 | https://api.github.com/repos/sparklemotion/nokogiri/issues/526/comments | 2 | 2011-08-29T10:54:45Z | 2011-08-29T22:46:36Z | https://github.com/sparklemotion/nokogiri/issues/526 | 1,508,276 | 526 |
[
"sparklemotion",
"nokogiri"
] | htmlcode7 = "<p>You & me </p>"
doc = Nokogiri::XML(htmlcode7)
puts doc
Will get nothing.
Environment:
OS: Mac Lion
JRUBY: jruby 1.7.0.dev (ruby-1.8.7-p330) (2011-08-23 51c5a74) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [darwin-x86_64-java]
| Can not handle '&' in content in JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/525/comments | 3 | 2011-08-28T13:07:23Z | 2012-12-05T07:54:40Z | https://github.com/sparklemotion/nokogiri/issues/525 | 1,503,622 | 525 |
[
"sparklemotion",
"nokogiri"
] | The pure-java Nokogiri::XML::Reader can't read a huge xml
because it always reads whole file on memory.
See(Ja): https://twitter.com/#!/eban/status/98629501499613184
To solve this problem,
I've changed Nokogiri::XML::Reader to use StAX.
It uses less memory and seems to work on better performance.
But it doesn't su... | OOM error by feeding a huge xml to Nokogiri::XML::Reader in JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/523/comments | 0 | 2011-08-25T17:04:59Z | 2011-08-25T17:08:13Z | https://github.com/sparklemotion/nokogiri/issues/523 | 1,484,288 | 523 |
[
"sparklemotion",
"nokogiri"
] | I noticed that `Nokogiri::HTML::Node#inner_text` was traversing the entire document on JRuby 1.6.3.
## Steps to Reproduce
```
require 'rubygems'
require 'nokogiri'
doc = Nokogiri::HTML(%{
<html>
<body>Hello</body>
</html>
})
doc.at('body').inner_text
```
## Expected Result (Ruby 1.9.2-p290)
```
... | nokogiri-1.5.0-java inner_text is not respecting inner nodes | https://api.github.com/repos/sparklemotion/nokogiri/issues/521/comments | 2 | 2011-08-17T05:20:03Z | 2019-01-05T06:44:11Z | https://github.com/sparklemotion/nokogiri/issues/521 | 1,420,739 | 521 |
[
"sparklemotion",
"nokogiri"
] | Hi,
I have html page which has following line with some html entities like "&#146;".
# Here I am not pasting whole html page content. just putting issue line only
html_file = "<html>....<body><p>they&#146;re originally intended to describe the spread of of viral diseases, but they&#146;re nice analogies f... | ’ is getting converted as "\uoo92" | https://api.github.com/repos/sparklemotion/nokogiri/issues/520/comments | 3 | 2011-08-11T19:25:32Z | 2013-11-20T07:49:59Z | https://github.com/sparklemotion/nokogiri/issues/520 | 1,389,856 | 520 |
[
"sparklemotion",
"nokogiri"
] | I've run into a problem with Nokogiri 1.4.*
1.4.1 says:
`[GEM_HOME]/ruby/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/document.rb:33: [BUG] Bus Error`
And 1.4.7 says:
`[GEM_HOME]/ruby/1.8/gems/nokogiri-1.4.7/lib/nokogiri/xml/document.rb:33: [BUG] Segmentation fault`
### Environment
OS: FreeBSD 8.2
Ruby: 1.8.7 p-248
lib... | Segmentation fault on Nokogiri 1.4.* | https://api.github.com/repos/sparklemotion/nokogiri/issues/518/comments | 10 | 2011-08-11T13:26:59Z | 2011-08-12T11:52:34Z | https://github.com/sparklemotion/nokogiri/issues/518 | 1,387,412 | 518 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri 1.5.0 on JRuby seems to have some regressions:
- Nokogiri::XML::Document.parse('< test />').to_s now no longer includes the encoding in the initial <?xml?> tag. This will cause parse issues later on when using unicode characters,
- I am getting "called decorate on nil" exceptions that are completely unrelated... | JRuby regressions 1.4.6 -> 1.5.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/514/comments | 2 | 2011-08-10T12:57:09Z | 2012-06-13T13:41:40Z | https://github.com/sparklemotion/nokogiri/issues/514 | 1,379,451 | 514 |
[
"sparklemotion",
"nokogiri"
] | I've run into a problem when adding attributes to certain nodes in an XML document. It seems to be either a memory corruption issue, or Nokogiri trying to mark a nil object for garbage collection. The result is a SEGV in what I think is the garbage collection phase.
I stripped down a much longer bunch of code to find ... | SEGV when adding/modifying attribute | https://api.github.com/repos/sparklemotion/nokogiri/issues/513/comments | 2 | 2011-08-09T18:57:40Z | 2011-08-10T20:19:43Z | https://github.com/sparklemotion/nokogiri/issues/513 | 1,374,550 | 513 |
[
"sparklemotion",
"nokogiri"
] | I recently started testing my gems on Travis against JRuby. Tests are passing on other Ruby implementations (MRI, REE, Rubinius) but fail on JRuby with the following error:
http://travis-ci.org/#!/intridea/omniauth/builds/73047
http://travis-ci.org/#!/pengwynn/octokit/builds/73065
@headius said that these failures lo... | Tests for gems that use nokogiri failing in JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/512/comments | 2 | 2011-08-08T21:32:20Z | 2012-07-07T13:51:53Z | https://github.com/sparklemotion/nokogiri/issues/512 | 1,368,425 | 512 |
[
"sparklemotion",
"nokogiri"
] | I'll be working on it.
- Strings will be encoded in proper encodings.
Currently every string is blindly tagged as UTF-8 and you have to do .force_encoding(doc.encoding) around.
- Document#encoding will return an Encoding object instead of a string.
This partly breaks compatibility.
doc.encoding = "UTF-8" and Nokogir... | Adding Ruby 1.9 M17N support | https://api.github.com/repos/sparklemotion/nokogiri/issues/510/comments | 3 | 2011-08-08T08:06:03Z | 2019-01-05T06:36:27Z | https://github.com/sparklemotion/nokogiri/issues/510 | 1,363,695 | 510 |
[
"sparklemotion",
"nokogiri"
] | ```
["Java::JavaLang::NoSuchMethodError", java.lang.NoSuchMethodError: org.jruby.RubyArray.compare(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/util/Set;)Lorg/jruby/RubyBoolean;]
nokogiri.XmlNode.isErrorIncreated(XmlNode.java:720)
nokogiri.XmlNode.in_context(XmlNode.ja... | NoSuchMethodError crash in Nokogiri 1.5.0 java | https://api.github.com/repos/sparklemotion/nokogiri/issues/508/comments | 5 | 2011-08-03T21:11:10Z | 2012-01-20T00:47:08Z | https://github.com/sparklemotion/nokogiri/issues/508 | 1,340,402 | 508 |
[
"sparklemotion",
"nokogiri"
] | Blather has a test failure on Nokogiri 1.5.0 which is not present in 1.4.x. This relates to rendering an XML document with the AS_XML save option.
It appears the bug was introduced here: https://github.com/tenderlove/nokogiri/commit/3498cae788563361884c2b67e3fcd0b024443483#L4R768
The matching Blather ticket can be fo... | Nokogiri::XML::Node::SaveOptions::AS_XML is overridden by DEFAULT_XML | https://api.github.com/repos/sparklemotion/nokogiri/issues/505/comments | 12 | 2011-08-02T13:07:01Z | 2011-11-17T18:40:57Z | https://github.com/sparklemotion/nokogiri/issues/505 | 1,329,775 | 505 |
[
"sparklemotion",
"nokogiri"
] | Is it expected/intended that Nokogiri.XML on a bad or non XML will just give you an empty doc, rather than raise?
```
(rdb:3) Nokogiri.XML("this is not xml").to_xml
"<?xml version=\"1.0\"?>\n"
(rdb:3) Nokogiri.XML("<this>Is sort of</this>xml</unopened>more stuff at end").to_xml
"<?xml version=\"1.0\"?>\n<thi... | Nokogiri.XML on bad xml, silently empty doc? | https://api.github.com/repos/sparklemotion/nokogiri/issues/499/comments | 2 | 2011-07-28T15:32:53Z | 2012-02-20T22:24:18Z | https://github.com/sparklemotion/nokogiri/issues/499 | 1,303,639 | 499 |
[
"sparklemotion",
"nokogiri"
] | With jruby (jruby 1.5.6 (ruby 1.8.7 patchlevel 249) (2011-06-08 6586) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [amd64-java]) I'm getting the following test failures with nokogiri 1.5.0:
```
1) Failure:
test_document_html_charset(Nokogiri::HTML::TestDocumentEncodingDetection) [./test/html/test_document_encoding.r... | nokogiri 1.5.0 tests fail with jruby | https://api.github.com/repos/sparklemotion/nokogiri/issues/496/comments | 3 | 2011-07-19T06:09:53Z | 2012-02-20T22:18:39Z | https://github.com/sparklemotion/nokogiri/issues/496 | 1,247,524 | 496 |
[
"sparklemotion",
"nokogiri"
] | I am getting a Bad file descriptor error when using Nokogiri 1.5.0 with JRuby 1.6.2 and 1.6.3 on Win7. I have managed to reproduce the issue with a very simple script which works with MRI:
``` ruby
require 'rubygems'
require 'optparse'
require 'nokogiri'
Dir.chdir(ARGV[0])
poms = File.join("**", "pom.xml")
Dir.glob... | Bad file descriptor with Nokogiri 1.5.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/495/comments | 11 | 2011-07-18T08:22:07Z | 2012-11-09T17:40:04Z | https://github.com/sparklemotion/nokogiri/issues/495 | 1,240,297 | 495 |
[
"sparklemotion",
"nokogiri"
] | ```
# nokogiri (1.5.0 java)
# jruby 1.6.3
# macosx 10.5 java
require 'rubygems'
require 'nokogiri'
transform_xsl=Proc.new do
puts xslt.transform(doc)
end
def get_xml(xml)
Nokogiri::XML(xml)
end
def get_xsl(xsl)
Nokogiri::XSLT(xsl)
end
xml=%{
<a>
<b>
<c>123</c>
</b>
</a>
}
xsl=%{
<xsl:... | xsl transform nullpointer exception | https://api.github.com/repos/sparklemotion/nokogiri/issues/494/comments | 4 | 2011-07-15T18:15:22Z | 2013-11-12T01:25:08Z | https://github.com/sparklemotion/nokogiri/issues/494 | 1,231,814 | 494 |
[
"sparklemotion",
"nokogiri"
] | The following code works in MRI ruby but not in jruby with pure java nokogiri. Is there anyway to search with namespaces?
``` ruby
require 'rubygems'
require 'nokogiri'
xml = <<EOF
<?xml version="1.0"?>
<MetadataDocument xmlns="http://bagfors.nu/schema/test">
<field>
<name>test</name>
<value>foobar</... | not able to use namespaces in xpath in pure java version | https://api.github.com/repos/sparklemotion/nokogiri/issues/493/comments | 6 | 2011-07-12T09:23:53Z | 2012-06-25T03:41:53Z | https://github.com/sparklemotion/nokogiri/issues/493 | 1,207,256 | 493 |
[
"sparklemotion",
"nokogiri"
] | The following code gives an error in pure java version but works fine in MRI.
``` ruby
require 'rubygems'
require 'nokogiri'
xml = <<EOF
<?xml version="1.0"?>
<MetadataDocument xmlns="http://bagfors.nu/schema/test">
<field>
<name>Title</name>
<value>Generic</value>
</field>
</MetadataDocument>
EOF... | remove_namespace! doesn't work in pure java version | https://api.github.com/repos/sparklemotion/nokogiri/issues/492/comments | 5 | 2011-07-12T08:59:35Z | 2012-01-24T18:18:46Z | https://github.com/sparklemotion/nokogiri/issues/492 | 1,207,116 | 492 |
[
"sparklemotion",
"nokogiri"
] | Reported on jruby-users ml: http://old.nabble.com/Nokogiri-1.5.0-Released-to31981984.html
Following code doesn't work correctly on pure Java version.
```
require 'rubygems'
require 'nokogiri'
input = "<root><p>xyz</p></root>"
doc = Nokogiri::XML(input, nil, 'UTF-8')
p.replace("<s/>A:B")
puts doc.to_s
```
Pure Java... | Replacing by not well-formed string doesn't work on pure Java version | https://api.github.com/repos/sparklemotion/nokogiri/issues/490/comments | 1 | 2011-07-08T16:14:24Z | 2011-07-28T19:21:04Z | https://github.com/sparklemotion/nokogiri/issues/490 | 1,190,920 | 490 |
[
"sparklemotion",
"nokogiri"
] | This does not happen with the non Java version.
I've created a small test suite to demonstrate the problem. You can find it here:
https://github.com/tatyree/nokogiri_jruby_blank_issue
| The Nokogiri Java native build throws a null pointer exception when ActiveSupport's .blank? method is called directly on a parsed object. | https://api.github.com/repos/sparklemotion/nokogiri/issues/489/comments | 2 | 2011-07-08T11:10:45Z | 2011-07-08T18:50:08Z | https://github.com/sparklemotion/nokogiri/issues/489 | 1,189,280 | 489 |
[
"sparklemotion",
"nokogiri"
] | I am using the Pure Java version of nokogiri on Windows.
I am opening, editing and saving SJIS files.
On Nokogiri 1.5.0.beta.4 this works without trouble however after upgrading to 1.5.0 all new files are being written in UTF-8.
another difference (Not important to me but maybe a clue) is that the 1.5.0.beta.4 xml ... | 1.5.0 Not using correct character encoding | https://api.github.com/repos/sparklemotion/nokogiri/issues/488/comments | 1 | 2011-07-08T08:28:19Z | 2011-07-08T17:15:20Z | https://github.com/sparklemotion/nokogiri/issues/488 | 1,188,568 | 488 |
[
"sparklemotion",
"nokogiri"
] | Hey guys. This might be expected behavior but I found it a bit strange. If I have a nodeset selected from a document, then I sub-select another nodeset and #remove it, the sub-selected set is removed from the original document, but not from the nodeset at hand.
What do you think, sound like an issue?
``` ruby
>> No... | NodeSet#unlink removes nodes from the document but not from intermediate nodesets | https://api.github.com/repos/sparklemotion/nokogiri/issues/487/comments | 2 | 2011-07-05T01:26:26Z | 2011-07-05T05:19:33Z | https://github.com/sparklemotion/nokogiri/issues/487 | 1,164,784 | 487 |
[
"sparklemotion",
"nokogiri"
] | This example demonstrates that Nokogiri 1.5.0 on JRuby 1.6.2 generates wrong XML when using complex raw XML string in XML Builder (but on MRI everything is OK).
``` ruby
require "rubygems"
gem "nokogiri", "1.5.0"
require "nokogiri"
builder = Nokogiri::XML::Builder.new do |doc|
doc.test do
doc << '<aaa><bbb/><cc... | Raw XML string in XML Builder broken on JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/486/comments | 6 | 2011-07-04T20:48:14Z | 2011-07-08T15:26:47Z | https://github.com/sparklemotion/nokogiri/issues/486 | 1,164,083 | 486 |
[
"sparklemotion",
"nokogiri"
] | ``` bash
git clone https://github.com/alexdunae/premailer.git
premailer/test/files$ jruby -S premailer base.html
```
Nothing is displayed using Java nokogiri. Note that base.html is included in the premailer test folder. Make sure hpricot isn't installed so premailer is forced to use nokogiri.
Running `premailer b... | Java nokogiri fails on premailer | https://api.github.com/repos/sparklemotion/nokogiri/issues/485/comments | 10 | 2011-07-04T18:56:30Z | 2011-07-09T00:18:10Z | https://github.com/sparklemotion/nokogiri/issues/485 | 1,163,681 | 485 |
[
"sparklemotion",
"nokogiri"
] | [This](http://ci.rkh.im/job/Sinatra%20%28master%29/412/rack=rack-1.3.0,ruby=jruby-1.6.1,tilt=tilt-1.3/testReport/junit/%28root%29/NokogiriTest/test_renders_with_file_layouts/) happens on both JRuby 1.6.1 and JRuby head. Works on all other Rubies, including Rubinius.
| Nokogiri 1.5.0 XML generation broken on JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/484/comments | 12 | 2011-07-02T07:30:31Z | 2011-07-08T03:13:53Z | https://github.com/sparklemotion/nokogiri/issues/484 | 1,154,384 | 484 |
[
"sparklemotion",
"nokogiri"
] | ```
nokogiri.c:41: error: static declaration of 'ruby_strdup' follows non-static declaration
/usr/local/lib/rubinius/include/ruby.h:1736: error: previous declaration of 'ruby_strdup' was here
```
IMO, this is a bug in nokogiri, but evanphx is going to commit a patch so that nokogiri 1.5.0 works in rubinius 1.2.4. Sti... | nokogiri 1.5.0 doesn't work with rubinius 1.2.3 | https://api.github.com/repos/sparklemotion/nokogiri/issues/483/comments | 13 | 2011-07-01T20:46:49Z | 2011-08-10T13:46:05Z | https://github.com/sparklemotion/nokogiri/issues/483 | 1,152,966 | 483 |
[
"sparklemotion",
"nokogiri"
] | ```
irb(main):013:0> Nokogiri::HTML(' ').text
=> " "
irb(main):014:0> Nokogiri::HTML(' ').text
=> "  "
irb(main):015:0> Nokogiri::HTML(' ').text
=> "  "
irb(main):016:0> Nokogiri::HTML.parse(' ', nil, 'utf-8').text
=> "  "
irb(main):017:0> Nokogiri::HTML.fragment(' &n... | ISO 8859-1 Symbols not handled properly by Nokogiri::HTML(html) | https://api.github.com/repos/sparklemotion/nokogiri/issues/482/comments | 32 | 2011-07-01T20:14:01Z | 2018-03-21T05:45:39Z | https://github.com/sparklemotion/nokogiri/issues/482 | 1,152,740 | 482 |
[
"sparklemotion",
"nokogiri"
] | hi
'doc=Nokogiri::HTML(open(url))' gets a whole duplication for some page,but 1.4.4 works well.
| 1.4.6 does not work well | https://api.github.com/repos/sparklemotion/nokogiri/issues/480/comments | 3 | 2011-06-27T08:47:17Z | 2011-06-28T09:23:38Z | https://github.com/sparklemotion/nokogiri/issues/480 | 1,120,358 | 480 |
[
"sparklemotion",
"nokogiri"
] | Here's the page: http://www.adm.uwaterloo.ca/infocour/CIR/SA/under.html.
| bad auto correct markup | https://api.github.com/repos/sparklemotion/nokogiri/issues/479/comments | 1 | 2011-06-26T19:00:42Z | 2011-08-02T05:16:47Z | https://github.com/sparklemotion/nokogiri/issues/479 | 1,117,829 | 479 |
[
"sparklemotion",
"nokogiri"
] | When using version 1.4.4, the following produces the correct results:
```
Nokogiri::HTML(open(URI.encode("http://store.steampowered.com/search/results?sort_by=Name&sort_order=ASC&category1=998&cc=us&v6=1&page=1")))
```
1.4.5 yielded duplicates, as well as 1.4.6. I did not try 1.4.4.1 or 1.4.4.2.
I suspect it has to ... | version > 1.4.4 produces duplicate elements when using Nokogiri::HTML with an invalid HTML doc | https://api.github.com/repos/sparklemotion/nokogiri/issues/478/comments | 9 | 2011-06-23T12:51:03Z | 2011-06-29T15:02:18Z | https://github.com/sparklemotion/nokogiri/issues/478 | 1,103,913 | 478 |
[
"sparklemotion",
"nokogiri"
] | Stack trace as follows,
ruby/lib/ruby/gems/1.8/gems/nokogiri-1.4.5/lib/nokogiri/version.rb:12: uninitialized constant RUBY_DESCRIPTION (NameError)
ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require'
ruby/lib/ruby/gems... | RUBY_DESCRIPTION is not available in 1.8.6 which makes 1.4.5 unusable without patching | https://api.github.com/repos/sparklemotion/nokogiri/issues/477/comments | 2 | 2011-06-21T01:56:01Z | 2011-06-21T04:11:16Z | https://github.com/sparklemotion/nokogiri/issues/477 | 1,089,221 | 477 |
[
"sparklemotion",
"nokogiri"
] | Please update http://nokogiri.org/tutorials/installing_nokogiri.html to show how easy it is to install Nokogiri on Arch systems:
```
sudo pacman -S libxml2
sudo pacman -S libxslt
sudo gem install nokogiri
```
| Add Arch install info to nokogiri.org | https://api.github.com/repos/sparklemotion/nokogiri/issues/476/comments | 1 | 2011-06-20T20:04:29Z | 2011-06-20T21:45:51Z | https://github.com/sparklemotion/nokogiri/issues/476 | 1,087,406 | 476 |
[
"sparklemotion",
"nokogiri"
] | I'm using nokogiri java 1.4.5 in 1.9 mode.
This page http://nokogiri.org/Nokogiri.html shows using open-uri + nokogiri to parse.
```
require 'open-uri'
require 'nokogiri'
file = open 'http://blog.carbonfive.com'
doc = Nokogiri::HTML(file.read) # works
doc = Nokogiri::HTML(file) # doesn't
```
According to the rdoc, s... | Nokogiri example does not work | https://api.github.com/repos/sparklemotion/nokogiri/issues/475/comments | 4 | 2011-06-17T04:23:53Z | 2011-06-20T03:27:10Z | https://github.com/sparklemotion/nokogiri/issues/475 | 1,071,490 | 475 |
[
"sparklemotion",
"nokogiri"
] | perhaps it's a feature, don't know, I'm observing the following using ruby-1.9.2-p180 and 1.8.7-p334 + nokogiri 1.4.4
Nokogiri::HTML.fragment('<p><div>AAA</div></p>').to_s => "<p></p><div>AAA</div>"
Nokogiri::XML.fragment('<p><div>AAA</div></p>'... | strange result with HTML and XML document | https://api.github.com/repos/sparklemotion/nokogiri/issues/474/comments | 1 | 2011-06-13T05:51:16Z | 2011-06-20T03:09:05Z | https://github.com/sparklemotion/nokogiri/issues/474 | 1,047,579 | 474 |
[
"sparklemotion",
"nokogiri"
] | Hello
I'm running into some problems running Arachni that seem to be related to Nokogiri:
<pre><code>
$ arachni -h
/usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.4.4/lib/nokogiri/xml/attribute_decl.rb:7:in `undef_method': undefined met
hod `attributes' for class `Nokogiri::XML::AttributeDecl' (NameError)
from... | undefined method 'attributes' | https://api.github.com/repos/sparklemotion/nokogiri/issues/473/comments | 7 | 2011-06-10T08:09:07Z | 2011-06-20T03:16:25Z | https://github.com/sparklemotion/nokogiri/issues/473 | 1,034,915 | 473 |
[
"sparklemotion",
"nokogiri"
] | If I have Nokogiri::XML::Element instance `e` and I call `e.attribute('type')` and `e.has_attribute?('type') == false` holds true, I get an error stating "undefined method 'value' for "Insecure: can't modify instance variable":String". In MRI a nil value is returned and on JRuby with nokogiri 1.4.4 a nil value is retu... | java: 1.5.0b4 raises error fetching attribute node that doesn't exist | https://api.github.com/repos/sparklemotion/nokogiri/issues/472/comments | 3 | 2011-06-09T16:32:43Z | 2011-06-09T18:05:43Z | https://github.com/sparklemotion/nokogiri/issues/472 | 1,031,162 | 472 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri 1.4.4 isn't opening a document in a TempFile correctly on RedHat Enterprise 5.5 while it is working correctly on Mac OS X.
Both systems are using Ruby v1.8.7 p302 and RubyGems 1.8.5.
Here's the results on my Mac OS X 10.6.7 system:
```
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.5
- RUBY VER... | creating a new doc from a TempFile fails on RedHat Enterprise 5.5, works on Max OS X | https://api.github.com/repos/sparklemotion/nokogiri/issues/470/comments | 17 | 2011-06-03T22:03:04Z | 2011-06-06T16:32:21Z | https://github.com/sparklemotion/nokogiri/issues/470 | 1,001,054 | 470 |
[
"sparklemotion",
"nokogiri"
] | # summary
I am hitting a segmentation fault @ `nokogiri/xml/node_set.rb:237` but in my attempts to reproduce it, i keep hitting a segmentation fault @ `nokogiri/xml/node.rb:809`. I am not sure if they are related or not, but for the time being this bug report is only about `node.rb:809` since the instructions below ca... | Segmentation fault nokogiri/xml/node.rb:809 | https://api.github.com/repos/sparklemotion/nokogiri/issues/469/comments | 4 | 2011-06-01T19:07:02Z | 2012-02-11T02:41:42Z | https://github.com/sparklemotion/nokogiri/issues/469 | 986,213 | 469 |
[
"sparklemotion",
"nokogiri"
] | Okay, here is a situation: I've got a WYSIWIG editor (CKEditor to be precise) which accepts some data on input. People use MS Word for formatting and copy-paste it into wysiwig. Output is html or xml-like formatted document which I later scrub with loofah which uses nokogiri underneath. This brings us to an error
```
... | error parsing fragment (1) for a long wysiwig editor input | https://api.github.com/repos/sparklemotion/nokogiri/issues/468/comments | 2 | 2011-06-01T09:22:54Z | 2011-06-02T06:42:25Z | https://github.com/sparklemotion/nokogiri/issues/468 | 983,544 | 468 |
[
"sparklemotion",
"nokogiri"
] | $ java -jar jruby-complete-1.6.2.jar -S gem list nokogiri -l
**\* LOCAL GEMS ***
nokogiri (1.4.4.2 java)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
$ java -jar jruby-complete-1.6.2.jar -rubygems -e 'require "nokogiri"'
Loa... | jruby and libxml on ubuntu | https://api.github.com/repos/sparklemotion/nokogiri/issues/467/comments | 4 | 2011-05-31T08:15:12Z | 2011-06-02T09:31:01Z | https://github.com/sparklemotion/nokogiri/issues/467 | 977,436 | 467 |
[
"sparklemotion",
"nokogiri"
] | When class shortcut added in example from [nokogiri/xml/builder.rb](https://github.com/tenderlove/nokogiri/blob/master/lib/nokogiri/xml/builder.rb), then code in block loses outside scope:
<pre><code>
@objects = [Object.new, Object.new, Object.new]
builder = Nokogiri::XML::Builder.new do |xml|
xml.root {
... | Builder "loses" outside scope when attribute shortcut used | https://api.github.com/repos/sparklemotion/nokogiri/issues/466/comments | 1 | 2011-05-26T16:36:54Z | 2011-05-26T20:34:10Z | https://github.com/sparklemotion/nokogiri/issues/466 | 959,660 | 466 |
[
"sparklemotion",
"nokogiri"
] | Hello,
I am calling a ruby script which calls Nokogiri to parse HTML forms.
I am calling Nokogiri as follows:
doc = Nokogiri::HTML( html )
page.xpath('//form').each do | form |
(page/:form).find { |elem|
if elem.key?("method")
method = elem['method'].downcase
else
method = "get"
end
}
end
When... | Problems when running multiple instances | https://api.github.com/repos/sparklemotion/nokogiri/issues/465/comments | 3 | 2011-05-25T12:08:08Z | 2011-05-25T15:00:59Z | https://github.com/sparklemotion/nokogiri/issues/465 | 952,583 | 465 |
[
"sparklemotion",
"nokogiri"
] | When enabling either `-w` or `-d` the following warnings are shown:
```
$ ruby -w -rnokogiri -e ''
ruby-1.9.2-p180/gems/nokogiri-1.4.4/lib/nokogiri/css/generated_parser.rb:675: warning: mismatched indentations at 'end' with 'module' at 11
ruby-1.9.2-p180/gems/nokogiri-1.4.4/lib/nokogiri/css/generated_parser.rb:676: wa... | warning: mismatched indentations at 'end' with 'module' at ... | https://api.github.com/repos/sparklemotion/nokogiri/issues/463/comments | 2 | 2011-05-24T15:49:32Z | 2011-05-24T23:33:12Z | https://github.com/sparklemotion/nokogiri/issues/463 | 947,852 | 463 |
[
"sparklemotion",
"nokogiri"
] | I think i've encountered a strange bug in nokogiri:
If Nokogiri::XML.xpath is called consecutive times in one script with the same argument it occasionally produces a different result set (duplicates).
A script which reprodcues the error for can be found here:
https://gist.github.com/987019
What i've noticed: The B... | xpath produces duplicates if called multiple times | https://api.github.com/repos/sparklemotion/nokogiri/issues/462/comments | 5 | 2011-05-23T16:54:58Z | 2011-05-24T23:35:18Z | https://github.com/sparklemotion/nokogiri/issues/462 | 942,393 | 462 |
[
"sparklemotion",
"nokogiri"
] | I am getting the following error whenever I require 'nokogiri'
LoadError: /usr/lib/ruby/gems/1.9.1/gems/nokogiri-1.4.4/lib/nokogiri/nokogiri.so: undefined symbol: gcry_check_version - /usr/lib/ruby/gems/1.9.1/gems/nokogiri-1.4.4/lib/nokogiri/nokogiri.so
Can you guys solve it for me fast? please.
| undefined symbol gcry_check_version | https://api.github.com/repos/sparklemotion/nokogiri/issues/461/comments | 9 | 2011-05-22T00:29:00Z | 2011-06-14T20:53:23Z | https://github.com/sparklemotion/nokogiri/issues/461 | 936,704 | 461 |
[
"sparklemotion",
"nokogiri"
] | The behaviour is difficult to explain, but #inner_html= seems to interpret its argument as something other than UTF-8.
Here is a gist that shows the odd behaviour: https://gist.github.com/973188. I expect the output to be “…” all the time, but sometimes it is interpreted using a different charset.
| #inner_html= messes up encoding | https://api.github.com/repos/sparklemotion/nokogiri/issues/458/comments | 21 | 2011-05-15T19:45:45Z | 2014-06-25T22:49:36Z | https://github.com/sparklemotion/nokogiri/issues/458 | 903,201 | 458 |
[
"sparklemotion",
"nokogiri"
] | Seems nokogiri binary gem with platform `x86-mswin32` can be installed on builds of Ruby made with Visual Studio 2010 but do not work.
This is because Visual Studio builds `msvcr100-ruby191.dll` and links against `msvcr100.dll` which is not the msvcrt Nokogiri uses, thus failing.
Back in RubyGems 0.9.5 I expressed th... | Limit gem binary for 'mswin32' to MSVCRT runtime | https://api.github.com/repos/sparklemotion/nokogiri/issues/457/comments | 4 | 2011-05-15T13:12:31Z | 2011-06-17T13:42:58Z | https://github.com/sparklemotion/nokogiri/issues/457 | 902,421 | 457 |
[
"sparklemotion",
"nokogiri"
] | The following snippet:
```
require 'nokogiri'
script_tag = %q{
<script type='text/javascript'>//<![CDATA[
alert('hi');
//]]>
</script>
}
frag = Nokogiri::HTML.fragment(script_tag)
puts frag.to_s
```
Produces:
```
<script type="text/javascript"><![CDATA[
//<![CDATA[
alert('hi');
//]]]]><![CDATA[>
]]></... | Javascript tags with CDATA corrupted | https://api.github.com/repos/sparklemotion/nokogiri/issues/456/comments | 5 | 2011-05-13T23:04:24Z | 2013-11-27T05:01:35Z | https://github.com/sparklemotion/nokogiri/issues/456 | 897,960 | 456 |
[
"sparklemotion",
"nokogiri"
] | When using the builder on JRuby, generated attributes all have lower case. I've added a test that fails on JRuby in cf2123ca1c3e69d1029ba9c70d1d1281cec20a0a to show the problem.
| Attribute case sensitivity is not respected | https://api.github.com/repos/sparklemotion/nokogiri/issues/455/comments | 2 | 2011-05-10T23:25:02Z | 2013-08-25T07:00:36Z | https://github.com/sparklemotion/nokogiri/issues/455 | 879,564 | 455 |
[
"sparklemotion",
"nokogiri"
] | Test to reproduce bug:
```
def test_last_fragment
text = '<p>Lorem ipsum</p><p>Second paragraph</p><div>Not paragraph</div>'
fragment = Nokogiri::HTML.fragment text
assert_equal(1, fragment.search('p:last').size)
assert_equal(1, fragment.css('p:last').size)
end
```
Looks like this works with docu... | :last css selector not working in DocumentFragment | https://api.github.com/repos/sparklemotion/nokogiri/issues/454/comments | 2 | 2011-05-05T12:29:58Z | 2022-05-20T03:34:11Z | https://github.com/sparklemotion/nokogiri/issues/454 | 853,116 | 454 |
[
"sparklemotion",
"nokogiri"
] | This ruby:
```
require "nokogiri"
xsl = Nokogiri::XSLT('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"></xsl:stylesheet>')
xsl.apply_to(Nokogiri::HTML("").css("body"))
```
This result:
```
/Users/arthur/.rvm/gems/ruby-1.9.2-p0/gems/nokogiri-1.4.4/lib/nokogiri/xslt/stylesheet.rb:21: [... | Passing a Nokogiri::XML::NodeSet to #apply_to Segfaults | https://api.github.com/repos/sparklemotion/nokogiri/issues/452/comments | 2 | 2011-05-03T10:41:25Z | 2011-05-04T13:31:48Z | https://github.com/sparklemotion/nokogiri/issues/452 | 842,619 | 452 |
[
"sparklemotion",
"nokogiri"
] | Trying to use the following CSS selector raises an Nokogiri::CSS::SyntaxError exception: *:not(.one):not(.two)
[This page](http://www.w3.org/TR/css3-selectors/#nth-child-pseudo) from w3.org uses the following similar selector as an example: *:not(.txt_escuro):not(.fotoMateria), so it should be valid.
| CSS selector with multiple :not fails | https://api.github.com/repos/sparklemotion/nokogiri/issues/451/comments | 12 | 2011-04-29T20:58:11Z | 2014-03-15T16:22:40Z | https://github.com/sparklemotion/nokogiri/issues/451 | 830,754 | 451 |
[
"sparklemotion",
"nokogiri"
] | I've added example in pastie - http://pastie.org/1839350
| Nokogiri does not understand multiple namespaces declaration | https://api.github.com/repos/sparklemotion/nokogiri/issues/450/comments | 2 | 2011-04-27T14:07:08Z | 2011-04-27T21:10:15Z | https://github.com/sparklemotion/nokogiri/issues/450 | 819,803 | 450 |
[
"sparklemotion",
"nokogiri"
] | I'm expecting some troubles with Nokogiri::XML::DocumentFragment. Could you explain me please why
```
Nokogiri::XML::DocumentFragment.parse("<qq:a ww=\"ss\"><img src='aa'/> aaa</a>").to_s
```
returns
```
"<a ww=\"ss\"><img src=\"aa\"/> aaa</a>"
```
(there are no "qq"-namespace)?? How can i correct this, because ... | DocumentFragment lost namespace | https://api.github.com/repos/sparklemotion/nokogiri/issues/449/comments | 1 | 2011-04-22T21:22:01Z | 2011-04-23T20:27:05Z | https://github.com/sparklemotion/nokogiri/issues/449 | 803,785 | 449 |
[
"sparklemotion",
"nokogiri"
] | Kiji is a fork of Ruby Enterprise Edition by the folks at Twitter. I can't seem to get Nokogiri to build on it.
```
rvm info
homes:
gem: "/Users/carlos/.rvm/gems/kiji-head"
ruby: "/Users/carlos/.rvm/rubies/kiji-head"
binaries:
ruby: "/Users/carlos/.rvm/rubies/kiji-head/bin/ruby"
irb: ... | Nokogiri Fails To Install on Kiji | https://api.github.com/repos/sparklemotion/nokogiri/issues/448/comments | 4 | 2011-04-12T02:27:16Z | 2011-05-30T21:56:33Z | https://github.com/sparklemotion/nokogiri/issues/448 | 757,435 | 448 |
[
"sparklemotion",
"nokogiri"
] | MRI version returns the same string as passed in:
```
$ ruby -rubygems -ve' require "nokogiri"; p Nokogiri::VERSION; p Nokogiri::HTML::DocumentFragment.parse("<a href='/test' class='test'>test</a>").to_html '
ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-darwin10.5.0]
"1.5.0.beta.4"
"<a href=\"/test\" class=\"test\">te... | pure java version re-orders html attributes unnecessarily | https://api.github.com/repos/sparklemotion/nokogiri/issues/445/comments | 6 | 2011-04-07T07:19:29Z | 2020-11-09T19:06:37Z | https://github.com/sparklemotion/nokogiri/issues/445 | 740,609 | 445 |
[
"sparklemotion",
"nokogiri"
] | kind of a stupid bug to be reporting, but its breaking some tests that assume the MRI behavior.
in MRI, newlines appear to be stripped:
```
$ ruby -rubygems -ve' require "nokogiri"; p Nokogiri::VERSION; p Nokogiri::HTML::DocumentFragment.parse("<p>hi</p>\n").to_html '
ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-darw... | newlines treated differently in pure java implementation | https://api.github.com/repos/sparklemotion/nokogiri/issues/444/comments | 5 | 2011-04-07T07:04:49Z | 2014-05-22T15:38:50Z | https://github.com/sparklemotion/nokogiri/issues/444 | 740,587 | 444 |
[
"sparklemotion",
"nokogiri"
] | repro:
```
require 'rubygems'
require 'nokogiri'
p [:version=, Nokogiri::VERSION]
doc = Nokogiri::HTML::DocumentFragment.parse('<p>this is a string.</p>')
nodes = doc.search('text()')
p nodes
p nodes.first.ancestors('pre, code')
```
mri:
```
ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-darwin10.5.0]
[:version=, "1... | null pointer exception in java extension | https://api.github.com/repos/sparklemotion/nokogiri/issues/443/comments | 8 | 2011-04-07T02:19:11Z | 2011-04-07T14:49:26Z | https://github.com/sparklemotion/nokogiri/issues/443 | 740,148 | 443 |
[
"sparklemotion",
"nokogiri"
] | We're running Ruby 1.8.7 (through RVM) on OS X 10.6.6. Trying to install nokogiri 1.4.4 using bundler results always the following error:
```
Installing nokogiri (1.4.4) with native extensions /Users/administrator/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/installer.rb:533:in `build_extensions': ERROR... | libiconv is missing | https://api.github.com/repos/sparklemotion/nokogiri/issues/442/comments | 109 | 2011-04-03T17:53:14Z | 2015-01-30T20:46:57Z | https://github.com/sparklemotion/nokogiri/issues/442 | 728,647 | 442 |
[
"sparklemotion",
"nokogiri"
] | # So I am trying to have validate an xml document using an Xsd with the following code
require 'rubygems'
require 'nokogiri'
PO_SCHEMA_FILE='/home/tmp/test/Resume.xsd'
PO_XML_FILE='/home/tmp/ResumeExample.xml'
xsd = Nokogiri::XML::Schema(File.read(PO_SCHEMA_FILE))
doc = Nokogiri::XML(File.read(PO_XML_FILE))
xsd.val... | Issue Nokogori 1.4.4 and xsd:import schemaLocation | https://api.github.com/repos/sparklemotion/nokogiri/issues/441/comments | 8 | 2011-03-31T18:50:22Z | 2011-04-01T20:43:37Z | https://github.com/sparklemotion/nokogiri/issues/441 | 722,057 | 441 |
[
"sparklemotion",
"nokogiri"
] | When an XML file refers to its DTD file using SYSTEM to indicate that that DTD is on the filesystem, like this:
<!DOCTYPE Foo SYSTEM "sample.dtd">
...when validate() is called on the document parsed from that XML file, the DTD seems not to be found, and generates errors like this:
[#<Nokogiri::XML::SyntaxError: No d... | Can't validate SYSTEM DTD's | https://api.github.com/repos/sparklemotion/nokogiri/issues/440/comments | 6 | 2011-03-31T02:51:11Z | 2012-02-20T22:39:43Z | https://github.com/sparklemotion/nokogiri/issues/440 | 719,880 | 440 |
[
"sparklemotion",
"nokogiri"
] | When parsing a large ( 7.2 gig ) XMl file using Nokogiri::XML::Reader, I can reliably cause a segfault. Below is the rubinius crash report. I can generate a crash using matz ruby 1.8.7-p330, 1.9.2-p136 and rubinius 1.2.4dev. Below is the crash report generated by rubinius. I also can generate this error in both the lat... | SIGSEGV while parsing XML using Nokogiri::XML::Reader | https://api.github.com/repos/sparklemotion/nokogiri/issues/439/comments | 26 | 2011-03-23T19:03:01Z | 2011-05-19T21:42:58Z | https://github.com/sparklemotion/nokogiri/issues/439 | 698,495 | 439 |
[
"sparklemotion",
"nokogiri"
] | parser.parse_file(myfile) throws the following exception:
undefined method `xmldecl' for #<AcesAdvantage::XmlUtility::AcesHandler:0x11699d268>
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/nokogiri-1.4.4/lib/nokogiri/xml/sax/parser.rb:104:in`parse_with'
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/... | undefined method 'xmldecl' when trying to use Nokogiri::XML::SAX::Parser | https://api.github.com/repos/sparklemotion/nokogiri/issues/437/comments | 1 | 2011-03-16T14:49:56Z | 2013-11-16T01:30:48Z | https://github.com/sparklemotion/nokogiri/issues/437 | 678,632 | 437 |
[
"sparklemotion",
"nokogiri"
] | I'm not sure if this is valid or not, but Facebook is using fb: as an xmlns. When I prase html with namespaces set, then do to_html on it, the fb: namespace is removed from any tags:
```
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
</head>
<body>
<fb:... | Nokogiri::HTML(...) removes namespaces | https://api.github.com/repos/sparklemotion/nokogiri/issues/436/comments | 1 | 2011-03-16T03:37:22Z | 2011-03-16T12:31:10Z | https://github.com/sparklemotion/nokogiri/issues/436 | 677,459 | 436 |
[
"sparklemotion",
"nokogiri"
] | "//table" returns an empty array
| xpath bug with: http://www.baidu.com/s?wd=abc | https://api.github.com/repos/sparklemotion/nokogiri/issues/435/comments | 1 | 2011-03-15T07:07:07Z | 2011-03-15T13:36:49Z | https://github.com/sparklemotion/nokogiri/issues/435 | 674,712 | 435 |
[
"sparklemotion",
"nokogiri"
] | $ sudo gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
```
/usr/local/bin/ruby extconf.rb
```
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... yes
checking for libexslt/exslt.h... yes... | Won't install, pasted what output, no idea what it means. | https://api.github.com/repos/sparklemotion/nokogiri/issues/434/comments | 1 | 2011-03-15T04:48:41Z | 2011-03-15T13:40:02Z | https://github.com/sparklemotion/nokogiri/issues/434 | 674,351 | 434 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.