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"
] | In the gem xml-focus (https://github.com/gioele/xml-focus), Nokogiri::XSLT is used to transform an XML document using a dynamically created XSLT. Everything is fine when MRI Nokogiri is used. Under JRuby, the transformation returns an incorrect result caused by the fact that some XPath selects element that should not b... | XSLT transformation not correct in JRuby (because of XPath?) | https://api.github.com/repos/sparklemotion/nokogiri/issues/953/comments | 1 | 2013-08-07T11:18:08Z | 2021-11-28T02:22:14Z | https://github.com/sparklemotion/nokogiri/issues/953 | 17,742,589 | 953 |
[
"sparklemotion",
"nokogiri"
] | This is probably really a general rubygems issue but nokogiri 1.6.0 is an extreme case.
After running `gem install nokogiri -v 1.6.0` (or letting bundler do the equivalent), the installed `nokogiri-1.6.0` directory is very large. On a Heroku dyno using ruby 1.9.3 it is 120M. This is for a couple reasons:
- the `ports`... | nokogiri 1.6.0 is very large when installed | https://api.github.com/repos/sparklemotion/nokogiri/issues/952/comments | 6 | 2013-08-01T19:50:43Z | 2014-07-23T11:07:55Z | https://github.com/sparklemotion/nokogiri/issues/952 | 17,527,338 | 952 |
[
"sparklemotion",
"nokogiri"
] | "in Nokogiri 1.6.0 and later, libxml2 and libxslt are no longer requirements.", but I still get this error.
```
D:\Home>gem install nokogiri --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed t... | Fail install Nokogiri on Windows7 x86 with Ruby2.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/951/comments | 5 | 2013-08-01T02:48:47Z | 2014-12-31T07:06:03Z | https://github.com/sparklemotion/nokogiri/issues/951 | 17,488,273 | 951 |
[
"sparklemotion",
"nokogiri"
] | Hey, someone should update the nokogiri install instructions for homebrew 0.9
http://nokogiri.org/tutorials/installing_nokogiri.html
and here's the updated version
https://github.com/sparklemotion/nokogiri.org-tutorials/blob/master/content/installing_nokogiri.md
| Update nokogiri install instructions | https://api.github.com/repos/sparklemotion/nokogiri/issues/950/comments | 4 | 2013-07-27T09:22:07Z | 2013-08-27T10:59:09Z | https://github.com/sparklemotion/nokogiri/issues/950 | 17,295,593 | 950 |
[
"sparklemotion",
"nokogiri"
] | I'm noticing that with some inputs, Nokogiri 1.6.0 will only parse the first 64 elements. Obvs, 64 is a magic number -- wondering if there's some issue with my OS, (using OSX, not sure what underlying dependencies are useful to help diagnose the problem)
Script demonstrating problem here: https://gist.github.com/ragas... | Nokogiri only parses up to 64 elements if the input is sufficiently large. | https://api.github.com/repos/sparklemotion/nokogiri/issues/949/comments | 2 | 2013-07-27T04:24:40Z | 2013-07-27T13:44:08Z | https://github.com/sparklemotion/nokogiri/issues/949 | 17,293,408 | 949 |
[
"sparklemotion",
"nokogiri"
] | See errors and such below. Nokogiri fails to compile libxml2 when there's an older version of libz installed.
I've managed to compile libxml2 in a seperate directory. How can I tell nokogiri to use that instead of trying to compile it on it's own. alternatively, how can I pass in configure arguments to libxml2 so it f... | Old libz and nokogiri fails to build | https://api.github.com/repos/sparklemotion/nokogiri/issues/948/comments | 3 | 2013-07-25T21:42:06Z | 2013-08-02T16:57:29Z | https://github.com/sparklemotion/nokogiri/issues/948 | 17,237,154 | 948 |
[
"sparklemotion",
"nokogiri"
] | After working around https://github.com/sparklemotion/nokogiri/issues/944 we came across another (seemingly) thread safety issue. If you check out the sample rails app at https://github.com/BrentWheeldon/parse-bug and mount the war file in tomcat (tested in 7.0.39 on mac, 7.0.34 on RHEL) you'll see the issue.
There is... | More thread safety issues with jruby | https://api.github.com/repos/sparklemotion/nokogiri/issues/945/comments | 2 | 2013-07-23T15:36:37Z | 2013-07-25T18:04:16Z | https://github.com/sparklemotion/nokogiri/issues/945 | 17,107,927 | 945 |
[
"sparklemotion",
"nokogiri"
] | Hi there,
We are having the same issue as this: https://github.com/backlogs/redmine_backlogs/issues/629
We are doing `Nokogiri::XML.fragment("<test>thing</test>")` in a threaded webserver (tomcat) and when we make simultaneous requests every other one fails with `ArgumentError (Requires a Node, NodeSet or String argu... | Thread safety with jruby | https://api.github.com/repos/sparklemotion/nokogiri/issues/944/comments | 1 | 2013-07-22T21:34:17Z | 2013-07-25T18:10:21Z | https://github.com/sparklemotion/nokogiri/issues/944 | 17,071,920 | 944 |
[
"sparklemotion",
"nokogiri"
] | There is an inconsistency between what can be parsed as a namespace from a and what can be added via add_namespace.
This also appears as if this is more systemic to the fact that you cannot add a namespace to an element if the prefix you are trying to use already exists in the ancestry of the node you are trying to... | Inconsistent behavior between parsing and adding namespaces | https://api.github.com/repos/sparklemotion/nokogiri/issues/943/comments | 4 | 2013-07-20T16:43:44Z | 2014-04-19T18:50:18Z | https://github.com/sparklemotion/nokogiri/issues/943 | 17,008,430 | 943 |
[
"sparklemotion",
"nokogiri"
] | Hi,
Is there any quick method to get all the microdata information specifically on itemprop attributes? and the result is all in an single object or collection.
Thank you!
Dimas
| Microdata Itemprop | https://api.github.com/repos/sparklemotion/nokogiri/issues/942/comments | 1 | 2013-07-20T06:36:40Z | 2013-08-11T09:08:28Z | https://github.com/sparklemotion/nokogiri/issues/942 | 17,002,913 | 942 |
[
"sparklemotion",
"nokogiri"
] | ```
Failure/Error: within "#edit_collection_item:123" do
Nokogiri::CSS::SyntaxError:
unexpected '123' after ':'
```
Colins are legal characters for the HTML id attribute.
| Nokogiri CSS issues SyntaxError on colin in an id query. | https://api.github.com/repos/sparklemotion/nokogiri/issues/941/comments | 3 | 2013-07-19T21:38:10Z | 2013-08-17T00:23:39Z | https://github.com/sparklemotion/nokogiri/issues/941 | 16,994,570 | 941 |
[
"sparklemotion",
"nokogiri"
] | There is inconsistent behavior between Cruby and Jruby when aliasing the default namespace for node. I created a test to highlight the difference.
```
module Nokogiri
module XML
class TestAliasedDefaultNamespaces < Nokogiri::TestCase
def setup
super
end
d... | CRuby/JRuby inconsistent behavior aliasing the default namespace | https://api.github.com/repos/sparklemotion/nokogiri/issues/940/comments | 4 | 2013-07-17T21:42:08Z | 2014-04-15T00:02:26Z | https://github.com/sparklemotion/nokogiri/issues/940 | 16,891,619 | 940 |
[
"sparklemotion",
"nokogiri"
] | When running the test suite on Rubinius, it results in consistent crashes. From what I've gathered, it seems that assumptions about what `_private` contains in `xmlNode` are not always correct.
Here a VALUE is stored inside `_private`:
https://github.com/sparklemotion/nokogiri/blob/master/ext/nokogiri/xml_node.c#L144... | Different usage of _private inside xmlNode resulting in crashes | https://api.github.com/repos/sparklemotion/nokogiri/issues/939/comments | 6 | 2013-07-16T19:30:21Z | 2014-02-12T19:07:19Z | https://github.com/sparklemotion/nokogiri/issues/939 | 16,828,676 | 939 |
[
"sparklemotion",
"nokogiri"
] | Some companies [will only use gems with a certain license](https://github.com/rubygems/rubygems.org/issues/363#issuecomment-5079786).
The canonical and easy way to check is [via the gemspec](http://docs.rubygems.org/read/chapter/20#license)
via e.g.
```
spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']
```
... | License missing from gemspec | https://api.github.com/repos/sparklemotion/nokogiri/issues/938/comments | 5 | 2013-07-15T01:01:07Z | 2013-07-16T13:41:12Z | https://github.com/sparklemotion/nokogiri/issues/938 | 16,736,266 | 938 |
[
"sparklemotion",
"nokogiri"
] | Hello, is there a way to use Module Nokogiri::XML without requiring whole library?
``` ruby
1.9.3-p448 :001 > require 'nokogiri/xml'
NoMethodError: undefined method `jruby?' for Nokogiri:Module
from /var/User/.rvm/gems/ruby-1.9.3-p448/gems/nokogiri-1.6.0/lib/nokogiri/xml/node/save_options.rb:22:in `<class:SaveOpt... | NoMethodError: undefined method `jruby?' for Nokogiri:Module | https://api.github.com/repos/sparklemotion/nokogiri/issues/937/comments | 2 | 2013-07-13T11:31:54Z | 2013-07-14T22:55:10Z | https://github.com/sparklemotion/nokogiri/issues/937 | 16,714,018 | 937 |
[
"sparklemotion",
"nokogiri"
] | https://github.com/sparklemotion/nokogiri/blob/master/ext/nokogiri/extconf.rb#L87
This seems baffling, I would have thought that you'd surely need to opt into building a local copy of a library that has a reasonable history of security issues (that are fixed in a timely manner), unless there's a new nokogiri release a... | Not using system libraries by default | https://api.github.com/repos/sparklemotion/nokogiri/issues/936/comments | 21 | 2013-07-10T22:01:10Z | 2017-03-24T17:11:35Z | https://github.com/sparklemotion/nokogiri/issues/936 | 16,603,604 | 936 |
[
"sparklemotion",
"nokogiri"
] | Normally, I'd think this was an issue of not having libxml installed, or not having the right version installed, or nokogiri not finding it.... But in nokogiri 1.6.0, nokogiri tries to install it's own libxml, right?
Which leaves me entirely not knowing how to proceed from this failure, if nokogiri is failing to inst... | Install failure on OSX: No acceptable grep?? | https://api.github.com/repos/sparklemotion/nokogiri/issues/935/comments | 20 | 2013-07-09T17:42:58Z | 2014-04-22T16:50:26Z | https://github.com/sparklemotion/nokogiri/issues/935 | 16,537,630 | 935 |
[
"sparklemotion",
"nokogiri"
] | ```
/Users/akravets/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)
from /Users/akravets/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `<top (required)>'
```
| LoadError with ruby-2.0.0-p247 | https://api.github.com/repos/sparklemotion/nokogiri/issues/934/comments | 13 | 2013-07-08T04:24:50Z | 2021-02-16T17:04:34Z | https://github.com/sparklemotion/nokogiri/issues/934 | 16,454,640 | 934 |
[
"sparklemotion",
"nokogiri"
] | It looks like I hit this unresolved issue
https://github.com/sparklemotion/nokogiri/issues/888
However; I have a test case for you.
NPE occurred when I use rubyXL ( and nokogiri 1.5.9 ) on jruby 1.7.3 (also with jruby 1.7.4)
Reading the attached file works fine with
nokogiri 1.5.9 on REE 1.8.7 and probably other... | jruby NPE occurs in NokogiriNamespaceCache.java | https://api.github.com/repos/sparklemotion/nokogiri/issues/929/comments | 2 | 2013-06-19T04:14:42Z | 2014-06-17T22:52:35Z | https://github.com/sparklemotion/nokogiri/issues/929 | 15,726,599 | 929 |
[
"sparklemotion",
"nokogiri"
] | MRI and Java implementation do not seem to handling closing tags for empty elements the same way.
https://gist.github.com/lcdhoffman/5810508
(My 2c would go toward the MRI behavior, in which the closer does generate an event.)
| Nokogiri::XML::Reader - Inconsistent Handling of Closing Tag for Empty Elements | https://api.github.com/repos/sparklemotion/nokogiri/issues/928/comments | 1 | 2013-06-18T23:51:52Z | 2021-11-28T02:11:28Z | https://github.com/sparklemotion/nokogiri/issues/928 | 15,719,718 | 928 |
[
"sparklemotion",
"nokogiri"
] | The **title** and **textarea** elements are defined in the HTML spec as containing RCDATA, meaning that any angle brackets should be interpreted as literals unless part of the closing tag for the element. But Nokogiri parses the content of these tags as if it was regular HTML.
```
puts Nokogiri.HTML("<title>abc<xyz</t... | RCDATA tags are not parsed correctly | https://api.github.com/repos/sparklemotion/nokogiri/issues/927/comments | 1 | 2013-06-18T18:45:18Z | 2021-11-12T18:30:36Z | https://github.com/sparklemotion/nokogiri/issues/927 | 15,704,649 | 927 |
[
"sparklemotion",
"nokogiri"
] | compiling nokogiri.c
nokogiri.c: In function ‘ruby_strdup’:
nokogiri.c:43:31: warning: conversion to ‘size_t’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
compiling xml_comment.c
compiling xml_xpath_context.c
xml_xpath_context.c: In function ‘xpath_generic_exception_handler’:
xml_xpath_context.... | Ubuntu 12.10 fails to compile nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/926/comments | 2 | 2013-06-17T14:36:26Z | 2013-06-17T14:45:35Z | https://github.com/sparklemotion/nokogiri/issues/926 | 15,635,564 | 926 |
[
"sparklemotion",
"nokogiri"
] | I discovered this issue when trying to 'select' a prefixed namespace as the default on a tree. The generated XML should be like this:
``` xml
<?xml version="1.0"?>
<Root xmlns:foo="http://foo.example.com">
<OtherNs xmlns="http://other.example.com">
<NsFoo xmlns="http://foo.example.com">
<ItemsInNsFoo/>
... | XML Builder does not allow to specify a known xmlns attribute on a node | https://api.github.com/repos/sparklemotion/nokogiri/issues/925/comments | 1 | 2013-06-17T09:47:50Z | 2020-10-01T08:07:17Z | https://github.com/sparklemotion/nokogiri/issues/925 | 15,624,266 | 925 |
[
"sparklemotion",
"nokogiri"
] | I library of mine has a requirement to duplicate a NodeSet before performing an operation on it, as to not modify the original document/NodeSet. I've found that it's virtually impossible to reliably clone a NodeSet, as the NodeSet instance itself, as well as the Node's it contains, all have a document reference which n... | NodeSet#dup needs deep/recursive option | https://api.github.com/repos/sparklemotion/nokogiri/issues/924/comments | 1 | 2013-06-16T23:03:58Z | 2021-02-01T14:00:44Z | https://github.com/sparklemotion/nokogiri/issues/924 | 15,612,067 | 924 |
[
"sparklemotion",
"nokogiri"
] | Using nokogiri 1.5.9
``` ruby
doc = Nokogiri::HTML("<html><body><div class='foo/bar'></div></body></html>")
doc.css('.foo\2F bar') # => []
doc.css('.foo\/bar') # => []
doc.css('.foo\00002Fbar') # => []
```
According to the HTML5 spec any unicode sequence not containing space characters is a valid class name. And a... | CSS class selectors are not working with special characters | https://api.github.com/repos/sparklemotion/nokogiri/issues/922/comments | 3 | 2013-06-10T12:24:52Z | 2015-12-17T07:02:05Z | https://github.com/sparklemotion/nokogiri/issues/922 | 15,343,971 | 922 |
[
"sparklemotion",
"nokogiri"
] | ```
require "nokogiri"
doc = Nokogiri::XML('<foo><bar /><foo>', nil, 'EUC-JP')
node = Nokogiri::XML::Node.new('a',doc) # => #<Nokogiri::XML::Element:0x4d035aa name="a">
node.content = "click here"
att = {'href' => "www.example.com","id"=>1425,:class => "dummy"}
att.each {|k,v| node.set_attribute(k,v)}
node.attribu... | Why ` Nokogiri::XML::Node#delete` don't take *symbols* as its argument, but ` Nokogiri::XML::Node#set_attribute` does ? | https://api.github.com/repos/sparklemotion/nokogiri/issues/921/comments | 1 | 2013-06-09T14:31:11Z | 2013-06-10T15:49:56Z | https://github.com/sparklemotion/nokogiri/issues/921 | 15,320,692 | 921 |
[
"sparklemotion",
"nokogiri"
] | The libxml2 source no longer in nokigiri to make the compile happy??? (for dying windows breed) :smile:
``` shell
$ gem update nokogiri
Updating installed gems
Updating nokogiri
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:... | 1.6.0 does not compile on Windows7 - cannot find libxml2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/920/comments | 8 | 2013-06-08T22:31:02Z | 2013-08-01T03:14:54Z | https://github.com/sparklemotion/nokogiri/issues/920 | 15,311,505 | 920 |
[
"sparklemotion",
"nokogiri"
] | ```
require "nokogiri"
doc = Nokogiri::HTML::Document.new("<title> Save the page! </title>")
doc.class # => Nokogiri::HTML::Document
doc = Nokogiri::HTML::Document.parse <<-eof
<head>
<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<meta name="author" co... | Why Nokogiri::HTML::Document#meta_encoding returns nil ? | https://api.github.com/repos/sparklemotion/nokogiri/issues/919/comments | 2 | 2013-06-08T12:05:49Z | 2013-06-14T13:06:49Z | https://github.com/sparklemotion/nokogiri/issues/919 | 15,304,070 | 919 |
[
"sparklemotion",
"nokogiri"
] | Unlike regular Nokogiri::XML parser which allows you to explicitly set the encoding, Nokogiri::XML::SAX::Parser ignores the explicitly set encoding and uses the one specified in the provided xml(which has already been encoded in UTF-8, but the contents havent changed):
- the sax handling code
``` ruby
class MyDocument... | SAX Parser ignores explicitly set 'UTF-8' encoding and proceeds to reencode the document resulting in double-encoding artifacts | https://api.github.com/repos/sparklemotion/nokogiri/issues/918/comments | 7 | 2013-06-07T00:45:57Z | 2024-07-07T21:03:06Z | https://github.com/sparklemotion/nokogiri/issues/918 | 15,252,867 | 918 |
[
"sparklemotion",
"nokogiri"
] | Here is a bug I found in the method `Nokogiri::HTML::ElementDescription#default_sub_element`.
```
doc = Nokogiri::HTML(<<-EOF)
<a class = "foo" href = "https://example.com"> Click here </a>
EOF
node = Nokogiri::XML::Node.new("p", doc)
node.content = "Welcome to Nokogiri"
node.description.deprecated? # => false
node... | Bug has been caught in Nokogiri::HTML::ElementDescription#default_sub_element | https://api.github.com/repos/sparklemotion/nokogiri/issues/917/comments | 4 | 2013-06-06T17:39:40Z | 2013-06-08T06:17:51Z | https://github.com/sparklemotion/nokogiri/issues/917 | 15,235,345 | 917 |
[
"sparklemotion",
"nokogiri"
] | In Nokogiri, you can't use xpath expression like //form[/input[@name='foobar']] to get a "form" element which has a child "input" with attribute "name" with value "foobar".
| XPath doesn't support square brackets to specify capture | https://api.github.com/repos/sparklemotion/nokogiri/issues/916/comments | 2 | 2013-06-06T10:25:05Z | 2021-11-30T22:53:46Z | https://github.com/sparklemotion/nokogiri/issues/916 | 15,215,701 | 916 |
[
"sparklemotion",
"nokogiri"
] | ```
require "nokogiri"
doc = Nokogiri::HTML(<<-EOF)
<a class = "foo" href = "https://example.com"> Click here </a>
EOF
att = {:id => "anId", :class => "aClass", :style => "color:blue;", :title => "Hypertext Markup Language"}
node = Nokogiri::XML::Node.new("abbr", doc)
node.content = "HTML"
att.each{|k,v| node.set_at... | Why does `Nokogiri::HTML::ElementDescription#.required_attributes` give empty array? | https://api.github.com/repos/sparklemotion/nokogiri/issues/914/comments | 3 | 2013-06-05T17:08:37Z | 2013-06-08T17:18:56Z | https://github.com/sparklemotion/nokogiri/issues/914 | 15,181,960 | 914 |
[
"sparklemotion",
"nokogiri"
] | No example found for the below method:
Nokogiri::XML::EntityReference::new
Nokogiri::XML::Document::canonicalize
Nokogiri::HTML::EntityLookup#[]
Nokogiri::HTML::EntityLookup#get
I was wondering a one line example to see how the method works,but didn't find a single. Documentation should have an example with each meth... | Need example for some of the Nokogiri methods. | https://api.github.com/repos/sparklemotion/nokogiri/issues/913/comments | 2 | 2013-06-04T11:55:10Z | 2013-06-06T17:41:15Z | https://github.com/sparklemotion/nokogiri/issues/913 | 15,114,641 | 913 |
[
"sparklemotion",
"nokogiri"
] | ```
require "nokogiri"
@objects = {Object.new => "Roo", Object.new => "Hoo", Object.new => "Goo"}
builder = Nokogiri::XML::Builder.new do |xml| # !> assigned but unused variable - builder
xml.root {
xml.objects {
@objects.each do |k,v|
xml.foo(:type => k.class.superclass, :class => k.class, :id => k... | `Nokogiri::XML::Builder attribute `conext` printing nothing? | https://api.github.com/repos/sparklemotion/nokogiri/issues/911/comments | 6 | 2013-06-03T00:26:32Z | 2013-06-03T14:53:18Z | https://github.com/sparklemotion/nokogiri/issues/911 | 15,047,706 | 911 |
[
"sparklemotion",
"nokogiri"
] | ```
require 'nokogiri'
doc = Nokogiri::HTML::Document.parse(<<-eohtml)
<html>
<head>
<style>
div { float:left; }
span { color:blue; }
</style>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
</head>
<body>
<div>
<ul>
<li>John</li>
<li>Karl</li>
<li>Adam</li>
</ul>
</div>
<div>
<ul>
... | Nokogiri doesn't support this CSS rule ":first-line" and ":first-letter" | https://api.github.com/repos/sparklemotion/nokogiri/issues/910/comments | 3 | 2013-06-02T08:05:50Z | 2013-06-04T03:28:11Z | https://github.com/sparklemotion/nokogiri/issues/910 | 15,037,655 | 910 |
[
"sparklemotion",
"nokogiri"
] | ```
doc = Nokogiri::HTML::Document.parse(<<-eohtml)
<html>
<head>
<style>
div { width:100px; height:80px; margin:5px; float:left; background:#b9e; }
span { padding: 2px; margin: 3px; line-height: 1.4; border: 1px solid #000; }
</style>
</head>
<body>
<div>
<button>... | nokogiri doesn't support with CSS rule "p:only-of-type" | https://api.github.com/repos/sparklemotion/nokogiri/issues/909/comments | 3 | 2013-06-01T19:54:52Z | 2013-06-04T03:27:28Z | https://github.com/sparklemotion/nokogiri/issues/909 | 15,031,756 | 909 |
[
"sparklemotion",
"nokogiri"
] | I tried the below code:
```
require "nokogiri"
doc = Nokogiri::HTML::Document.parse(<<-eohtml)
<html>
<head>
<style>
span.fot { color: red; font-size: 120%; font-style: italic; }
</style>
</head>
<body>
<div>
<span>Corey,</span>
<span>Yehuda,</span>
<span>Adam,</span>
<span>Todd</spa... | p:first-of-type and p:last-of-type CSS selectors not working as expected with Nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/908/comments | 3 | 2013-06-01T17:37:44Z | 2013-06-04T03:26:17Z | https://github.com/sparklemotion/nokogiri/issues/908 | 15,030,078 | 908 |
[
"sparklemotion",
"nokogiri"
] | The css selectors not working properly with nokogiri- `:disabled`,`:checked`.
```
doc = Nokogiri::HTML::Document.parse(<<-eohtml)
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
</head>
<body>
<form>
<input name="email" disabled="disabled" />
<input name="id" />
<a href="https//example.co... | css selectors not working properly with nokogiri- `:disabled`,`:checked`. | https://api.github.com/repos/sparklemotion/nokogiri/issues/907/comments | 18 | 2013-06-01T11:02:51Z | 2013-06-03T13:37:53Z | https://github.com/sparklemotion/nokogiri/issues/907 | 15,025,780 | 907 |
[
"sparklemotion",
"nokogiri"
] | Hi Good day,
Im having problems installing nokogiri on ubuntu 13.04 under RVM, I already have installed all needed libraries, but still Im having this error during installation.
poldz@poldz:~$ gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Fa... | Ubuntu 13.04 installation issue | https://api.github.com/repos/sparklemotion/nokogiri/issues/906/comments | 4 | 2013-05-30T13:41:59Z | 2013-06-15T08:18:34Z | https://github.com/sparklemotion/nokogiri/issues/906 | 14,940,793 | 906 |
[
"sparklemotion",
"nokogiri"
] | http://nokogiri.org/C_CODING_STYLE_rdoc.html gives the default rails error page.
| [Homepage] Link to C coding style is broken | https://api.github.com/repos/sparklemotion/nokogiri/issues/905/comments | 2 | 2013-05-23T06:22:59Z | 2015-01-11T18:58:25Z | https://github.com/sparklemotion/nokogiri/issues/905 | 14,659,709 | 905 |
[
"sparklemotion",
"nokogiri"
] | Hi!
The `libxml2` version on ArchLinux just was bumped to `2.9.1` (from `2.8.0`), and suddenly some of my tests stopped working. I've boiled down the failures [a few specs](https://gist.github.com/riccieri/5568800).
On `2.8.0`, everything passes, while on `2.9.1` the last two specs fail.
Thanks in advance!
| nth-child with constant numbers not working with libxml2 2.9.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/904/comments | 1 | 2013-05-13T14:46:23Z | 2013-05-13T16:12:17Z | https://github.com/sparklemotion/nokogiri/issues/904 | 14,263,836 | 904 |
[
"sparklemotion",
"nokogiri"
] | There is a difference between the latest C and Java version of Nokogiri related to namespaces
defined on child elements with a WSDL file I was testing.
The code to reproduce this problem can be found at [rubiii/nokogiri_namespace_issue](https://github.com/rubiii/nokogiri_namespace_issue).
The [Travis build](https://tr... | Java-Implementation forgets element namespaces | https://api.github.com/repos/sparklemotion/nokogiri/issues/902/comments | 15 | 2013-05-12T17:05:44Z | 2014-04-16T18:14:02Z | https://github.com/sparklemotion/nokogiri/issues/902 | 14,237,139 | 902 |
[
"sparklemotion",
"nokogiri"
] | When installing Nokogiri I get the following error:
```
Installing nokogiri (1.6.0.rc1)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.
C:/Ruby193/bin/ruby.exe extconf.rb
checking for libxml/parser.h... no
-----
libxml2 is missing. please visit http://nokogiri.org/tutorials... | Nokogiri error when installing on Windows 7 | https://api.github.com/repos/sparklemotion/nokogiri/issues/901/comments | 7 | 2013-05-09T16:53:00Z | 2013-06-03T12:44:49Z | https://github.com/sparklemotion/nokogiri/issues/901 | 14,154,758 | 901 |
[
"sparklemotion",
"nokogiri"
] | If you run the handy [reek](https://github.com/troessner/reek/wiki) tool over nokogiri, you get a number of code smells:
```
$ reek lib/
lib//nokogiri.rb -- 5 warnings:
Nokogiri has the name 'Nokogiri' (UncommunicativeMethodName)
Nokogiri#Slop has the name 'Slop' (UncommunicativeMethodName)
Nokogiri#make has unu... | reek warnings | https://api.github.com/repos/sparklemotion/nokogiri/issues/899/comments | 2 | 2013-05-09T03:12:45Z | 2013-05-15T11:45:03Z | https://github.com/sparklemotion/nokogiri/issues/899 | 14,132,292 | 899 |
[
"sparklemotion",
"nokogiri"
] | The following test leads to a segfault
``` ruby
class TestReader < Nokogiri::TestCase
class NonStringIO
def read(size)
:invalid_object
end
end
def test_io_non_string
io = NonStringIO.new
Nokogiri::XML::Reader(io)
end
end
```
| segfault if IO reader given to Nokogiri::XML::Reader returns non string | https://api.github.com/repos/sparklemotion/nokogiri/issues/898/comments | 1 | 2013-05-05T13:02:49Z | 2018-02-20T00:25:18Z | https://github.com/sparklemotion/nokogiri/issues/898 | 13,977,849 | 898 |
[
"sparklemotion",
"nokogiri"
] | Hi there,
Installing nokogiri 1.6.0 breaks the travis builds of Shoes4 as it can be seen in [this build](https://travis-ci.org/shoes/shoes4/builds/7942562).
The error message is:
```
Psych::SyntaxError: (<unknown>): 'reader' unacceptable character '' (0x8B) special characters are not allowed
in "'reader'", position... | installing nokogiri 1.6.0 fails on Travis - with jRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/897/comments | 8 | 2013-05-01T11:38:31Z | 2013-06-13T20:14:26Z | https://github.com/sparklemotion/nokogiri/issues/897 | 13,845,749 | 897 |
[
"sparklemotion",
"nokogiri"
] | Hi!
when trying to run the tests from the gem file, I noticed that the empty file bogus.xml in test/files required for test/html/sax/test_parser.rb has not been included in the gem.
Could you please add it in the next release?
Cheers,
Cédric
| empty file test/files/bogus.xml missing from the gem | https://api.github.com/repos/sparklemotion/nokogiri/issues/896/comments | 0 | 2013-04-30T23:09:33Z | 2013-05-14T21:05:06Z | https://github.com/sparklemotion/nokogiri/issues/896 | 13,831,681 | 896 |
[
"sparklemotion",
"nokogiri"
] | Unable to search for an element with class name starting with a number
e.g.
```
ele = doc.search(".1second")
```
will give an error
| unexpected '.1' after '[#<Nokogiri::CSS::Node.... | https://api.github.com/repos/sparklemotion/nokogiri/issues/894/comments | 2 | 2013-04-24T12:20:10Z | 2013-04-24T14:44:06Z | https://github.com/sparklemotion/nokogiri/issues/894 | 13,583,326 | 894 |
[
"sparklemotion",
"nokogiri"
] | Version 1.5.9.
```
1.9.3p194 :001 > Nokogiri::HTML::DocumentFragment.parse("<ol><li>numbered</li><li>entries</li><li>in</li><li>a</li><li>list</li></ol>").to_html
=> "<ol>\n<li>numbered</li>\n<li>entries</li>\n<li>in</li>\n<li>a</li>\n<li>list</li>\n</ol>"
```
| Why are newlines inserted into this HTML being parsed by Nokogiri? | https://api.github.com/repos/sparklemotion/nokogiri/issues/893/comments | 1 | 2013-04-23T18:12:59Z | 2013-04-23T18:34:09Z | https://github.com/sparklemotion/nokogiri/issues/893 | 13,548,975 | 893 |
[
"sparklemotion",
"nokogiri"
] | I have used nokogiri in my rails app. I have same libxml2 and libxslt versions on both servers (staging and production). but nokogiri is unable to parse html properly on my production server.
| Parsing Diffrently on production server | https://api.github.com/repos/sparklemotion/nokogiri/issues/892/comments | 1 | 2013-04-23T11:55:23Z | 2013-04-23T18:04:08Z | https://github.com/sparklemotion/nokogiri/issues/892 | 13,530,849 | 892 |
[
"sparklemotion",
"nokogiri"
] | I can't really reproduce it, but maybe the backtrace helps somebody:
```
# gem search nokogiri
*** LOCAL GEMS ***
nokogiri (1.5.9 java)
```
```
# java -version
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
# ruby --version
... | 1.5.9 java: longjmp causes uninitialized stack frame | https://api.github.com/repos/sparklemotion/nokogiri/issues/891/comments | 2 | 2013-04-20T17:20:29Z | 2013-04-23T17:54:26Z | https://github.com/sparklemotion/nokogiri/issues/891 | 13,438,489 | 891 |
[
"sparklemotion",
"nokogiri"
] | Hi,
I am trying to change the contents of a the HTML tag called "value".
In Nokogiri 1.5.0 the following statement was working just fine:
controlXml.elements.at("value").text = "some text"
but after upgrade to Nokogiri 1.5.7 it fails and works only if I make the above statement as follows:
controlXml.at_css("value"... | Upgrade from Nokogiri 1.5.0 to 1.5.7 | https://api.github.com/repos/sparklemotion/nokogiri/issues/890/comments | 1 | 2013-04-19T12:15:01Z | 2013-04-23T17:50:01Z | https://github.com/sparklemotion/nokogiri/issues/890 | 13,398,468 | 890 |
[
"sparklemotion",
"nokogiri"
] | NPE occurred was using rubyXL ( and nokogiri 1.5.9 ) on jruby 1.7.3.
Maybe I stepped on a mine?
Do not occur depending on the many xlsx file.
It seems there is a case of NULL is XmlNamespace.getHref().
No problem in
nokogiri 1.5.8 on jruby 1.7.3,
nokogiri 1.5.9 on MRI 1.9.3.
```
require 'rubygems'
require 'rubyXL'... | jruby NPE occur at NokogiriNamespaceCache.java | https://api.github.com/repos/sparklemotion/nokogiri/issues/888/comments | 2 | 2013-04-12T07:11:38Z | 2021-02-16T17:04:34Z | https://github.com/sparklemotion/nokogiri/issues/888 | 13,106,262 | 888 |
[
"sparklemotion",
"nokogiri"
] | `Nokogiri::XML::Document#collect_namespaces` will return different results with version 1.5.5 and versions since 1.5.6 respectively.
By the way: the sample below, while abstract and reduced, reflects real-world instance documents, not merely an academic exercise.
Consider this document with multiple default namespace... | collect_namespaces: Different result since 1.5.6 | https://api.github.com/repos/sparklemotion/nokogiri/issues/885/comments | 8 | 2013-04-09T05:20:41Z | 2016-02-17T05:01:51Z | https://github.com/sparklemotion/nokogiri/issues/885 | 12,956,768 | 885 |
[
"sparklemotion",
"nokogiri"
] | Triggered by running `rake`
This may be due to linking against libxml 2.9.0?
```
/Users/justin/workspace/nokogiri/test/helper.rb:11: version info: {"warnings"=>[], "nokogiri"=>"1.5.9", "ruby"=>{"version"=>"1.9.3", "platform"=>"x86_64-darwin11.4.2", "description"=>"ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-da... | Ruby 1.9.3/2.0.0 segfault | https://api.github.com/repos/sparklemotion/nokogiri/issues/884/comments | 4 | 2013-04-08T13:34:40Z | 2013-04-23T17:48:55Z | https://github.com/sparklemotion/nokogiri/issues/884 | 12,923,187 | 884 |
[
"sparklemotion",
"nokogiri"
] | Jruby 1.7.3
```
$ Nokogiri::XML.parse('')
=> #<Nokogiri::XML::Document:0x7fa name="document">
$ Nokogiri::XML.parse(StringIO.new(''))
Java::JavaLang::RuntimeException: null document
...
```
In Ruby 2.0.0:
```
$ Nokogiri::XML.parse('')
=> #<Nokogiri::XML::Document:0x3fd424b250b0 name="document">
$ Nokogiri::XML.par... | "null document" error when parsing an empty IO in jruby 1.7.3 | https://api.github.com/repos/sparklemotion/nokogiri/issues/883/comments | 3 | 2013-04-08T12:55:18Z | 2013-05-02T02:28:50Z | https://github.com/sparklemotion/nokogiri/issues/883 | 12,921,608 | 883 |
[
"sparklemotion",
"nokogiri"
] | hi:
I used Mechanize and .html_parser is Nokogiri
"Mechanize.html_parser = Nokogiri::XML"
when
agent.get('XXXX')
console log is : encoding error : input conversion failed due to input error, bytes 0xAD 0xCE 0xA1 0xA2
and the content is Incomplete...
when i use this code:
url = 'XXXXXXXXXXXX'
html = open(url ).r... | encoding error : input conversion failed due to input error, bytes 0xAD 0xCE 0xA1 0xA2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/882/comments | 4 | 2013-04-07T07:10:47Z | 2021-06-08T15:13:30Z | https://github.com/sparklemotion/nokogiri/issues/882 | 12,891,517 | 882 |
[
"sparklemotion",
"nokogiri"
] | This mostly happens in concurrent environments. I'm using `nokogiri` with `sidekiq`, and `roadie` (which also uses nokogiri).
### nokogiri -v
```
# Nokogiri (1.5.6)
---
warnings: []
nokogiri: 1.5.6
ruby:
version: 1.9.3
platform: x86_64-linux
description: ruby 1.9.3p385 (2013-02-06) [x... | node_set.rb:24: [BUG] Segmentation fault | https://api.github.com/repos/sparklemotion/nokogiri/issues/881/comments | 32 | 2013-04-05T18:43:40Z | 2015-10-10T18:53:14Z | https://github.com/sparklemotion/nokogiri/issues/881 | 12,858,595 | 881 |
[
"sparklemotion",
"nokogiri"
] | http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-6139, etc.
Proof of concept:
``` ruby
require 'nokogiri'
doc = Nokogiri::XML('<foo></foo>')
xslt = Nokogiri::XSLT(<<XSLT)
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:key name="" use="" match=""/>
</xsl:styleshe... | Parsing untrusted XSLT results in possible DoS | https://api.github.com/repos/sparklemotion/nokogiri/issues/879/comments | 3 | 2013-04-03T23:35:28Z | 2014-10-31T11:31:16Z | https://github.com/sparklemotion/nokogiri/issues/879 | 12,779,503 | 879 |
[
"sparklemotion",
"nokogiri"
] | :nth-child(even) works but :nth-child(3) doesn't (it returns [] and trying the same selector with jQuery works).
It used to work in previous version I had no problem.
| CSS selector :nth-child not working properly | https://api.github.com/repos/sparklemotion/nokogiri/issues/878/comments | 3 | 2013-04-03T20:19:38Z | 2017-05-10T06:01:13Z | https://github.com/sparklemotion/nokogiri/issues/878 | 12,771,585 | 878 |
[
"sparklemotion",
"nokogiri"
] | ```
sudo gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.8.0/include/libxml2
--with-xml2-lib=/usr/local/Cellar/libxml2/2.8.0/lib
--with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26
--with-iconv-include=/usr/local... | Tutorial for installation with OS X & latest brew should specify that Xcode is required, CLI tools not enough | https://api.github.com/repos/sparklemotion/nokogiri/issues/876/comments | 4 | 2013-03-22T12:33:07Z | 2013-05-28T20:58:41Z | https://github.com/sparklemotion/nokogiri/issues/876 | 12,317,107 | 876 |
[
"sparklemotion",
"nokogiri"
] | I am trying to install the Nokogiri Gem. I am running Ruby version 2.0.0p0, rvm 1.18.21, OpenSSL 0.9.8r, OS 10.7.5. I am following the instructions under homebrew
0.9 section of the installation page, I have the latest homebrew
installed.
I was able to successfully install and link libxml2 and libxslt and
install ... | Unable to install Nokogiri Gem | https://api.github.com/repos/sparklemotion/nokogiri/issues/875/comments | 1 | 2013-03-22T00:37:32Z | 2013-03-22T17:18:40Z | https://github.com/sparklemotion/nokogiri/issues/875 | 12,302,102 | 875 |
[
"sparklemotion",
"nokogiri"
] | Hi,
I noticed that when creating new document the attribute order has changed after updating 1.5.8 to 1.5.9. As far as I've understood that 1.5.8 and earlier versions attributes are serialized (doc#to_xml) in same order as passed to element. What is the logic for 1.5.9? Attributes first then ones with namespace? Can I... | Attribute order has changed during 1.5.8 and 1.5.9 versions | https://api.github.com/repos/sparklemotion/nokogiri/issues/874/comments | 3 | 2013-03-21T19:29:04Z | 2013-04-23T18:33:18Z | https://github.com/sparklemotion/nokogiri/issues/874 | 12,290,952 | 874 |
[
"sparklemotion",
"nokogiri"
] | We currently have a JRuby application that does a series of XSL Transformations on documents. This requires us to use Saxon 9.4 in order to fully support XSLT 2.0. We currently use Nokogiri 1.5.0 to do some information extraction and everything seems to work fine. However when we tried to upgrade to 1.5.6 a few weeks a... | NokogiriHelpers.java throws NullPointerException in 'getCachedNodeOrCreate' when Saxon9 is in JRUBY Classpath | https://api.github.com/repos/sparklemotion/nokogiri/issues/873/comments | 8 | 2013-03-21T18:17:30Z | 2013-04-05T20:26:47Z | https://github.com/sparklemotion/nokogiri/issues/873 | 12,287,867 | 873 |
[
"sparklemotion",
"nokogiri"
] | On ruby 1.9.3 the xmlns tag generated twice but on other ruby this works fine .
```
require 'rubygems'
require 'nokogiri'
builder = Nokogiri::XML::Builder.new(:encoding => 'utf-8') do |xml|
xml.CreateHostedService('xmlns'=>"http://schemas.microsoft.com/windowsazure") {
xml.ServiceName 'self.ser... | Generate wrong xml in ruby 1.9.3-p392 on Windows x64 | https://api.github.com/repos/sparklemotion/nokogiri/issues/871/comments | 3 | 2013-03-21T10:13:26Z | 2013-03-22T17:27:49Z | https://github.com/sparklemotion/nokogiri/issues/871 | 12,267,494 | 871 |
[
"sparklemotion",
"nokogiri"
] | Test case, using nokogiri 1.5.7
```
Nokogiri::XML::Builder.new do |xml|
xml.root('xmlns:foo' => 'bar') {
xml.obj('foo:attr' => 'baz')
}
end.to_xml
```
In java:
```
Java::OrgW3cDom::DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespa... | Namespaced attributes cause jruby failure. | https://api.github.com/repos/sparklemotion/nokogiri/issues/869/comments | 3 | 2013-03-19T19:42:38Z | 2013-03-21T00:09:27Z | https://github.com/sparklemotion/nokogiri/issues/869 | 12,198,120 | 869 |
[
"sparklemotion",
"nokogiri"
] | I have found that Nokogiri seems to produce different output for the same test code when run on Windows compared to running on Linux. On Linux Nokogiri includes the original namespace prefix from the message, but on Windows this is stripped off.
My guess is that the Windows output is correct since the snippet of XML w... | Nokogiri parse xml produces different output on Windows | https://api.github.com/repos/sparklemotion/nokogiri/issues/866/comments | 8 | 2013-03-19T12:32:27Z | 2013-03-25T14:33:50Z | https://github.com/sparklemotion/nokogiri/issues/866 | 12,177,889 | 866 |
[
"sparklemotion",
"nokogiri"
] | new nokogiri version 1.5.7 produces following error:
``` ruby
xml.ONIXmessage(:release=>"2.1",:xmlns=>"http://www.editeur.org/onix/2.1/short","xmlns:xsi".to_sym=>"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation".to_sym=>"http://www.editeur.org/onix/2.1/short http://www.editeur.org/onix/2.1/short/ONIX_Bo... | duplicated xmlns tag in v1.5.7 | https://api.github.com/repos/sparklemotion/nokogiri/issues/865/comments | 6 | 2013-03-19T11:10:36Z | 2013-03-19T19:08:09Z | https://github.com/sparklemotion/nokogiri/issues/865 | 12,175,488 | 865 |
[
"sparklemotion",
"nokogiri"
] | With Ruby 2.0 release there's now Ruby x64 available for Windows. Also DevKit have been released with MinGW x64. Most of typical gems does build fine with it.
http://rubyinstaller.org/downloads/
| Support Ruby x64 on Windows | https://api.github.com/repos/sparklemotion/nokogiri/issues/864/comments | 108 | 2013-03-14T17:57:17Z | 2014-05-01T16:23:45Z | https://github.com/sparklemotion/nokogiri/issues/864 | 12,030,632 | 864 |
[
"sparklemotion",
"nokogiri"
] | Hi all,
With the pure-java version of Nokogiri, we're seeing it add surrounding tags to HTML fragments. For example in IRB:
In REE (Nokogiri 1.5.5)
``` ruby
require "rubygems" # => true
require "nokogiri" # => true
# => "<tr><td>yeah yeah</td></tr>"
```
In JRuby (Nokogiri-java 1.5.5)
``` ruby
require "rubygems... | Different behavior for HTML.fragment under JRuby / pure-java | https://api.github.com/repos/sparklemotion/nokogiri/issues/863/comments | 1 | 2013-03-14T06:23:20Z | 2019-01-05T08:38:04Z | https://github.com/sparklemotion/nokogiri/issues/863 | 12,007,124 | 863 |
[
"sparklemotion",
"nokogiri"
] | I'm having a problem with loading [this schema](https://github.com/onelogin/ruby-saml/blob/master/lib/schemas/saml20protocol_schema.xsd) under JRuby.
When I try it with MRI, all appears well:
```
$ rvm use ruby
$ irb
1.9.3p327 :001 > require 'nokogiri'
=> true
1.9.3p327 :002 > Nokogiri::XML::Schema(IO.read('saml20p... | Error with schema validation under JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/862/comments | 8 | 2013-03-13T17:55:47Z | 2013-06-07T11:47:58Z | https://github.com/sparklemotion/nokogiri/issues/862 | 11,985,572 | 862 |
[
"sparklemotion",
"nokogiri"
] | `Nokogiri::XML::Node.[]` and `Nokogiri::XML::Node.attribute` return different values for namespaced attributes of SVGs nested within HTML documents.
For example, if you call try and access the value of the `xlink:href` attribute of a nested SVG `image` node, `image["xlink:href"]` returns `nil` while `image.attribute("... | Inconsistent namespaced attribute access for SVG nested in HTML | https://api.github.com/repos/sparklemotion/nokogiri/issues/861/comments | 2 | 2013-03-13T15:53:48Z | 2013-03-21T03:16:28Z | https://github.com/sparklemotion/nokogiri/issues/861 | 11,979,610 | 861 |
[
"sparklemotion",
"nokogiri"
] | Apparently nokogiri does not or not always supports encodings as defined via meta[http-equiv=content-type] tags.
I build a workaround https://gist.github.com/radiospiel/5148046, where `Nokogiri::HTML.with_meta_encoding(data)` reparses the document if there is a meta encoding which does not match N:H:D.encoding.
It w... | Support for encodings defined in HTML meta tag | https://api.github.com/repos/sparklemotion/nokogiri/issues/860/comments | 3 | 2013-03-12T23:34:44Z | 2023-01-22T04:33:37Z | https://github.com/sparklemotion/nokogiri/issues/860 | 11,953,145 | 860 |
[
"sparklemotion",
"nokogiri"
] | Is it possible to remove a namespaced attribute? I can get the attribute using attribute_with_ns, but remove_attribute doesn't take a namespace parameter
| Removing a namespaced attribute | https://api.github.com/repos/sparklemotion/nokogiri/issues/857/comments | 1 | 2013-03-11T21:58:40Z | 2021-11-19T22:17:59Z | https://github.com/sparklemotion/nokogiri/issues/857 | 11,900,137 | 857 |
[
"sparklemotion",
"nokogiri"
] | Reproduced under:
```
# Nokogiri (1.5.6)
---
warnings: []
nokogiri: 1.5.6
ruby:
version: 1.9.3
platform: x86_64-linux
description: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
engine: ruby
libxml:
binding: extension
compiled: 2.8.0
loaded: 2.8.... | memory leak | https://api.github.com/repos/sparklemotion/nokogiri/issues/856/comments | 7 | 2013-03-11T04:36:47Z | 2020-02-02T18:52:58Z | https://github.com/sparklemotion/nokogiri/issues/856 | 11,863,709 | 856 |
[
"sparklemotion",
"nokogiri"
] | To reproduce using Ruby 1.9.3, run rake on OS X with libXML 2.9 installed. Works fine under libXML 2.7.8.
# Nokogiri (1.5.7.rc1)
```
---
warnings: []
nokogiri: 1.5.7.rc1
ruby:
version: 1.9.3
platform: x86_64-darwin12.2.0
description: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.2.0]
engine: rub... | Nokogiri segfaults on OS X with libXML 2.9 | https://api.github.com/repos/sparklemotion/nokogiri/issues/855/comments | 4 | 2013-03-08T21:49:52Z | 2016-02-16T19:06:38Z | https://github.com/sparklemotion/nokogiri/issues/855 | 11,826,712 | 855 |
[
"sparklemotion",
"nokogiri"
] | ```
doc = Nokogiri::HTML('
<html>
<body>
<div class="a
b"></div>
</body>
</html>
')
assert_not_nil doc.at_css(".b")
```
From https://groups.google.com/forum/?fromgroups=#!topic/nokogiri-talk/ICslbeshQhY
| CSS queries and non-space whitespace | https://api.github.com/repos/sparklemotion/nokogiri/issues/854/comments | 1 | 2013-03-08T16:26:05Z | 2013-03-08T22:20:11Z | https://github.com/sparklemotion/nokogiri/issues/854 | 11,811,325 | 854 |
[
"sparklemotion",
"nokogiri"
] | When running multiple JRuby containers in the same JVM with any context scope besides SINGLETON, NokogiriHelpers.getNokogiriClass returns classes from the latest scripting container. In practice, Nokogiri::XML::Element#xpath is returning empty results because extract_params is comparing two different copies of Ruby cla... | class cache not compatible with multiple JRuby Scripting containers | https://api.github.com/repos/sparklemotion/nokogiri/issues/852/comments | 4 | 2013-03-07T00:35:36Z | 2013-11-21T12:26:54Z | https://github.com/sparklemotion/nokogiri/issues/852 | 11,740,529 | 852 |
[
"sparklemotion",
"nokogiri"
] | Support Ruby 2.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/851/comments | 39 | 2013-02-26T20:51:59Z | 2014-06-04T13:50:08Z | https://github.com/sparklemotion/nokogiri/issues/851 | 11,427,988 | 851 | |
[
"sparklemotion",
"nokogiri"
] | WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 20900.0.0
this happens in ruby 1.9.2 and 1.9.3 .. it looks ilke its complaining about nothing as the versions look the same 2.9.0 && 20900.00 usual the error would be like >=2.7.3
Ive got the latest libxml2 as you can see while ... | Nokogiri libxml2 error | https://api.github.com/repos/sparklemotion/nokogiri/issues/850/comments | 2 | 2013-02-22T17:46:05Z | 2016-02-17T04:36:10Z | https://github.com/sparklemotion/nokogiri/issues/850 | 11,295,738 | 850 |
[
"sparklemotion",
"nokogiri"
] | Sup everyone. I'm trying to crawl a page using anemone + nokogiri:
# Nokogiri (1.5.6)
```
---
warnings: []
nokogiri: 1.5.6
ruby:
version: 1.9.3
platform: x86_64-darwin12.2.0
description: ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.0]
engine: ruby
libxml:
binding: extension
compiled: 2.9.... | push_parser.rb:47: [BUG] Segmentation fault | https://api.github.com/repos/sparklemotion/nokogiri/issues/849/comments | 6 | 2013-02-18T20:55:32Z | 2014-06-13T10:54:09Z | https://github.com/sparklemotion/nokogiri/issues/849 | 11,130,850 | 849 |
[
"sparklemotion",
"nokogiri"
] | In pursuing a bug with how [loofah](https://github.com/flavorjones/loofah) handles an empty HTML::Document in Jruby, I notice that Nokogiri::HTML::Document#new produces a different document in MRI than it does in Jruby.
Code to reproduce:
```
require 'nokogiri'
doc = Nokogiri::HTML::Document.new
doc.inspect
```
Run ... | Nokogiri::HTML::Document.new("") produces different results in MRI vs JRUBY | https://api.github.com/repos/sparklemotion/nokogiri/issues/847/comments | 3 | 2013-02-12T23:19:25Z | 2016-02-17T05:03:08Z | https://github.com/sparklemotion/nokogiri/issues/847 | 10,933,616 | 847 |
[
"sparklemotion",
"nokogiri"
] | On ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin12.2.0]
```
Nokogiri::HTML("<strong>this will segfault<?strong>".force_encoding("ASCII-8BIT"))
Nokogiri::HTML("<strong>this will not segfault<?strong>".force_encoding("UTF-8"))
```
cc @mgates
| HTML parsing segfaults when tags are closed with <?tag> and the document is encoded in ASCII-8BIT | https://api.github.com/repos/sparklemotion/nokogiri/issues/845/comments | 6 | 2013-02-06T17:09:34Z | 2014-06-13T23:49:59Z | https://github.com/sparklemotion/nokogiri/issues/845 | 10,700,936 | 845 |
[
"sparklemotion",
"nokogiri"
] | Hi,
I've already posted the question to nokogiri-talk last November without any response, therefore I'm creating an issue here... I'm unable to retrieve value of encoding attribute from XML documents if the value is "ISO-8859-1".
Used Nokogiri 1.5.5 and 1.5.6.
Thanks,
Jussi
``` ruby
require 'nokogiri'
class Parse... | Nokogiri::XML::SAX::Document#xmldecl does not support ISO-8859-1? | https://api.github.com/repos/sparklemotion/nokogiri/issues/844/comments | 4 | 2013-01-31T11:07:47Z | 2019-01-05T01:22:52Z | https://github.com/sparklemotion/nokogiri/issues/844 | 10,496,322 | 844 |
[
"sparklemotion",
"nokogiri"
] | Hi,
I'm having issues with reader.attribute_nodes and reader.attributes methods.
a) reader.attribute_nodes doesn't seem to work as expected? If I remove xsi:schemaLocation from the XML it works ok. Assertion failed: (doc->_private), function Nokogiri_wrap_xml_namespace, file xml_namespace.c, line 41. Abort trap: 6
b... | Assertion failed: (doc->_private), function Nokogiri_wrap_xml_namespace, file xml_namespace.c, line 41. | https://api.github.com/repos/sparklemotion/nokogiri/issues/843/comments | 2 | 2013-01-31T10:53:35Z | 2015-12-09T11:50:03Z | https://github.com/sparklemotion/nokogiri/issues/843 | 10,495,895 | 843 |
[
"sparklemotion",
"nokogiri"
] | Updating my bundle to nokogiri 1.5.6 breaks roo ods spreadsheet parsing.
Steps to reproduce: install nokogiri 1.5.6 and roo 1.10.1 gems and exec the following ruby code:
require 'rubygems'
require 'roo'
doc = Openoffice.new("some.ods")
doc.sheets.each do |s|
puts s
end
No sheets are found as it cannot parse the sh... | nokogiri 1.5.6 breaks roo gem openoffice ods parsing | https://api.github.com/repos/sparklemotion/nokogiri/issues/842/comments | 4 | 2013-01-29T22:58:19Z | 2013-03-11T08:42:06Z | https://github.com/sparklemotion/nokogiri/issues/842 | 10,438,349 | 842 |
[
"sparklemotion",
"nokogiri"
] | [This code](https://gist.github.com/4655922):
``` ruby
$ cat modify_dom.rb
dom = Marshal.load(open('dom'))
doc = Nokogiri::XML::Document.wrap(dom)
datasets = doc.xpath('//xfa:datasets', 'xfa' => 'http://www.xfa.org/schema/xfa-data/1.0/')
data = Nokogiri::XML("<form1><text_field01>foo</text_field01></form1>")
datasets.... | Failed to take ownership of node | https://api.github.com/repos/sparklemotion/nokogiri/issues/841/comments | 6 | 2013-01-28T14:52:08Z | 2021-08-19T21:39:46Z | https://github.com/sparklemotion/nokogiri/issues/841 | 10,377,767 | 841 |
[
"sparklemotion",
"nokogiri"
] | I have tons of html documents that need to get parsed, but when I load one of them, like the one in the gist, it does not load correctly. What can I do to parse the file? https://gist.github.com/4612046
require 'nokogiri'
doc = Nokogiri::HTML(open('webpage.html'))
# => #<Nokogiri::HTML::Document:0x7fa name="document">... | Jruby parsing issue | https://api.github.com/repos/sparklemotion/nokogiri/issues/840/comments | 1 | 2013-01-23T23:31:51Z | 2013-03-11T07:50:14Z | https://github.com/sparklemotion/nokogiri/issues/840 | 10,255,468 | 840 |
[
"sparklemotion",
"nokogiri"
] | From https://groups.google.com/d/msg/nokogiri-talk/-/cGJk1BBRXygJ
Using Nokogiri 1.5.6:
```
#! /usr/bin/env ruby
require 'nokogiri'
d1=Nokogiri::XML('<r><a>text</a></r>')
d2=Nokogiri::XML('<r></r>')
ne=d1.root.xpath('//a').first.dup(1)
ne.content += "& < & > \" &"
d2.root << ne
puts d2.to_s
```
On MRI 1.9.3, outpu... | (jruby) Node#content= incompatibility | https://api.github.com/repos/sparklemotion/nokogiri/issues/839/comments | 1 | 2013-01-18T16:53:38Z | 2013-01-20T02:34:25Z | https://github.com/sparklemotion/nokogiri/issues/839 | 10,105,000 | 839 |
[
"sparklemotion",
"nokogiri"
] | Under JRuby 1.7.2, this:
``` ruby
Nokogiri::XML("<? ?>")
```
Causes:
```
null:-1:in `scanPIData': java.lang.NullPointerException
from null:-1:in `scanPIData'
from null:-1:in `scanPI'
from null:-1:in `dispatch'
from null:-1:in `scanDocument'
from null:-1:in `parse'
from null:-1:in `parse'
... | JRuby NPE parsing an invalid XML instruction | https://api.github.com/repos/sparklemotion/nokogiri/issues/838/comments | 1 | 2013-01-18T07:30:53Z | 2013-01-21T03:04:32Z | https://github.com/sparklemotion/nokogiri/issues/838 | 10,089,669 | 838 |
[
"sparklemotion",
"nokogiri"
] | Under JRuby 1.7.2 this:
``` ruby
Nokogiri::XML("&")
```
Will cause JRuby to hang in some sort of infinite loop until you get a `java.lang.OutOfMemoryError`. It can actually be any entity reference, not necessarily `&`. I know it's not valid XML, but I'd rather get an error or an empty document than hang the J... | JRuby hangs parsing "&" | https://api.github.com/repos/sparklemotion/nokogiri/issues/837/comments | 0 | 2013-01-18T07:15:40Z | 2013-01-20T02:34:25Z | https://github.com/sparklemotion/nokogiri/issues/837 | 10,089,470 | 837 |
[
"sparklemotion",
"nokogiri"
] | Repro:
``` ruby
require 'nokogiri'
d = Nokogiri::XML::Document.new
root = Nokogiri::XML::Element.new('bar', d)
txt = Nokogiri::XML::Text.new('foo', d)
ent = Nokogiri::XML::EntityReference.new(d, '#8217')
root << text
root << ent
d << root
puts d.to_html
```
In JRuby 1.7.2:
```
<bar>foo#8217</bar>
```
In MRI 1.9.3:... | Adding an EntityReference after a Text node mangles the entity in JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/835/comments | 2 | 2013-01-16T07:01:51Z | 2013-01-21T02:57:03Z | https://github.com/sparklemotion/nokogiri/issues/835 | 10,009,012 | 835 |
[
"sparklemotion",
"nokogiri"
] | ``` ruby
require 'nokogiri'
x = Nokogiri::XML("<foo><br/></foo>")
puts x.to_xhtml
```
In JRuby 1.7.2:
```
<foo>
<br>
</foo>
```
In MRI:
```
<foo>
<br />
</foo>
```
Unfortunately this means it produces invalid XHTML.
| to_xhtml doesn't print the last slash for self-closing tags in JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/834/comments | 2 | 2013-01-16T06:26:55Z | 2013-01-21T02:55:48Z | https://github.com/sparklemotion/nokogiri/issues/834 | 10,008,580 | 834 |
[
"sparklemotion",
"nokogiri"
] | I'm using Nokogiri 1.5.6 with JRuby 1.7.2 (1.9 mode):
```
ruby --version
jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot(TM) 64-Bit Server VM 1.6.0_37-b06-434-11M3909 [darwin-x86_64]
```
Test script:
``` ruby
require 'nokogiri'
x = Nokogiri::XML("<foo><bar>baz</bar></foo>")
puts "INDENT:"
puts x.to_xml(... | JRuby Nokogiri indents XML if :indent is specified even if :save_with => 0 specified | https://api.github.com/repos/sparklemotion/nokogiri/issues/833/comments | 1 | 2013-01-16T06:13:12Z | 2024-07-02T15:03:45Z | https://github.com/sparklemotion/nokogiri/issues/833 | 10,008,421 | 833 |
[
"sparklemotion",
"nokogiri"
] | ``` ruby
str = '<div>Title</div>\n<a href="google.com">here</a>abcdef\n<p><small>new york city</small></p>'
doc = Nokogiri::HTML::DocumentFragment.parse(str)
doc.css('a').remove
doc.css('a')
```
Got error: Could not resolve the node to a handle
| "Could not resolve the node to a handle" error on JRuby for Nokogiri::HTML::DocumentFragment when html partial including '\n' | https://api.github.com/repos/sparklemotion/nokogiri/issues/832/comments | 3 | 2013-01-16T01:52:00Z | 2021-11-29T19:56:48Z | https://github.com/sparklemotion/nokogiri/issues/832 | 10,004,404 | 832 |
[
"sparklemotion",
"nokogiri"
] | ```
$ ruby -v
jruby 1.6.7.2 (ruby-1.8.7-p357) (2012-05-01 26e08ba) (OpenJDK 64-Bit Server VM 1.6.0_24) [linux-amd64-java]
$ gem list | grep nokogiri
nokogiri (1.5.6 java)
$ ruby -e 'f = open("test.xml", "w"); f.write("<root>"); (10**8).times{ f.write("<nil/>")}; f.write("</root>"); f.close'
$ ls -lh test.xml
-rw-rw-... | Nokogiri::XML::Reader broken (as a pull parser) on jruby - reads the whole XML document | https://api.github.com/repos/sparklemotion/nokogiri/issues/831/comments | 3 | 2013-01-11T11:16:44Z | 2013-09-02T23:07:01Z | https://github.com/sparklemotion/nokogiri/issues/831 | 9,876,789 | 831 |
[
"sparklemotion",
"nokogiri"
] | The test suite does not seem to pass:
```
/mnt/checkouts/nokogiri/lib/nokogiri/css/generated_parser.rb:675: warning: mismatched indentations at 'end' with 'module' at 11
/mnt/checkouts/nokogiri/lib/nokogiri/css/generated_parser.rb:676: warning: mismatched indentations at 'end' with 'module' at 10
/mnt/checkouts/nokogi... | Test failures (1.9.3p327) | https://api.github.com/repos/sparklemotion/nokogiri/issues/830/comments | 1 | 2013-01-09T21:21:09Z | 2013-05-20T21:43:11Z | https://github.com/sparklemotion/nokogiri/issues/830 | 9,821,552 | 830 |
[
"sparklemotion",
"nokogiri"
] | A test suite for my application started failing and I think this is due to upgrading libxml to 2.9.0. It seems nokogiri is not able to do first-child properly with it atm:
```
1.9.3-p327 :007 > Nokogiri::XML('<foo><bar/></foo>').css('bar:first-child')
=> []
1.9.3-p327 :008 > Nokogiri::XML('<foo><bar/></foo>').css('b... | :first-child broken with libxml 2.9.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/829/comments | 27 | 2013-01-09T21:03:40Z | 2014-12-31T06:58:58Z | https://github.com/sparklemotion/nokogiri/issues/829 | 9,820,914 | 829 |
[
"sparklemotion",
"nokogiri"
] | The version `1.5.6` which is marked as `unreleased` was installed when i ran `gem update`. So the part of my code began failing.

 object. That is, I discovered this usage in a client's code base. And it appears to be working.
The java Nokogiri::XML however stumbles on a call to XMLDocument.read_io when given the same... | Java Nokogiri::XML doesn't accept the same arguments as Nokogiri::XML | https://api.github.com/repos/sparklemotion/nokogiri/issues/825/comments | 2 | 2013-01-04T22:04:44Z | 2013-01-13T06:32:26Z | https://github.com/sparklemotion/nokogiri/issues/825 | 9,696,306 | 825 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.