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"
] | Found when I added tests related to #1351, see https://github.com/sparklemotion/nokogiri/commit/ebdb95b7543ac90cd439985c7e0cef6a499348c0
This fails because ParserContext's `setInputSource()` method thinks it's receiving string **data**, and not a path to a file.
Would love if someone comfortable with JRuby would fix ... | [jruby] XML::Schema#validate does not work when provided a path | https://api.github.com/repos/sparklemotion/nokogiri/issues/1361/comments | 2 | 2015-10-01T17:01:30Z | 2015-10-01T18:00:03Z | https://github.com/sparklemotion/nokogiri/issues/1361 | 109,341,644 | 1,361 |
[
"sparklemotion",
"nokogiri"
] | I couldn't get version 1.6.6.2 working in a docker. I could only get up to 1.6.1 working. I documented it at https://github.com/sparklemotion/nokogiri/wiki/Running-in-a-docker-(Ubuntu). Unfortunately, it appears that version 1.6.1 functions differently than 1.6.6.2, which means I now need to modify my scripts that use ... | Only version 1.6.1 is supported in Ubuntu docker | https://api.github.com/repos/sparklemotion/nokogiri/issues/1359/comments | 5 | 2015-09-30T16:44:35Z | 2015-10-09T07:40:10Z | https://github.com/sparklemotion/nokogiri/issues/1359 | 109,133,285 | 1,359 |
[
"sparklemotion",
"nokogiri"
] | Error installing rails:
invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in /Users/username/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/cache/nokogiri-1.6.6.2.gem
| Error Installing on Rails 4.2.4 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1358/comments | 4 | 2015-09-30T14:55:45Z | 2015-09-30T17:48:23Z | https://github.com/sparklemotion/nokogiri/issues/1358 | 109,109,329 | 1,358 |
[
"sparklemotion",
"nokogiri"
] | nokogiri fails to build the extension from source on Mac OS X 10.9.5. I'm generating the makefile (in nokogiri/ext/nokogiri):
```
$ ruby extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using pa... | Nokogiri extension fails to build due to configuration error | https://api.github.com/repos/sparklemotion/nokogiri/issues/1357/comments | 14 | 2015-09-27T18:21:20Z | 2016-10-03T06:20:51Z | https://github.com/sparklemotion/nokogiri/issues/1357 | 108,551,949 | 1,357 |
[
"sparklemotion",
"nokogiri"
] | ```
seed_xml = Nokogiri::XML('<?xml version = "1.0" standalone ="yes"?>')
elem = seed_xml.create_element("test", {}, "123\r\n456")
seed_xml << elem
seed_xml.to_xml
=> "<?xml version=\"1.0\" standalone=\"yes\"?>\n<test>123
\n456</test>\n"
```
`\r` `(#xD)` should not be escaped, since it is is a valid XML char [as... | nokogiri escapes "\r" while it shoudln't | https://api.github.com/repos/sparklemotion/nokogiri/issues/1356/comments | 7 | 2015-09-24T20:22:21Z | 2020-10-12T13:21:33Z | https://github.com/sparklemotion/nokogiri/issues/1356 | 108,207,119 | 1,356 |
[
"sparklemotion",
"nokogiri"
] | Background is here: https://mail.gnome.org/archives/xml/2015-September/msg00003.html
`libxslt-1.1.28/doc/tutorial2/libxslt_pipes.c` is GPL licensed, and thus appears to violate the MIT license under which libxslt is distributed. I've [reported this to the libxslt developers](https://mail.gnome.org/archives/xml/2015-Se... | Nokogiri should not ship GPL-licensed file that's distributed with libxslt | https://api.github.com/repos/sparklemotion/nokogiri/issues/1354/comments | 3 | 2015-09-16T20:59:33Z | 2020-10-12T13:23:33Z | https://github.com/sparklemotion/nokogiri/issues/1354 | 106,862,845 | 1,354 |
[
"sparklemotion",
"nokogiri"
] | I have two XML files:
`actual.xml`
``` xml
<?xml version="1.0" encoding="UTF-8"?><project>
<actions/>
<description/>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBu... | weirdness with Nokogiri::XML::Document#canonicalize | https://api.github.com/repos/sparklemotion/nokogiri/issues/1353/comments | 2 | 2015-09-15T22:12:55Z | 2016-06-27T19:03:10Z | https://github.com/sparklemotion/nokogiri/issues/1353 | 106,658,382 | 1,353 |
[
"sparklemotion",
"nokogiri"
] | Hello.
I need to validate xml file using xds. When the file is not too big I use document validation and it's Ok.
I have a problem when the file is big. Then I use file validation instead of the document. But this type of the validation doesn't detect error such as unclosed double quote on the attributes and I don't kn... | How to validate big xml? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1351/comments | 7 | 2015-09-14T12:43:11Z | 2015-09-15T16:00:02Z | https://github.com/sparklemotion/nokogiri/issues/1351 | 106,332,464 | 1,351 |
[
"sparklemotion",
"nokogiri"
] | ```
require 'nokogiri'
require 'digest'
def mine
xml = Nokogiri::XML::Builder.new{ |xml|
xml.xforms xmlns: 'http://openrosa.org/xforms/xformsList' do
@forms.each do |form|
xml.xform do
# binding.pry
xml.formID form.id
xml.name form.name
xml.version 1
... | How to use a ruby-core library method as a node name | https://api.github.com/repos/sparklemotion/nokogiri/issues/1350/comments | 1 | 2015-09-12T17:47:49Z | 2015-09-13T15:35:42Z | https://github.com/sparklemotion/nokogiri/issues/1350 | 106,174,212 | 1,350 |
[
"sparklemotion",
"nokogiri"
] | I noticed a change when updating from 1.5 to 1.6 probably related to https://github.com/sparklemotion/nokogiri/issues/1005
Previously, empty input would result in an empty document, and now it raises an error. However, the error is a generic RuntimeError instead of the expected Nokogiri::XML::SyntaxError. RuntimeError... | RuntimeError "Could not parse document" on empty input in strict mode | https://api.github.com/repos/sparklemotion/nokogiri/issues/1349/comments | 6 | 2015-09-11T13:07:06Z | 2015-12-17T07:15:24Z | https://github.com/sparklemotion/nokogiri/issues/1349 | 106,006,559 | 1,349 |
[
"sparklemotion",
"nokogiri"
] | The following valid HTML5 (as validated by the W3C validator) ...
``` html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Noko nogo</title>
</head>
<body>
<address>
<ul>
<li>Noko nogo</li>
</ul>
</address>
</body>
</html>
```
... passed into Nokogiri:... | Address tag with valid flow content generates 'Unexpected end tag : address' error | https://api.github.com/repos/sparklemotion/nokogiri/issues/1348/comments | 4 | 2015-09-11T01:58:53Z | 2015-09-30T17:46:00Z | https://github.com/sparklemotion/nokogiri/issues/1348 | 105,930,887 | 1,348 |
[
"sparklemotion",
"nokogiri"
] | When installing on a docker container any gem that depends on nokogiri seems to have a chance to fail to install nokogiri despite libxml2 being installed:
```
root@8d13f6c18f81:/usr/src/application# apt-get install libxml2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
lib... | Installing nokogiri on docker SOMETIMES fails for various gems | https://api.github.com/repos/sparklemotion/nokogiri/issues/1347/comments | 3 | 2015-09-09T23:41:09Z | 2015-09-13T16:25:15Z | https://github.com/sparklemotion/nokogiri/issues/1347 | 105,704,678 | 1,347 |
[
"sparklemotion",
"nokogiri"
] | c:\row\dev\hello_world>rake db:create
rake aborted!
LoadError: cannot load such file -- nokogiri/nokogiri
c:/row/dev/hello_world/config/application.rb:7:in `<top (required)>'
c:/row/dev/hello_world/Rakefile:4:in`<top (required)>'
LoadError: cannot load such file -- nokogiri/2.2/nokogiri
c:/row/dev/hello_world/config/ap... | Not properly install rails | https://api.github.com/repos/sparklemotion/nokogiri/issues/1346/comments | 2 | 2015-09-08T14:14:43Z | 2015-09-08T15:06:50Z | https://github.com/sparklemotion/nokogiri/issues/1346 | 105,390,071 | 1,346 |
[
"sparklemotion",
"nokogiri"
] | Whenever I try to compile Nokogiri for OS X, I get a failure message because `/usr/include/iconv.h` is not found on my computer. This is because Nokogiri is hardcoding _that exact path_ into its `extconf.rb` script. Even though `iconv.h` is very much present (inside my Xcode SDK), and even though Nokogiri compiles _jus... | Nokogiri Build Failure: Bad Design | https://api.github.com/repos/sparklemotion/nokogiri/issues/1345/comments | 24 | 2015-09-08T03:33:32Z | 2016-07-11T12:00:04Z | https://github.com/sparklemotion/nokogiri/issues/1345 | 105,293,938 | 1,345 |
[
"sparklemotion",
"nokogiri"
] | I think It will be interesting if instead
```
parsed_element.at_css('RESULT').attributes['ID']
```
I Can write only
```
parsed_element.at_css('RESULT').id
```
What you think about this feature ?
| Get attribute more clearly | https://api.github.com/repos/sparklemotion/nokogiri/issues/1343/comments | 2 | 2015-09-04T08:29:07Z | 2015-09-04T12:09:32Z | https://github.com/sparklemotion/nokogiri/issues/1343 | 104,849,360 | 1,343 |
[
"sparklemotion",
"nokogiri"
] | Demo codes:
``` ruby
node = Nokogiri::XML::Node.new("higher", @foo_xml)
node['value'] = "hello"
node['value'] << " world"
puts node['value'] # output string is "hello", " world" missed.
```
Seems the string append operation "<<" does not works for attribute value. Node['value'] is a string class, it shou... | [XML] String Append operation works failed for attribute value: | https://api.github.com/repos/sparklemotion/nokogiri/issues/1342/comments | 1 | 2015-09-02T03:57:49Z | 2015-09-03T20:34:43Z | https://github.com/sparklemotion/nokogiri/issues/1342 | 104,398,342 | 1,342 |
[
"sparklemotion",
"nokogiri"
] | The `configure.guess` files bundled with libxslt and libxml2 don't recognize PowerPC Little endian.
This can be fixed by patching `config.guess` to add stanzas for the following two cases:
```
ppc64le:Linux:*:*)
echo powerpc64le-unknown-linux-${LIBC}
exit ;;
ppcle:Linux:*:*)
echo powerpcle-unknown-linux-${LIBC}
exi... | Install fails on PPC-LE | https://api.github.com/repos/sparklemotion/nokogiri/issues/1341/comments | 8 | 2015-09-01T14:53:00Z | 2015-11-19T21:18:31Z | https://github.com/sparklemotion/nokogiri/issues/1341 | 104,284,613 | 1,341 |
[
"sparklemotion",
"nokogiri"
] | [Link for the problematic page](http://www.altex.ro/electrocasnice-mari/incalzire-aer-conditionat/aparate-de-aer-conditionat/filtru/p/4). This page has its meta charset tag set incorrectly:
```
<meta charset="text/html; charset=utf-8">
```
I have seen this in other pages. Maybe because it is generated automatically w... | Incorrect meta encoding for HTML documents | https://api.github.com/repos/sparklemotion/nokogiri/issues/1340/comments | 7 | 2015-08-25T09:38:41Z | 2021-02-16T17:04:10Z | https://github.com/sparklemotion/nokogiri/issues/1340 | 102,988,146 | 1,340 |
[
"sparklemotion",
"nokogiri"
] | I just found a branch from 2010 doing this (pushed by @zenspider) that nobody merged.
https://github.com/sparklemotion/nokogiri/tree/hoedoubleplusgood
Yeah, we should do this.
| Convert racc/lex/rake-compiler logic to hoe plugins | https://api.github.com/repos/sparklemotion/nokogiri/issues/1337/comments | 4 | 2015-08-20T14:03:27Z | 2019-01-05T08:16:00Z | https://github.com/sparklemotion/nokogiri/issues/1337 | 102,146,231 | 1,337 |
[
"sparklemotion",
"nokogiri"
] | It is too hard to see what branches are active.
```
$ git remote -v | grep origin
origin git://github.com/sparklemotion/nokogiri.git (fetch)
origin git://github.com/sparklemotion/nokogiri.git (push)
$ git branch -r --merged origin/master | grep origin | grep -v master
origin/check_types_before_reparent
origin/f... | Merged branches should be deleted | https://api.github.com/repos/sparklemotion/nokogiri/issues/1336/comments | 2 | 2015-08-20T13:29:30Z | 2015-08-20T13:49:13Z | https://github.com/sparklemotion/nokogiri/issues/1336 | 102,138,956 | 1,336 |
[
"sparklemotion",
"nokogiri"
] | A code segment speaks a thousand words... or something like that
```
require 'nokogiri'
frag = Nokogiri::HTML::fragment("<a>test</a>")
frag.css("//a")
```
Gives an error with an expanded? selector.
| Xpath in css() function on an Html fragment causes an invalid syntax error | https://api.github.com/repos/sparklemotion/nokogiri/issues/1335/comments | 4 | 2015-08-14T18:50:24Z | 2021-02-16T17:04:09Z | https://github.com/sparklemotion/nokogiri/issues/1335 | 101,078,603 | 1,335 |
[
"sparklemotion",
"nokogiri"
] | When installing Nokogiri on a system with no compatible libxml2, building libxml2 works fine but building libxslt just after it fails because it cannot find libxml2.
```
$ ARCHFLAGS="-arch x86_64" bundle install --verbose
…
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/System/... | Nokogiri doesn't use the libxml2 it built for building libxslt | https://api.github.com/repos/sparklemotion/nokogiri/issues/1334/comments | 19 | 2015-08-14T06:51:58Z | 2021-02-16T17:05:03Z | https://github.com/sparklemotion/nokogiri/issues/1334 | 100,948,010 | 1,334 |
[
"sparklemotion",
"nokogiri"
] | ```
require 'nokogiri'
doc = Nokogiri::XML('<xml xmlns:a="abc"></xml>')
doc2 = Nokogiri::XML('<more xmlns="abc" />')
doc.root << doc2.root
puts doc
```
I would expect the output to be either
a) it used the outer namespace definition, and moved the element into it
```
<?xml version="1.0"?>
<xml xmlns:a="abc">
<a:... | element in incorrect namespace after adding as a child | https://api.github.com/repos/sparklemotion/nokogiri/issues/1332/comments | 9 | 2015-08-13T19:01:43Z | 2019-01-05T01:59:01Z | https://github.com/sparklemotion/nokogiri/issues/1332 | 100,844,342 | 1,332 |
[
"sparklemotion",
"nokogiri"
] | I was just trying to understand, why is JRuby Nokogiri swallowing my "xmlns:app" attributes, while MRI does not. I was trying to write a spec which would be failing on JRuby and as a result found this:
on JRuby it throws a Java exception -
```
Java::OrgW3cDom::DOMException: NAMESPACE_ERR: An attempt is made to creat... | Different JRuby behavior | https://api.github.com/repos/sparklemotion/nokogiri/issues/1331/comments | 7 | 2015-08-12T17:47:23Z | 2021-02-16T17:04:40Z | https://github.com/sparklemotion/nokogiri/issues/1331 | 100,597,032 | 1,331 |
[
"sparklemotion",
"nokogiri"
] | When parsing the following page https://derstandard.at/jetzt/livebericht/2000020029043/faymann-und-mitterlehner-zur-asylpolitik
``` ruby
require 'open-uri'
doc = Nokogiri::HTML(open('https://derstandard.at/jetzt/livebericht/2000020029043/faymann-und-mitterlehner-zur-asylpolitik'))
=> #(Document:0x3fd14531f4d8 {
na... | Unicode issues | https://api.github.com/repos/sparklemotion/nokogiri/issues/1330/comments | 4 | 2015-08-12T17:43:59Z | 2015-08-13T07:32:41Z | https://github.com/sparklemotion/nokogiri/issues/1330 | 100,596,519 | 1,330 |
[
"sparklemotion",
"nokogiri"
] | Hi,
I parsed a url like this,
<pre>
url = "https://build.opensuse.org/package/show/home:MargueriteSu:branches:devel:languages:nodejs/nodejs-accord"
html = Nokogiri::HTML(open(url))
doc = html.xpath('//div[@id="content"]/div[3]/div[2]')
p doc
</pre>
as you can see by visiting the url, there's still another div[@id="... | No children when it actually has | https://api.github.com/repos/sparklemotion/nokogiri/issues/1329/comments | 3 | 2015-08-09T13:56:20Z | 2021-02-16T17:04:39Z | https://github.com/sparklemotion/nokogiri/issues/1329 | 99,898,763 | 1,329 |
[
"sparklemotion",
"nokogiri"
] | As part of my PhD research on code authorship, we calculated the Truck Factor (TF) of some popular GitHub repositories.
As you probably know, the [Truck (or Bus) Factor](https://en.wikipedia.org/wiki/Bus_factor) designates the minimal number of developers that have to be hit by a truck (or quit) before a project is in... | Nokogiri Truck Factor | https://api.github.com/repos/sparklemotion/nokogiri/issues/1328/comments | 1 | 2015-08-07T12:23:10Z | 2015-08-31T12:06:14Z | https://github.com/sparklemotion/nokogiri/issues/1328 | 99,637,889 | 1,328 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri is one of those dependencies that is a pain in the neck to install on OS X. If you Google this, you will see thousands of results about installation problems.
Sometimes it is due to `libiconv`, `libxml`, or `libxslt`. Sometimes it fails due to other reasons.
In Nodejs, there's this tool called [node-pre-gyp]... | Nokogiri should come with prebuilt binary dependencies | https://api.github.com/repos/sparklemotion/nokogiri/issues/1324/comments | 2 | 2015-07-26T06:25:50Z | 2020-12-23T16:46:14Z | https://github.com/sparklemotion/nokogiri/issues/1324 | 97,291,495 | 1,324 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri looses the class="asd" attribute in the folowing example:
```
> Nokogiri::HTML::fragment('<body class="asd">test</body>').to_html
=> "<body>test</body>"
```
It works with spans:
```
> Nokogiri::HTML::fragment('<span class="asd">test</span>').to_html
=> "<span class=\"asd\">test</span>"
```
And also on a co... | Nokogiri looses body-attributes in fragments | https://api.github.com/repos/sparklemotion/nokogiri/issues/1323/comments | 1 | 2015-07-24T14:14:30Z | 2016-10-03T06:23:33Z | https://github.com/sparklemotion/nokogiri/issues/1323 | 97,062,386 | 1,323 |
[
"sparklemotion",
"nokogiri"
] | File test1.xml:
``` xml
<a xmlns="uri:a" xmlns:b="uri:b">
<b/>
</a>
```
File test2.xml
``` xml
<b xmlns="uri:b"/>
```
execute the following example:
``` ruby
require 'nokogiri'
a = Nokogiri::XML.parse(File.read('test1.xml'))
b = Nokogiri::XML.parse(File.read('test2.xml'))
a.root.xpath('/*/*[1]').each do |ele|
... | relink_namespace in xml_node.c destroys documents | https://api.github.com/repos/sparklemotion/nokogiri/issues/1322/comments | 2 | 2015-07-23T22:30:30Z | 2022-01-16T17:08:20Z | https://github.com/sparklemotion/nokogiri/issues/1322 | 96,918,290 | 1,322 |
[
"sparklemotion",
"nokogiri"
] | xinclude in libxml2 is not very capable. It uses nanohttp, which has no https support.
``` ruby
require 'openssl'
require 'open-uri'
class Node
def do_xinclude_manual
ctx = XPathContext.new(self)
ctx.register_namespaces "xi"=>"http://www.w3.org/2001/XInclude"
ctx.evaluate('//xi:include').e... | Nokogiri do_xinclude (not very good) - consider to change | https://api.github.com/repos/sparklemotion/nokogiri/issues/1321/comments | 2 | 2015-07-23T13:38:00Z | 2021-02-16T17:04:39Z | https://github.com/sparklemotion/nokogiri/issues/1321 | 96,816,526 | 1,321 |
[
"sparklemotion",
"nokogiri"
] | I have a strange issue with Nokogiri. I'm running the same gem, ruby and libxml versions in a Linux server and in my OS X dev environment. The only difference is that in Linux Nokogiri seems to apply some patches automatically ( see Nokogiri::VersionInfo.instance.to_markdown below ).
I have the following string:
```... | Nokogiri changes HTML completely resulting in Chinese characters ( only in Linux ) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1317/comments | 5 | 2015-07-17T00:38:53Z | 2015-07-18T02:46:14Z | https://github.com/sparklemotion/nokogiri/issues/1317 | 95,559,623 | 1,317 |
[
"sparklemotion",
"nokogiri"
] | If you run the following code in JRuby it will result in the > in the style element being HTML entity encoded >, this does not occur with MRI.
```
html = '<!DOCTYPE html><html><head><style>tr > div { display:block; }</style></head><body><h1>Mr. Belvedere Fan > Club</h1></body></html>'
html_doc = Nokogiri::HTML(html... | Greater than (>) in "style" element is being HTML encoded with JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1315/comments | 2 | 2015-07-11T13:09:35Z | 2016-05-30T19:25:37Z | https://github.com/sparklemotion/nokogiri/issues/1315 | 94,471,477 | 1,315 |
[
"sparklemotion",
"nokogiri"
] | Hi, posting this here in case it helps others.
I had the following problem when installing `nokogiri 1.6.6.2` on Fedora 22
```
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... yes
checking for iconv... yes
*****************************************... | 1.6.6.2 fails to install on Fedora 22 (Q/A) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1313/comments | 0 | 2015-07-08T11:47:58Z | 2015-07-08T11:48:01Z | https://github.com/sparklemotion/nokogiri/issues/1313 | 93,769,625 | 1,313 |
[
"sparklemotion",
"nokogiri"
] | When trying to use any xpath related methods on UTF-16 file this happens:
```
>ruby test.rb
C:/ruby/Ruby200/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.6.2-x86-mingw32/lib/nokogiri/xml/xpath_context.rb:9:in `gsub': incompatible encoding regexp match (US-ASCII regexp with UTF-16 string) (Encoding::CompatibilityError)
... | Nokogiri::XML::XPathContext.register_namespaces fails on UTF-16 file | https://api.github.com/repos/sparklemotion/nokogiri/issues/1311/comments | 3 | 2015-07-05T13:47:01Z | 2023-01-22T04:19:23Z | https://github.com/sparklemotion/nokogiri/issues/1311 | 93,113,075 | 1,311 |
[
"sparklemotion",
"nokogiri"
] | When attempting to install Nokogiri via bundler/capistrano I am receiving the error:
```
An error occurred while installing nokogiri (1.6.5), and Bundler cannot continue
```
Digging deeper I can see >> **libxml2 version 2.6.21 or later is required!**
The error message also says `Make sure that gem install nokogiri -... | Nokogiri gem install failing in Capistrano deploy | https://api.github.com/repos/sparklemotion/nokogiri/issues/1309/comments | 2 | 2015-07-04T15:54:47Z | 2015-07-05T15:34:35Z | https://github.com/sparklemotion/nokogiri/issues/1309 | 93,023,905 | 1,309 |
[
"sparklemotion",
"nokogiri"
] | I cannot reopen #1300.
User cannot see what version will be released and what are blocked.
| some milestones should be closed | https://api.github.com/repos/sparklemotion/nokogiri/issues/1301/comments | 0 | 2015-06-10T23:04:49Z | 2015-06-11T15:10:37Z | https://github.com/sparklemotion/nokogiri/issues/1301 | 87,137,133 | 1,301 |
[
"sparklemotion",
"nokogiri"
] | I am waiting new release with #1266.
It is confusing what version will be released as next version.
https://github.com/sparklemotion/nokogiri/milestones?state=open
I don't know why 1.5.1 is still open.
https://github.com/sparklemotion/nokogiri/milestones/1.5.1
| milestones are confusing | https://api.github.com/repos/sparklemotion/nokogiri/issues/1300/comments | 4 | 2015-06-10T16:12:11Z | 2015-06-11T15:11:34Z | https://github.com/sparklemotion/nokogiri/issues/1300 | 87,022,067 | 1,300 |
[
"sparklemotion",
"nokogiri"
] | This code reproduces the issue:
``` ruby
#!/usr/bin/env jruby
require 'nokogiri'
puts RUBY_ENGINE
doc = Nokogiri::XML(<<-EOF)
<?xml version="1.0" encoding="UTF-8"?>
<node xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<otherNode soapenv:mustUnderstand="1"></otherNode>
</node>
EOF
node = doc.at_xpath... | On JRuby, removing a namespaced attribute doesn't work | https://api.github.com/repos/sparklemotion/nokogiri/issues/1299/comments | 11 | 2015-06-08T23:16:09Z | 2024-12-08T18:21:24Z | https://github.com/sparklemotion/nokogiri/issues/1299 | 86,367,182 | 1,299 |
[
"sparklemotion",
"nokogiri"
] | After migrating from mri to jruby, I noticed that Nokogiri doesn't parse all of the xml documents till the end.
Further investigation revealed that it stops at invalid elements with unescaped _&_ in their attributes.
MRI/C-version of Nokogiri worked fine.
Related: #525
``` ruby
html = "<p class='they & us'>You & me... | Can not handle '&' in attribute in JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1295/comments | 3 | 2015-06-04T13:46:08Z | 2021-12-22T15:41:44Z | https://github.com/sparklemotion/nokogiri/issues/1295 | 85,107,051 | 1,295 |
[
"sparklemotion",
"nokogiri"
] | xml have a special character 
if it is not removed from the document all symbols & lt; & gt; after it lost
``` ruby
part = nil;
File.open('part.xml','r') { |f| part = f.read }
File.open('good.xml','wb') do |f|
f.puts Nokogiri::XML(part.gsub('','-')).to_xml
end
File.open('bad.xml','wb') do |f|
f.puts Nok... | Nokogiri lose < > | https://api.github.com/repos/sparklemotion/nokogiri/issues/1294/comments | 2 | 2015-06-04T09:07:22Z | 2016-10-03T06:27:10Z | https://github.com/sparklemotion/nokogiri/issues/1294 | 84,995,328 | 1,294 |
[
"sparklemotion",
"nokogiri"
] | Hello,
I am using last ruby version 2.2.2 on windows 7 but I can't run my ruby code (ruby main.rb) when i use nokogiri , i got this error :
C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)
from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_e... | ruby program error with "require 'nokogiri'" | https://api.github.com/repos/sparklemotion/nokogiri/issues/1293/comments | 1 | 2015-06-01T21:53:58Z | 2015-06-03T15:08:59Z | https://github.com/sparklemotion/nokogiri/issues/1293 | 83,711,130 | 1,293 |
[
"sparklemotion",
"nokogiri"
] | When building big selector chain, you cannot add anything after the :not(). The following example should explain clearly. I use nth-child to compare behavior since everything works with it.
```
nok = Nokogiri::HTML.parse('<html><body></body></html>')
nok.css('html body:not(a)') # no exception
nok.css('html body:not(a)... | Chaining after :not in document#css causes CSS::SyntaxError | https://api.github.com/repos/sparklemotion/nokogiri/issues/1292/comments | 3 | 2015-05-22T16:39:39Z | 2015-06-23T19:01:26Z | https://github.com/sparklemotion/nokogiri/issues/1292 | 79,521,696 | 1,292 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri 1.6.6.2 installs with no problem. 1.4.x version fails. Using ubuntu + rvm (all required libraries are installed).
```
pm@sniegas:~$ gem install nokogiri -v '1.4.3'
Fetching: nokogiri-1.4.3.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed t... | Building of native extensions fails | https://api.github.com/repos/sparklemotion/nokogiri/issues/1290/comments | 3 | 2015-05-19T11:32:40Z | 2015-05-21T03:30:27Z | https://github.com/sparklemotion/nokogiri/issues/1290 | 78,050,284 | 1,290 |
[
"sparklemotion",
"nokogiri"
] | ```
ruby-2.2.2 ~/tmp ✓ mkdir "dir with space"
ruby-2.2.2 ~/tmp ✓ cd "dir with space"
ruby-2.2.2 ~/tmp/dir with space ✓ mkdir gems
ruby-2.2.2 ~/tmp/dir with space ✓ echo "source 'https://rubygems.org'" > Gemfile
ruby-2.2.2 ~/tmp/dir with space ✓ echo 'gem "nokogiri"' >> Gemfile
ruby-2.2.2 ~/tmp/dir with space ✓ bundle -... | Bundling fails when directory path contains a space | https://api.github.com/repos/sparklemotion/nokogiri/issues/1289/comments | 5 | 2015-05-18T13:54:14Z | 2019-01-05T01:22:53Z | https://github.com/sparklemotion/nokogiri/issues/1289 | 77,665,920 | 1,289 |
[
"sparklemotion",
"nokogiri"
] | Sorry for a total noob problem, but I can't find anywhere else to ask for help.
I appear to be seeing the latest posts in the nokogiri-talk Google Group (including two topics from today), but I've made two attempts to post a new issue, and I don't see them. I posted once in the Groups UI and once via email, and I don... | I can't get the nokogiri-talk Google Group to show my question | https://api.github.com/repos/sparklemotion/nokogiri/issues/1288/comments | 1 | 2015-05-12T19:46:37Z | 2015-05-12T20:12:05Z | https://github.com/sparklemotion/nokogiri/issues/1288 | 75,715,976 | 1,288 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri::Node has methods (content, and text) that unescape &. Yet, Reader does not appear to have such methods -- inner_xml returned strings remain escaped.
Is there a method in Nokogiri::Reader that will unescape &. If not, what is the recommended way to do so?
| Nokogiri::Reader unescape inner html/xml? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1287/comments | 2 | 2015-05-12T19:39:42Z | 2015-05-12T20:44:11Z | https://github.com/sparklemotion/nokogiri/issues/1287 | 75,713,702 | 1,287 |
[
"sparklemotion",
"nokogiri"
] | 1.6.6.2
``` ruby
require 'bundler/setup'
require 'nokogiri'
class Doc < Nokogiri::XML::SAX::Document
def characters(chars)
p chars
end
end
str = "<html>
<meta name = 'bla
<body>
body
</body>
</html>
"
parser = Nokogiri::HTML::SAX::Parser.new(Doc.new)
parser.parse_memory(str)
```
output is empty.
but if i ... | html sax parser not fixing not closing attributes | https://api.github.com/repos/sparklemotion/nokogiri/issues/1286/comments | 3 | 2015-05-10T16:56:55Z | 2015-09-30T11:49:33Z | https://github.com/sparklemotion/nokogiri/issues/1286 | 74,957,508 | 1,286 |
[
"sparklemotion",
"nokogiri"
] | 1.6.6.2
``` ruby
require 'bundler/setup'
require 'nokogiri'
class Doc < Nokogiri::XML::SAX::Document
def characters(chars)
p chars
end
end
parser = Nokogiri::HTML::SAX::Parser.new(Doc.new)
parser.parse_memory("bla <a class='\0'> something </a>")
```
```
"bla "
```
| sax parser stops parsing when meet \0 symbol | https://api.github.com/repos/sparklemotion/nokogiri/issues/1285/comments | 1 | 2015-05-10T16:45:55Z | 2015-05-10T17:00:39Z | https://github.com/sparklemotion/nokogiri/issues/1285 | 74,955,916 | 1,285 |
[
"sparklemotion",
"nokogiri"
] | 1.6.6.2
``` ruby
require 'bundler/setup'
require 'nokogiri'
class Doc < Nokogiri::XML::SAX::Document
def characters(chars)
p chars
end
end
handler = Doc.new
parser = Nokogiri::HTML::SAX::Parser.new(handler)
parser.parse_memory("<body> = - – & </body>") do |ctx|
ctx.replace_entities = fa... | sax parser with replace_entities = false still replaces entities | https://api.github.com/repos/sparklemotion/nokogiri/issues/1284/comments | 6 | 2015-05-10T16:32:37Z | 2024-07-01T21:09:26Z | https://github.com/sparklemotion/nokogiri/issues/1284 | 74,953,159 | 1,284 |
[
"sparklemotion",
"nokogiri"
] | Environment:
- Windows 7 64-bit
- Ruby 2.0.0 p353 32-bit
- Nokogiri 1.6.1 x86-mingw32
I've a 5GB XML file with the following structure:
``` xml
<BATCH>
<BATCH_TYPE>ALL</BATCH_TYPE>
<BATCH_UPDATE>RELOAD</BATCH_UPDATE>
<BATCH_ID>0815</BATCH_ID>
<BATCH_CHANGE TYPE="UPDATE_CONTENT_A">
<CONTENT_A>
... | too large memory footprint in READER node.attributes when millions of child nodes are present | https://api.github.com/repos/sparklemotion/nokogiri/issues/1283/comments | 2 | 2015-05-08T17:25:02Z | 2024-12-16T17:21:16Z | https://github.com/sparklemotion/nokogiri/issues/1283 | 74,435,210 | 1,283 |
[
"sparklemotion",
"nokogiri"
] | When trying to re-use a `Nokogiri::XML::Schema` object for validating multiple `Nokogiri::XML` documents, the MRI and JRuby implementations behave differently. The JRuby implementation reports errors encountered in previous validation, while the MRI version does not.
Please see https://gist.github.com/ylansegal/eac88... | Nokogiri::XML::Schema#validate behaves differently in MRI and JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1282/comments | 4 | 2015-05-06T19:36:38Z | 2024-06-24T21:18:19Z | https://github.com/sparklemotion/nokogiri/issues/1282 | 73,715,752 | 1,282 |
[
"sparklemotion",
"nokogiri"
] | Hello
using Jruby with some html tags (Nokogiri xml elements) I get this error which crashes the program
the error doesnt always occur, so it is hard to provide a sample code, but it looks like
``` ruby
doc.css('meta').each do |t|
puts t
a << t.to_s
end
```
I think it might have to do with invalid encodings, but... | RuntimeError when calling to_s with jruby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1281/comments | 10 | 2015-05-04T19:08:48Z | 2017-02-10T07:27:00Z | https://github.com/sparklemotion/nokogiri/issues/1281 | 73,101,407 | 1,281 |
[
"sparklemotion",
"nokogiri"
] | On an RHEL 7.1 LE (ppc64le) OS, I tried installing 'nokogiri' gem using "gem install nokogiri" and the install fails while building the embedded libxslt sources (v1.1.28). Attached are the gem_make.out and libxslt 1.1.28 config error seen while building the native gems.
When I install below required libxml2 and libxsl... | nokogiri fails to install on RHEL 7.1 LE & Ubuntu 14.04 on ppc64le arch | https://api.github.com/repos/sparklemotion/nokogiri/issues/1280/comments | 8 | 2015-04-27T10:21:33Z | 2015-11-17T00:54:55Z | https://github.com/sparklemotion/nokogiri/issues/1280 | 71,243,150 | 1,280 |
[
"sparklemotion",
"nokogiri"
] | Ruby 1.9.3 was EOLed in February 2015.
This ticket is proposing ending support for 1.9.3 in Nokogiri 1.7.0; but continuing support for the lifetime of 1.6.x.
Things we'll need to update:
- [x] gemspec declaration (in the Hoe spec in the Rakefile)
- [x] .travis.yml
- [x] test_all
- [x] add note to CHANGELOGs
... | Deprecate Ruby 1.9.3 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1279/comments | 0 | 2015-04-22T20:55:40Z | 2017-02-10T08:56:09Z | https://github.com/sparklemotion/nokogiri/issues/1279 | 70,232,531 | 1,279 |
[
"sparklemotion",
"nokogiri"
] | I found the following from another user in the nokogiri-talk page. I'm encountering the same issue, so I'm posting it here. I was using Nokogiri 1.6.6.2 and MRI 2.1.4 on Ubuntu 14.
I'd guess the issue stems from the namespace definitions being different objects, but that seems like something that should be resolved wi... | Attribute loses namespace when node moved | https://api.github.com/repos/sparklemotion/nokogiri/issues/1278/comments | 4 | 2015-04-21T15:02:33Z | 2015-06-05T19:45:21Z | https://github.com/sparklemotion/nokogiri/issues/1278 | 69,870,566 | 1,278 |
[
"sparklemotion",
"nokogiri"
] | Why when u use `:strict` i dont get any errors?
``` ruby
Nokogiri::HTML("<a/><a/><a/>") {|config| config.strict }.errors.any?
```
`
2.1.3 :001 > Nokogiri::HTML("<a/><a/><a/>") {|config| config.strict }.errors.any?
`
`
=> false
`
| Nokogiri::HTML not very strict! | https://api.github.com/repos/sparklemotion/nokogiri/issues/1277/comments | 1 | 2015-04-20T22:51:59Z | 2015-04-23T15:41:45Z | https://github.com/sparklemotion/nokogiri/issues/1277 | 69,698,779 | 1,277 |
[
"sparklemotion",
"nokogiri"
] | Just ran into this using Nokogiri 1.6.6.2.
I need to remove the first `<p>` from an embedded `<div>`. Using `at.('#page-1 p').remove` is removing the child (text) node, not the `<p>` node and its child:
```
require 'nokogiri'
doc = Nokogiri::HTML(<<EOT)
<html>
<head>
</head>
<body>
<div id="page-container">... | remove not removing found node | https://api.github.com/repos/sparklemotion/nokogiri/issues/1276/comments | 1 | 2015-04-19T21:07:16Z | 2015-09-30T12:23:37Z | https://github.com/sparklemotion/nokogiri/issues/1276 | 69,464,339 | 1,276 |
[
"sparklemotion",
"nokogiri"
] | We need to pre-compile all gems
While using gem-compiler we hit the following issue
https://github.com/luislavena/gem-compiler/issues/12
Since it deletes the files which were part of original gem-spec.
https://github.com/sparklemotion/nokogiri/blob/v1.6.6.2/ext/nokogiri/extconf.rb#L63-L68
Out here. RPM packages typi... | Cannot use gem-compile for nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1274/comments | 4 | 2015-04-10T21:01:57Z | 2021-02-16T17:04:39Z | https://github.com/sparklemotion/nokogiri/issues/1274 | 67,682,669 | 1,274 |
[
"sparklemotion",
"nokogiri"
] | ```
# Install packages that some information sources claim are required by Nokogiri.
# Using su instead of sudo because my sudo's PATH is not currently correct. (sudo is not used to install Nokogiri itself so I don't think this is the issue.)
vagrant@precise32:~/test$ sudo su -l root -c 'apt-get install zlib1g-dev rub... | nokogiri-1.6.6.2, Ubuntu 12.04, Rubinius 2.5.2, Ruby 2.1.0 - Error installing nokogiri - control characters are not allowed | https://api.github.com/repos/sparklemotion/nokogiri/issues/1273/comments | 2 | 2015-04-08T20:40:19Z | 2015-11-23T05:50:41Z | https://github.com/sparklemotion/nokogiri/issues/1273 | 67,215,255 | 1,273 |
[
"sparklemotion",
"nokogiri"
] | Upgrading from Nokogiri 1.5.9 to 1.6.6.2, I have started getting a:
```
NoMethodError: undefined method `match' for #<Nokogiri::XML::Element:0x007fb8c2e66680>
```
I am just beginning debugging to figure out what's going on. But presumably backwards compatibilities weren't expected from 1.5.9 to 1.6.6.2? Does anyone... | nokogiri 1.5 vs 1.6, NoMethodError: undefined method `match' | https://api.github.com/repos/sparklemotion/nokogiri/issues/1272/comments | 1 | 2015-04-07T20:51:57Z | 2015-04-07T20:58:54Z | https://github.com/sparklemotion/nokogiri/issues/1272 | 66,987,814 | 1,272 |
[
"sparklemotion",
"nokogiri"
] | I am trying to run bundle package on Mac os x, and I am getting an error
" An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.6.2'` succeeds before bundling. "
I try gem install nokogiri also gem install nokogiri -v 1.6.6.2
nokogiri not i... | An error occurred while installing nokogiri (1.6.6.2) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1271/comments | 7 | 2015-04-01T20:48:41Z | 2019-06-18T14:50:06Z | https://github.com/sparklemotion/nokogiri/issues/1271 | 65,776,118 | 1,271 |
[
"sparklemotion",
"nokogiri"
] | I start having this problem in my production application and reduced it to the following script: https://gist.github.com/gazay/6275c98062127ac5b947
It reproduced in any linux environment (on mac os x I can't reproduce this fault). I've tried this script on ruby 2.1.5/2.2.0/2.2.1/trunk. Also I've tried it on nokogiri 1... | Segmentation fault from node.replace when using libxml-ruby and nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1270/comments | 3 | 2015-03-25T15:10:36Z | 2016-02-17T02:46:48Z | https://github.com/sparklemotion/nokogiri/issues/1270 | 64,294,260 | 1,270 |
[
"sparklemotion",
"nokogiri"
] | XSD validation of a dateTime with a +14:00 time zone fails with this error:
```
'2012-05-17T19:33:59+14:00' is not a valid value of the atomic type 'xs:dateTime'.
```
The schema definition from here http://www.w3.org/TR/xmlschema11-2/#dateTime says:
```
(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))
```
Using 13:59 a... | XSD validation of dateTime with +14:00 time zone fails | https://api.github.com/repos/sparklemotion/nokogiri/issues/1269/comments | 2 | 2015-03-24T14:40:25Z | 2020-10-12T13:24:41Z | https://github.com/sparklemotion/nokogiri/issues/1269 | 64,013,566 | 1,269 |
[
"sparklemotion",
"nokogiri"
] | I have Windows and will be able to test new builds of Nokogiri.
I believe the problem on this system is the inability for Nokogiri to be compiled. I am not massively experienced with this type of work, but want to learn.
If you need any input etc from Windows x64 users running 2.2.1, I am available.
| Ruby 2.2 Windows | https://api.github.com/repos/sparklemotion/nokogiri/issues/1267/comments | 2 | 2015-03-21T09:33:27Z | 2015-03-23T11:46:43Z | https://github.com/sparklemotion/nokogiri/issues/1267 | 63,382,091 | 1,267 |
[
"sparklemotion",
"nokogiri"
] | Rails 4.2 requires Nokogiri.
Redmine got feedbacks that Redmine 3.0.x (Rails 4.2.x) does not work on MinGW Ruby 2.2.
- http://www.redmine.org/issues/19419
- http://www.redmine.org/boards/2/topics/45380
- http://www.redmine.org/boards/2/topics/45991?r=45999#message-45999
It is too hard to know why Redmine 3.0 does not ... | Nokogiri should refuse to install on MinGW Ruby 2.2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1266/comments | 1 | 2015-03-21T05:24:22Z | 2015-03-21T12:26:22Z | https://github.com/sparklemotion/nokogiri/issues/1266 | 63,363,480 | 1,266 |
[
"sparklemotion",
"nokogiri"
] | I tried to read with `JRUBY` a UTF-8 encoded CSV file and to build an XML file and got the below error:
```
Encoding::UndefinedConversionError: ""\xC3\xA9"" from UTF-8 to US-ASCII
write at org/jruby/ext/stringio/StringIO.java:1140
native_write_to at nokogiri/XmlNode.java:1220
write_to at C:/jrub... | [jruby] Encoding::UndefinedConversionError | https://api.github.com/repos/sparklemotion/nokogiri/issues/1264/comments | 6 | 2015-03-17T15:55:06Z | 2023-01-22T04:18:18Z | https://github.com/sparklemotion/nokogiri/issues/1264 | 62,438,627 | 1,264 |
[
"sparklemotion",
"nokogiri"
] | Method of install:
gem install nokogiri
Output:
ubuntu# gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
```
/usr/bin/ruby2.1 extconf.rb
```
mkmf.rb can't find header files for ruby at /usr/lib/ruby/in... | Can't install nokogiri-1.6.6.2 on Ubuntu 14.10 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1263/comments | 1 | 2015-03-12T23:59:42Z | 2015-03-16T11:17:17Z | https://github.com/sparklemotion/nokogiri/issues/1263 | 60,941,413 | 1,263 |
[
"sparklemotion",
"nokogiri"
] | test case:
```
require 'nokogiri'
doc = Nokogiri::HTML::Document.new()
x1 = Nokogiri::XML::Element.new('a', doc)
x1.set_attribute('id', 'x')
x2 = Nokogiri::XML::Element.new('a', doc)
x2.set_attribute('id', 'x')
```
related: https://github.com/sparklemotion/nokogiri/issues/1208 and https://github.com/sparklemotion/nok... | Still more validity errors | https://api.github.com/repos/sparklemotion/nokogiri/issues/1262/comments | 5 | 2015-03-12T22:39:51Z | 2015-08-05T23:58:59Z | https://github.com/sparklemotion/nokogiri/issues/1262 | 60,924,130 | 1,262 |
[
"sparklemotion",
"nokogiri"
] | I'm seeing a fairly strange discrepancy when parsing an XML document with square brackets in a text node. Here's the XML I'm parsing:
``` xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tmx SYSTEM "tmx14.dtd">
<tmx version="1.4">
<header creationtool="Smartling" creationtoolversion="1.1" srclang="en-US" datatyp... | SAX parsing under JRuby different than MRI when square brackets exist in text | https://api.github.com/repos/sparklemotion/nokogiri/issues/1261/comments | 1 | 2015-03-12T16:38:56Z | 2015-03-21T02:23:41Z | https://github.com/sparklemotion/nokogiri/issues/1261 | 60,849,427 | 1,261 |
[
"sparklemotion",
"nokogiri"
] | judging by the size of the .so files, the 4 dlls are linked in for each ruby version. it would save space if the dlls were linked dynamically and included only once (see mysql2 gem - vendor dir https://rubygems.org/downloads/mysql2-0.3.18-x64-mingw32.gem)
nokogiri.so around 3Mb per ruby version
| nokogiri x64-mingw32 - link dlls dynamically | https://api.github.com/repos/sparklemotion/nokogiri/issues/1260/comments | 5 | 2015-03-09T19:42:16Z | 2017-02-08T11:58:55Z | https://github.com/sparklemotion/nokogiri/issues/1260 | 60,398,303 | 1,260 |
[
"sparklemotion",
"nokogiri"
] | simple test: require 'nokogiri' fails
```
ruby -v n_test.rb
ruby 2.2.2p86 (2015-03-03 revision 49825) [x64-mingw32]
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)
from C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/ru... | nokogiri-1.6.6.2-x64-mingw32 - missing ruby 2.2 so | https://api.github.com/repos/sparklemotion/nokogiri/issues/1259/comments | 15 | 2015-03-09T06:54:52Z | 2015-11-24T16:16:14Z | https://github.com/sparklemotion/nokogiri/issues/1259 | 60,305,508 | 1,259 |
[
"sparklemotion",
"nokogiri"
] | According to `gem_make.out`, a check is made if the C compiler accepts `unused-command-line-argument-hard-error-in-future`. The response is "no", but, according to `mkmf.log`, the option is passed along anyway.
# My environment
- OS X Yosemite 10.10.2
- Ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
- Clan... | Unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future' | https://api.github.com/repos/sparklemotion/nokogiri/issues/1258/comments | 9 | 2015-03-07T05:13:08Z | 2021-02-16T17:04:38Z | https://github.com/sparklemotion/nokogiri/issues/1258 | 60,191,405 | 1,258 |
[
"sparklemotion",
"nokogiri"
] | Hello.
I am trying to install nokogiri on my Machine (OS X 10.9.5) and I can't do it:
```
$ gem install nokogiri -v '1.6.6.2'
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/Users/serj/.rvm/rubies/ruby-2.1.5/bin/ruby -r... | Unrecognized command line option "-Wdivision-by-zero" | https://api.github.com/repos/sparklemotion/nokogiri/issues/1257/comments | 4 | 2015-03-06T18:49:55Z | 2018-06-12T04:20:13Z | https://github.com/sparklemotion/nokogiri/issues/1257 | 60,142,118 | 1,257 |
[
"sparklemotion",
"nokogiri"
] | Currently (1.6.6.2) we only cross-compile for 1.9.3, 2.0.0 and 2.1.3.
| Support Ruby 2.2 on Windows | https://api.github.com/repos/sparklemotion/nokogiri/issues/1256/comments | 210 | 2015-03-02T14:40:52Z | 2015-11-30T09:02:22Z | https://github.com/sparklemotion/nokogiri/issues/1256 | 59,489,351 | 1,256 |
[
"sparklemotion",
"nokogiri"
] | I want to make a basic validation of HTML files using parsing errors from Nokogiri. Some tags are always invalid, so I remove them. But the errors still here after removing the corresponding invalid tag. This code is where I’m stuck.
``` ruby
require "nokogiri"
doc = Nokogiri::HTML "<svg xmlns=http://www.w3.org/2000/... | Errors from removed tags | https://api.github.com/repos/sparklemotion/nokogiri/issues/1255/comments | 1 | 2015-02-25T23:01:12Z | 2015-03-02T14:59:51Z | https://github.com/sparklemotion/nokogiri/issues/1255 | 58,984,783 | 1,255 |
[
"sparklemotion",
"nokogiri"
] | this gives back the control of which jars are loaded when. you can use jbundler or maven or gradle to manage the jars. actually you manage gems and jars almost in the same manner.
it also gives you a chance to work around certain classloader problems when you really need to not delegate the classloading to the parent ... | use jar-dependencies for requiring jars | https://api.github.com/repos/sparklemotion/nokogiri/issues/1253/comments | 20 | 2015-02-21T11:06:02Z | 2022-01-20T04:34:49Z | https://github.com/sparklemotion/nokogiri/issues/1253 | 58,455,570 | 1,253 |
[
"sparklemotion",
"nokogiri"
] | Hello,
I'm having some trouble building libxml2 on CentOS v6.4 (64bit and 32bit).
Here's the output:
```
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/zapotek/arachni-build-dir/arachni/system/usr/bin/ruby -r ./siteconf20150213-17984-14njlzv.rb extconf.rb
checking if the C compiler ac... | 1.6.6.2 fails to build libxml2 on CentOS v6.4 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1250/comments | 14 | 2015-02-21T01:59:33Z | 2016-08-12T15:00:26Z | https://github.com/sparklemotion/nokogiri/issues/1250 | 58,435,062 | 1,250 |
[
"sparklemotion",
"nokogiri"
] | example 12370775f69af2709dabc7ff016db8282b1e9fbe . Test fails.
| External function defined in included module not called | https://api.github.com/repos/sparklemotion/nokogiri/issues/1248/comments | 1 | 2015-02-20T10:44:21Z | 2015-02-20T11:35:21Z | https://github.com/sparklemotion/nokogiri/issues/1248 | 58,335,176 | 1,248 |
[
"sparklemotion",
"nokogiri"
] | See https://gist.github.com/ccutrer/f49cee7ebcd8a62e2e9e
it works correctly under MRI 2.2, but not under `jruby 1.7.12 (1.9.3p392) 2014-04-15 643e292 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_20-b26 +indy [darwin-x86_64]`
The result is simply an empty array.
| jruby: namespaces defined elsewhere cannot be added again | https://api.github.com/repos/sparklemotion/nokogiri/issues/1247/comments | 2 | 2015-02-19T23:29:45Z | 2022-05-11T19:49:27Z | https://github.com/sparklemotion/nokogiri/issues/1247 | 58,287,694 | 1,247 |
[
"sparklemotion",
"nokogiri"
] | I am getting this with sudo gem install nokogiri -v '1.6.4.1'
```
cat /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/nokogiri-1.6.4.1/gem_make.out
/usr/bin/ruby2.1 extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
*** extconf.rb failed ***
Could not create Makefile du... | Cannot build in Ubuntu 15.04 development version | https://api.github.com/repos/sparklemotion/nokogiri/issues/1244/comments | 2 | 2015-02-18T18:35:02Z | 2021-02-16T17:04:38Z | https://github.com/sparklemotion/nokogiri/issues/1244 | 58,108,366 | 1,244 |
[
"sparklemotion",
"nokogiri"
] | HTML5 allows the integration of SVG and MathML and this seems to be unsupported by Nokogiri:
``` Ruby
require 'nokogiri'
html = <<-EOXML
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<a title="RSS" href="/feed.xml">
<svg class="icon icon-rss" xmlns="http://www.w3.org/2000/svg" v... | How to ensure well-formed HTML5? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1243/comments | 1 | 2015-02-16T00:24:22Z | 2021-04-29T07:35:42Z | https://github.com/sparklemotion/nokogiri/issues/1243 | 57,753,802 | 1,243 |
[
"sparklemotion",
"nokogiri"
] | I have installed Nokogiri Gem 1.6.6.2 but when I try to do vagrant plugin install vagrant-aws it is keep telling me that "An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.6.2'` succeeds before bundling."
But when I do gem list I can see tha... | Make sure that `gem install nokogiri -v '1.6.6.2'` succeeds before bundling. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1242/comments | 1 | 2015-02-13T11:56:00Z | 2015-03-02T14:42:58Z | https://github.com/sparklemotion/nokogiri/issues/1242 | 57,590,623 | 1,242 |
[
"sparklemotion",
"nokogiri"
] | In e7c47565323ddcc08355fa1aa62432a9881ca706, you check whether `zlib.h` is present while no native code inside `ext/` includes this header.
This for instance requires package `zlib1g-dev` to be installed on Debian (likely Ubuntu as well) while it seems only `zlib1g` (the actual library) is needed.
| Are zlib development support files really required? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1241/comments | 3 | 2015-02-11T15:59:07Z | 2021-02-16T17:04:38Z | https://github.com/sparklemotion/nokogiri/issues/1241 | 57,335,018 | 1,241 |
[
"sparklemotion",
"nokogiri"
] | Reproducing :
```
2.0.0-p247 :042 > a = "<p>\000<b>plop<b/><p>"
=> "<p>\x00<b>plop<b/><p>"
2.0.0-p247 :043 > Nokogiri::HTML(a).search("//b")
=> []
```
And there is no parse errors :
```
2.0.0-p247 :047 > Nokogiri::HTML(a).errors
=> []
```
It halt when the NUL is hit :
```
2.0.0-p247 :045 > Nokogiri::HTML(a) ... | Parser halt when there is a NUL char in the parsed string | https://api.github.com/repos/sparklemotion/nokogiri/issues/1240/comments | 4 | 2015-02-04T17:41:31Z | 2018-03-01T07:41:27Z | https://github.com/sparklemotion/nokogiri/issues/1240 | 56,561,121 | 1,240 |
[
"sparklemotion",
"nokogiri"
] | Hello,
AFAIK the `p`-tags are `inline` elements (see http://www.w3.org/TR/html4/sgml/dtd.html).
But when checking this using Nokogiri it says they are `block` elements:
``` ruby
Nokogiri::HTML('<p></p>').css('p').first.description.inline?
# => false
```
Any idea why? Thanks!
Kind regards.
Kostia
| p-elements stated to be "block" | https://api.github.com/repos/sparklemotion/nokogiri/issues/1239/comments | 1 | 2015-02-02T10:27:11Z | 2015-02-02T15:08:24Z | https://github.com/sparklemotion/nokogiri/issues/1239 | 56,218,928 | 1,239 |
[
"sparklemotion",
"nokogiri"
] | Originally reported on the `nokogiri-talk` mailing list:
> https://groups.google.com/d/msg/nokogiri-talk/Kl8E_RjBf8w/0zIw9IuiBGIJ
I've rewritten the original example slightly:
``` ruby
require "nokogiri"
require "pp"
doc1 = Nokogiri::HTML('<p></p>')
doc2 = Nokogiri::HTML('<p></p>')
ent = Nokogiri::XML::EntityRefer... | Segmentation fault inspecting some entities | https://api.github.com/repos/sparklemotion/nokogiri/issues/1238/comments | 9 | 2015-02-01T19:32:18Z | 2020-02-02T18:51:05Z | https://github.com/sparklemotion/nokogiri/issues/1238 | 56,174,677 | 1,238 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri segfaults on my system. I have cross-tested nokogiri versions 1.6.6.2, 1.6.6.1, 1.6.5 and 1.6.4.1 with Ruby 1.9.3-p547, 2.0.0-p576 and 2.1.3.
The crash happens right after requiring nokogiri.
I have created https://gist.github.com/cassianoleal/bdf508d12f01a899ec6a with the stack trace and the crash report fo... | Segfault on OS X 10.10.2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1237/comments | 8 | 2015-01-27T12:02:23Z | 2020-02-02T18:51:04Z | https://github.com/sparklemotion/nokogiri/issues/1237 | 55,609,358 | 1,237 |
[
"sparklemotion",
"nokogiri"
] | I got the "libxml2 is missing" error on Ubuntu (12) while installing, and followed the troubleshooter (sudo apt-get install zlib1g-dev), but it wasn't resolved.
Found this one http://stackoverflow.com/questions/6277456/nokogiri-installation-fails-libxml2-is-missing which suggested "sudo apt-get install libxslt-dev lib... | libxml2 failed - new fix hint (website) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1236/comments | 2 | 2015-01-26T14:17:49Z | 2015-01-26T15:25:45Z | https://github.com/sparklemotion/nokogiri/issues/1236 | 55,486,783 | 1,236 |
[
"sparklemotion",
"nokogiri"
] | I have tried everything I can think of and find to get this installed but no luck!
Command being run is:
`gem install nokogiri`
Error:
```
Extracting libxml2-2.9.2.tar.gz into tmp/x86_64-apple-darwin14/ports/libxml2/2.9.2... OK`
Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/... | OSX 10.10.2 installation problem (1.6.6.2) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1235/comments | 21 | 2015-01-26T13:13:15Z | 2021-02-16T17:04:37Z | https://github.com/sparklemotion/nokogiri/issues/1235 | 55,480,698 | 1,235 |
[
"sparklemotion",
"nokogiri"
] | The sad story again. I have Nokogiri 1.6.5 on my Ubuntu 14.10 installed. If I try to `bundle install` that gemfile:
``` ruby
gem "nokogiri", "~>1.6"
```
Bundler tries to install 1.6.6.2 and fails.
```
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
checking if th... | Can’t build 1.6.6.2 on Ubuntu 14.10 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1234/comments | 8 | 2015-01-25T20:27:46Z | 2015-03-16T11:27:01Z | https://github.com/sparklemotion/nokogiri/issues/1234 | 55,428,847 | 1,234 |
[
"sparklemotion",
"nokogiri"
] | Hello,
I am doing a search on document fragment:
``` ruby
# https://github.com/jch/html-pipeline/blob/master/lib/html/pipeline/emoji_filter.rb#L18
doc.search('text()').each do |node|
...
end
```
When I upgrade nokogiri to 1.6.6.1+, one of the [Error messages](https://travis-ci.org/jch/html-pipeline/jobs/48210303):... | Nokogiri::XML::XPath::SyntaxError: Invalid expression: .//child::text() | self::child::text() | https://api.github.com/repos/sparklemotion/nokogiri/issues/1233/comments | 7 | 2015-01-25T02:16:44Z | 2024-07-02T19:10:49Z | https://github.com/sparklemotion/nokogiri/issues/1233 | 55,392,582 | 1,233 |
[
"sparklemotion",
"nokogiri"
] | ```
➔ uname -a
Darwin johns-MBP 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
➔ rbenv version
2.1.5 (set by /Users/john/.rbenv/version)
➔ gem install nokogiri -v '1.6.6.1'
Fetching: nokogiri-1.6.6.1.gem (100%)
Building native extensions. This could take a... | OSX install problem (1.6.5, 1.6.6.2) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1231/comments | 44 | 2015-01-22T22:39:34Z | 2015-11-29T20:14:35Z | https://github.com/sparklemotion/nokogiri/issues/1231 | 55,219,560 | 1,231 |
[
"sparklemotion",
"nokogiri"
] | 1.6.5 is fine, this is new behavior in 1.6.6.1. And yes, I know this version of Ruby is ancient and probably unsupported. :-)
```
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/cquinn/.rvm/rubies/ruby-1.9.3-p547/bin/ruby -r ./siteconf20150122-30107-10e8dej.rb extconf.rb
checking if the ... | Nokogiri 1.6.6.1 won't build under Ruby 1.9.3p547 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1230/comments | 7 | 2015-01-22T22:29:56Z | 2015-01-23T18:54:26Z | https://github.com/sparklemotion/nokogiri/issues/1230 | 55,218,514 | 1,230 |
[
"sparklemotion",
"nokogiri"
] | The weirdness continues with Nokogiri's implementation of `XML::SyntaxError#to_s` under 9.0.0.0.pre1.
Travis fail here:
> https://travis-ci.org/sparklemotion/nokogiri/jobs/47784569#L276
This appears to be the _only_ thing that breaks under JRuby 9000. W00t.
| JRuby 9000 support | https://api.github.com/repos/sparklemotion/nokogiri/issues/1228/comments | 3 | 2015-01-21T14:54:53Z | 2015-01-21T18:19:51Z | https://github.com/sparklemotion/nokogiri/issues/1228 | 55,028,623 | 1,228 |
[
"sparklemotion",
"nokogiri"
] | Ruby 1.9.2 was EOLed in July 2014.
This ticket is proposing ending support for 1.9.2 in Nokogiri 1.7.0; but continuing support for the lifetime of 1.6.x.
Things we'll need to update:
- [x] gemspec declaration (in the Hoe spec in the Rakefile)
- [x] .travis.yml
- [x] test_all
- [x] add note to CHANGELOGs
- re... | Deprecate Ruby 1.9.2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1227/comments | 0 | 2015-01-20T17:46:46Z | 2017-02-10T08:56:04Z | https://github.com/sparklemotion/nokogiri/issues/1227 | 54,915,371 | 1,227 |
[
"sparklemotion",
"nokogiri"
] | ~$ gem install nokogiri
ERROR: Error installing nokogiri:
invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in /home/yipl/.rvm/gems/ruby-2.2.0/cache/nokogiri-1.6.5.gem
| undefined method 'size' for nil:NilClass | https://api.github.com/repos/sparklemotion/nokogiri/issues/1226/comments | 7 | 2015-01-20T08:15:28Z | 2019-04-18T14:23:32Z | https://github.com/sparklemotion/nokogiri/issues/1226 | 54,854,751 | 1,226 |
[
"sparklemotion",
"nokogiri"
] | Is there any work in progress that I should wait for inclusion in 1.6.6? Here's a checklist of things I know about and that we should address:
- [x] Find the commit at which we broke 1.9.2 support (#1207)
- [x] If we can fix 1.9.2 support easily, fix it
- [-] else note this breakage in the gemspec and CHANGELOG, an... | Cut 1.6.6 release | https://api.github.com/repos/sparklemotion/nokogiri/issues/1225/comments | 1 | 2015-01-19T20:13:58Z | 2015-01-22T19:13:48Z | https://github.com/sparklemotion/nokogiri/issues/1225 | 54,807,205 | 1,225 |
[
"sparklemotion",
"nokogiri"
] | Consider the following script:
``` ruby
require 'nokogiri'
document = Nokogiri::XML('<a></a>')
a_node = document.at('a')
p Nokogiri::XML::Comment.new(a_node, 'foo')
```
On MRI this segfaults the process, on JRuby this appears to work fine:
```
#<Nokogiri::XML::Comment:0x9fe "foo">
```
I'm not sure if the usage... | Creating instance of XML::Comment with an element segfaults MRI but works fine on JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1224/comments | 2 | 2015-01-19T13:12:33Z | 2015-01-19T20:09:14Z | https://github.com/sparklemotion/nokogiri/issues/1224 | 54,761,911 | 1,224 |
[
"sparklemotion",
"nokogiri"
] | With MRI 2.1.5, line numbers are correctly reported. With any recent version of JRuby, they aren't:
```
$> rbenv local ruby-2.1.5
$> bundle console
irb> require 'nokogiri'
irb> puts Gem.loaded_specs['nokogiri'].version
1.6.5
irb> doc = Nokogiri::XML('<root><foo>bar</foo>\n\n<foo>baz</foo></root>')
irb> root = doc.xpat... | Node#line heuristic under JRuby is hacky and should be smarter | https://api.github.com/repos/sparklemotion/nokogiri/issues/1223/comments | 6 | 2015-01-16T21:48:14Z | 2021-01-19T13:03:07Z | https://github.com/sparklemotion/nokogiri/issues/1223 | 54,629,134 | 1,223 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.