issue_owner_repo listlengths 2 2 | issue_body stringlengths 0 262k ⌀ | issue_title stringlengths 1 1.02k | issue_comments_url stringlengths 53 116 | issue_comments_count int64 0 2.49k | issue_created_at stringdate 1999-03-17 02:06:42 2025-06-23 11:41:49 | issue_updated_at stringdate 2000-02-10 06:43:57 2025-06-23 11:43:00 | issue_html_url stringlengths 34 97 | issue_github_id int64 132 3.17B | issue_number int64 1 215k |
|---|---|---|---|---|---|---|---|---|---|
[
"sparklemotion",
"nokogiri"
] | I need to build a xml with a 'display' tag but for some reason it fails with the following message:
`nokogiri_test.rb:3:in 'display': undefined method 'write' for {:test=>"test"}:Hash (NoMethodError)`
The script I use is as follows:
`require 'nokogiri'`
`build = Nokogiri::XML::Builder.new do |xml|`
`xml.display(t... | Can't create 'display' tag with Nokogiri::XML::Builder | https://api.github.com/repos/sparklemotion/nokogiri/issues/1222/comments | 1 | 2015-01-15T16:48:52Z | 2015-01-16T05:10:03Z | https://github.com/sparklemotion/nokogiri/issues/1222 | 54,472,710 | 1,222 |
[
"sparklemotion",
"nokogiri"
] | ## Proposed behavior change
As discussed in #936, I'd like Nokogiri to only use the bundled versions of libxml2/libxslt if the system versions:
1. either don't exist,
2. or they exist, but are of **unsupported** or **known-worse** vintage than the bundled libraries.
**unsupported** vintage would be a new minor releas... | RFC: Nokogiri should use system libraries by default if they are of acceptable vintage | https://api.github.com/repos/sparklemotion/nokogiri/issues/1220/comments | 20 | 2015-01-13T17:35:23Z | 2023-01-16T22:09:51Z | https://github.com/sparklemotion/nokogiri/issues/1220 | 54,222,798 | 1,220 |
[
"sparklemotion",
"nokogiri"
] | installed linux distro: Amazon Linux AMI 2014.09.1
IMPORTANT NOTICE:
Buidling Nokogiri with a packaged version of libxml2-2.9.2
with the following patches applied:
- 0001-Revert-Missing-initialization-for-the-catalog-module.patch
- 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
Team Nokogiri will keep on do... | Build issue when installing gem | https://api.github.com/repos/sparklemotion/nokogiri/issues/1219/comments | 1 | 2015-01-13T11:10:40Z | 2015-01-13T14:03:29Z | https://github.com/sparklemotion/nokogiri/issues/1219 | 54,179,384 | 1,219 |
[
"sparklemotion",
"nokogiri"
] | ```
source = Nokogiri::XML(File.read monograph_filename)
xsl = Nokogiri::XSLT(File.read 'ipm.xsl' )
transformed = xsl.transform(source)
```
The last line throws a runtime error because the xls file contains a message
```
<xsl:otherwise>
<xsl:message>Warning: Class not handled: <xsl:value-of select="$vDiv"/></xsl... | XSL message in a XSLT transform throws a RuntimeError | https://api.github.com/repos/sparklemotion/nokogiri/issues/1217/comments | 13 | 2015-01-07T15:00:57Z | 2024-12-16T17:21:16Z | https://github.com/sparklemotion/nokogiri/issues/1217 | 53,640,621 | 1,217 |
[
"sparklemotion",
"nokogiri"
] | See https://github.com/jruby/jruby/issues/2089
| HTML::DocumentFragment - invalid encoding on windows&jruby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1216/comments | 4 | 2014-12-30T17:40:29Z | 2023-01-22T04:15:59Z | https://github.com/sparklemotion/nokogiri/issues/1216 | 53,132,504 | 1,216 |
[
"sparklemotion",
"nokogiri"
] | So I've noticed that whenever I set xml:lang, lang is also set in the to_xhtml output. Example:
```
2.0.0-p247 :002 > require 'nokogiri' ; document = Nokogiri::XML::Document.new ; test = Nokogiri::XML::Node.new( 'test', document ) ; test['xml:lang'] = 'en' ; document.children = test ; puts document.to_xhtml
<test... | Need to not have both lang and xml:lang | https://api.github.com/repos/sparklemotion/nokogiri/issues/1215/comments | 2 | 2014-12-30T02:08:25Z | 2014-12-31T05:04:18Z | https://github.com/sparklemotion/nokogiri/issues/1215 | 53,087,728 | 1,215 |
[
"sparklemotion",
"nokogiri"
] | Some developers have had issues when installing Nokogiri because it depends on libiconv, which doesn't ship with OS X Yosemite. I do know we have /usr/lib/libiconv.dylib, but I can't find header files.
I faced issues before Rails 4.2 release while trying to install nokogiri.
We at Tokaido would like to make developer... | Rails 4.2 installation issues with Nokogiri on OS X | https://api.github.com/repos/sparklemotion/nokogiri/issues/1214/comments | 13 | 2014-12-23T00:26:03Z | 2015-11-25T00:37:46Z | https://github.com/sparklemotion/nokogiri/issues/1214 | 52,703,217 | 1,214 |
[
"sparklemotion",
"nokogiri"
] | I don't know if anyone else is having this issue but I do currently use Chef for system stuff. It use to compile on the previous version but for some reason this version is not installing.
**compile.log:**
```
make all-recursive
make[1]: Entering directory `/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.5... | When missing zlib, extconf.rb should emit a better message. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1213/comments | 5 | 2014-12-22T22:42:38Z | 2016-08-05T08:38:06Z | https://github.com/sparklemotion/nokogiri/issues/1213 | 52,696,471 | 1,213 |
[
"sparklemotion",
"nokogiri"
] | I have brew, ruby and libiconv installed, but I cannot install nokogiri.
#
uilding native extensions with: '--use-system-libraries'
This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
```
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby e... | Install nokogiri error | https://api.github.com/repos/sparklemotion/nokogiri/issues/1211/comments | 0 | 2014-12-20T18:21:44Z | 2014-12-21T03:20:04Z | https://github.com/sparklemotion/nokogiri/issues/1211 | 52,572,263 | 1,211 |
[
"sparklemotion",
"nokogiri"
] | Hey,
I recently followed this guide to get my brand new MacBook set up in the same way as my Ubuntu box, but switching to chruby instead of rvm:
http://andycroll.com/mac/ruby/the-simplest-possible-serious-ruby-on-rails-setup-on-mavericks/
So my environment should be pretty clean.
However when trying to 'bundle inst... | Issues installing Nokogiri 1.6.5 on OS X Yosemite (10.10.1) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1210/comments | 16 | 2014-12-17T15:37:03Z | 2021-02-16T17:04:37Z | https://github.com/sparklemotion/nokogiri/issues/1210 | 52,253,722 | 1,210 |
[
"sparklemotion",
"nokogiri"
] | Hi There,
I've upgraded nokogiri version and now I got a lot of validity errors like these:
element a: validity error : ID convocation_hall already defined
element a: validity error : ID French_Language_Service already defined
element a: validity error : ID Information%20on%20lawyers%20or%20paralegals already defined... | A lot of validity errors after upgrading from 1.6.3.1 to 1.6.5 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1208/comments | 7 | 2014-12-16T11:55:39Z | 2021-02-16T17:04:37Z | https://github.com/sparklemotion/nokogiri/issues/1208 | 52,104,083 | 1,208 |
[
"sparklemotion",
"nokogiri"
] | The issue is on line 77 of extconf.rb:
https://github.com/sparklemotion/nokogiri/blob/master/ext/nokogiri/extconf.rb#L77
```
if try_compile("int main() {return 0;}", '', werror: true)
```
"try_compile" takes two arguments and a block:
```
def try_compile(src, opt="", &b)
try_do(src, cc_command(opt), &b)
ensure
... | Support is broken for Ruby 1.9.2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1207/comments | 10 | 2014-12-11T22:54:27Z | 2015-01-20T19:22:46Z | https://github.com/sparklemotion/nokogiri/issues/1207 | 51,749,557 | 1,207 |
[
"sparklemotion",
"nokogiri"
] | Despite saying that it's using a special bundled libxml2, the process fails to find it. Here is the interesting excerpt from `~/.rvm/gems/ruby-2.1.2@my_service/extensions/x86_64-darwin-13/2.1.0-static/nokogiri-1.6.5/mkmf.log`. Suspicious lines (there is no "travis" user on my system):
```
ld: warning: directory not fo... | Compile issue on OS X Mavericks 10.9.5 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1206/comments | 58 | 2014-12-08T22:37:47Z | 2015-10-29T03:31:40Z | https://github.com/sparklemotion/nokogiri/issues/1206 | 51,362,569 | 1,206 |
[
"sparklemotion",
"nokogiri"
] | Hi there!
I just discovered an odd bit of behaviour for `HTML::DocumentFragment`s. If I try to select elements in the fragment using the `#at` or `#search` methods with CSS selectors, no elements are matched. If I use the `#css` method, however, I do get elements back.
Here's a script to demonstrate the problem:
```... | DocumentFragment#search and #at don't handle CSS selectors properly | https://api.github.com/repos/sparklemotion/nokogiri/issues/1205/comments | 5 | 2014-12-07T00:33:18Z | 2014-12-30T22:48:23Z | https://github.com/sparklemotion/nokogiri/issues/1205 | 51,202,353 | 1,205 |
[
"sparklemotion",
"nokogiri"
] | Running Linux Mint 16, I was getting a compile error (sorry I was an idiot and didn't save the error before I fixed it). The log was alluding to `lzma` being missing.
I was attempting to install per the instructions here: http://www.nokogiri.org/tutorials/installing_nokogiri.html. I needed to install `liblzma-dev` bef... | 1.6.5 compile issue on Linux Mint | https://api.github.com/repos/sparklemotion/nokogiri/issues/1204/comments | 3 | 2014-12-04T02:34:29Z | 2016-08-05T08:38:00Z | https://github.com/sparklemotion/nokogiri/issues/1204 | 50,921,635 | 1,204 |
[
"sparklemotion",
"nokogiri"
] | ```
ERROR: Error installing nokogiri:
invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in /home/daudi/.rvm/gems/ruby-2.1.3@projectspace/cache/nokogiri-1.6.5.gem
```
| nokogiri 1.6.5 won't install | https://api.github.com/repos/sparklemotion/nokogiri/issues/1203/comments | 2 | 2014-12-02T01:45:37Z | 2015-08-18T19:20:49Z | https://github.com/sparklemotion/nokogiri/issues/1203 | 50,602,821 | 1,203 |
[
"sparklemotion",
"nokogiri"
] | I'm getting the following error while building 1.6.4.1 on Mac OS X 10.9.5 Xcode 6.1 with Ruby 2.1.3, 2.1.4, 2.1.5.
```
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/nvick/.rbenv/versions/2.1.4/bin/ruby extconf.rb --use-system-libraries:false
checking if the C compiler accepts ... yes
c... | Compiling issues with Nokogiri 1.6.4 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1202/comments | 22 | 2014-12-01T15:34:20Z | 2014-12-22T14:32:53Z | https://github.com/sparklemotion/nokogiri/issues/1202 | 50,536,786 | 1,202 |
[
"sparklemotion",
"nokogiri"
] | Guys, you forgot to tag yesterday's release :)
| 1.6.5 tag missing | https://api.github.com/repos/sparklemotion/nokogiri/issues/1201/comments | 2 | 2014-11-27T10:45:21Z | 2014-12-03T00:09:31Z | https://github.com/sparklemotion/nokogiri/issues/1201 | 50,277,645 | 1,201 |
[
"sparklemotion",
"nokogiri"
] | Not all the namespaces referenced inside a XML node are carried over by `Node#add_child`.
Reproducible testcase: https://gist.github.com/gioele/2c88ac73f4f28f79fbc6#file-add_child_ns-rb
Output:
```
== Original document
<?xml version="1.0"?>
<wrapper xmlns="ns" xmlns:extra="extra">
<record xml:id="r1">
<... | Namespace behavior during reparenting should match XSLT's `copy-of` semantics | https://api.github.com/repos/sparklemotion/nokogiri/issues/1200/comments | 19 | 2014-11-25T18:49:30Z | 2024-07-02T19:03:59Z | https://github.com/sparklemotion/nokogiri/issues/1200 | 50,068,218 | 1,200 |
[
"sparklemotion",
"nokogiri"
] | Quick facts:
- OS: OS X Yosemite
- I do not have libxml or libxslt installed/linked using Homebrew
- I do have libiconv installed/linked using Homebrew
- I have Bundler set to use the libiconv provided by Homebrew (using `bundle config build.nokogiri --with-iconv-dir=/usr/local/opt/libiconv`) because otherwise Nokogiri... | libxml check fails b/c libiconv is not getting included in list of linked libs | https://api.github.com/repos/sparklemotion/nokogiri/issues/1199/comments | 2 | 2014-11-25T11:56:28Z | 2014-12-03T08:03:07Z | https://github.com/sparklemotion/nokogiri/issues/1199 | 50,016,606 | 1,199 |
[
"sparklemotion",
"nokogiri"
] | I've just encountered a segfault caused in my opinion by nokogiri gem. I had the following code (broken as `el` is a `#<Nokogiri::XML::Element:0x00000002243d10>`)
```
new_link = Nokogiri::XML::Node.new("a", el)
```
Fragment of the stdout:
```
lurk.rb:223: [BUG] Segmentation fault at 0x00000000000000
ruby 2.1.1p76 (2... | [BUG] Segmentation fault at 0x00000000000000 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1197/comments | 2 | 2014-11-21T16:33:24Z | 2020-02-02T18:51:04Z | https://github.com/sparklemotion/nokogiri/issues/1197 | 49,718,172 | 1,197 |
[
"sparklemotion",
"nokogiri"
] | If you need the background, check https://github.com/flavorjones/loofah/issues/79.
Here is a demo:
```
irb(main):039:0> Nokogiri::HTML("<i id=a></i><i id=a></i>").text
=> ""
irb(main):040:0> Nokogiri::HTML("<i id=a></i><i id=a></i>").dup.text
element i: validity error : ID a already defined
=> ""
```
So the object c... | Object created by #dup puts `validity error` to the console. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1196/comments | 23 | 2014-11-21T03:50:10Z | 2015-03-11T22:50:36Z | https://github.com/sparklemotion/nokogiri/issues/1196 | 49,651,505 | 1,196 |
[
"sparklemotion",
"nokogiri"
] | hi, I'm using torquebox proxy for my maven builds and a couple gems depend on 1.4.4.1 but the java version of this is not available. I see in prior releases there are usually all types per version but for this particular version, 1.4.4.1, it is:
1.4.4.2 - December 1, 2010 java (1.97 MB)
1.4.4.1 - November 17, 2010 x86-... | nokogiri 1.4.4.1 java not available, at 1.4.4.2, need 1.4.4.1 for maven | https://api.github.com/repos/sparklemotion/nokogiri/issues/1195/comments | 3 | 2014-11-20T16:40:36Z | 2014-11-25T20:18:27Z | https://github.com/sparklemotion/nokogiri/issues/1195 | 49,580,517 | 1,195 |
[
"sparklemotion",
"nokogiri"
] | I have upgraded my Mac to use Yosemite and my app uses ree-1.8.7-2012.02. The bundler tries to install the version 1.5.0 & fails by saying "libxml2 is missing". I have already tried updating the libxml2, libxslt and libiconv formulas but the error still persists. What can I do to install this gem? Thanks
Update:
I tr... | Yosemite installation issue | https://api.github.com/repos/sparklemotion/nokogiri/issues/1194/comments | 1 | 2014-11-19T17:41:43Z | 2014-11-25T20:13:24Z | https://github.com/sparklemotion/nokogiri/issues/1194 | 49,428,158 | 1,194 |
[
"sparklemotion",
"nokogiri"
] | OS: Ubuntu 14.04
Ruby: 2.1.3
Nokogiri: 1.6.4.1
My crawler is running in the background on sidekiq. One of the sidekiq processes hangs consuming 95% cpu usage and like 3gig.
I know these problems are super difficult to debug, but if anyone has any insight that'd be great.
gdb reveals that the problem is with Nokogiri... | Nokogiri Dynamic Hang on document.rb:124:in read_memory (Ubuntu 14.04) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1192/comments | 5 | 2014-11-09T17:49:31Z | 2014-12-31T06:51:33Z | https://github.com/sparklemotion/nokogiri/issues/1192 | 48,207,930 | 1,192 |
[
"sparklemotion",
"nokogiri"
] | We should have done this a long time ago.
| Publish a "vulnerability reporting" process | https://api.github.com/repos/sparklemotion/nokogiri/issues/1191/comments | 18 | 2014-11-09T06:05:13Z | 2018-03-15T21:29:06Z | https://github.com/sparklemotion/nokogiri/issues/1191 | 48,192,242 | 1,191 |
[
"sparklemotion",
"nokogiri"
] | Something still isn't correct in your build tooling for windows as I get the following failure when building on a win8.1 64bit with mri 2.1.5 32bit using a 32bit mingw-w64 4.9.2 compiler.
I know zlib easily builds on windows using the mingw-w64 toolchains because I do it all the time with [helpers like this](https://g... | support for Windows native builds | https://api.github.com/repos/sparklemotion/nokogiri/issues/1190/comments | 43 | 2014-11-07T21:19:11Z | 2015-10-09T18:00:33Z | https://github.com/sparklemotion/nokogiri/issues/1190 | 48,131,736 | 1,190 |
[
"sparklemotion",
"nokogiri"
] | The C and Java implementations for XMLDocument canonicalize are different on how they handle the inclusive_namespaces parameter.
In Java see [lines 584-591 in XMLDocument.java](https://github.com/sparklemotion/nokogiri/blob/dc8dde99ea405df46eafc655c137970f0a6e3295/ext/java/nokogiri/XmlDocument.java#L584-L591).
They ta... | JRuby document.canonicalize inclusive_namespaces param needs fix. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1189/comments | 4 | 2014-11-07T20:11:40Z | 2014-11-25T22:46:11Z | https://github.com/sparklemotion/nokogiri/issues/1189 | 48,125,466 | 1,189 |
[
"sparklemotion",
"nokogiri"
] | Hi there,
We had to rollback to nokogiri 1.6.3.1 with libxml2 (2.9.0 instead of 2.9.2).
Log incoming.
Ubuntu 12.04 LTS
| Nokogiri 1.6.4 won't compile | https://api.github.com/repos/sparklemotion/nokogiri/issues/1188/comments | 50 | 2014-11-06T00:03:28Z | 2016-02-17T13:43:14Z | https://github.com/sparklemotion/nokogiri/issues/1188 | 47,906,515 | 1,188 |
[
"sparklemotion",
"nokogiri"
] | This code:
```
Nokogiri::CSS.xpath_for(':nth-of-type(n)')
```
Produces the following XPath:
```
//*[position() = n]
```
This is incorrect and will result in an empty node set being returned when used to query a document. Instead the XPath should be `//*[position() >= 1]` as `nth-of-type(n)` simply returns all nodes... | :nth-of-type(n) produces incorrect XPath | https://api.github.com/repos/sparklemotion/nokogiri/issues/1187/comments | 9 | 2014-11-02T17:32:25Z | 2014-11-05T15:55:10Z | https://github.com/sparklemotion/nokogiri/issues/1187 | 47,542,682 | 1,187 |
[
"sparklemotion",
"nokogiri"
] | Hi! If I install nokogiri command `gem install nokogiri` then I get the error:
```
ERROR: Error installing nokogiri:
The 'nokogiri' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at ... | Installation problems nokogiri on Windows | https://api.github.com/repos/sparklemotion/nokogiri/issues/1186/comments | 3 | 2014-10-31T19:58:26Z | 2014-11-07T00:33:47Z | https://github.com/sparklemotion/nokogiri/issues/1186 | 47,438,095 | 1,186 |
[
"sparklemotion",
"nokogiri"
] | How many end-developers truly care about how Nokogiri is connected internally that it warrants printing out this message every time its installed? It always catches my attention because at first it seems like a block of error notes printed out by bundler. Could this just be included in the REAMDE for the gem instead?
... | libxslt messages are noisy | https://api.github.com/repos/sparklemotion/nokogiri/issues/1185/comments | 1 | 2014-10-30T14:02:57Z | 2014-10-30T14:10:59Z | https://github.com/sparklemotion/nokogiri/issues/1185 | 47,272,939 | 1,185 |
[
"sparklemotion",
"nokogiri"
] | Hi,
I'm trying to install nokogiri 1.6.2.1 on Red Hat
```
Linux version 2.6.32-431.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Nov 22 03:15:09 UTC 2013)
```
with ruby 2.1.2 and I'm getting
```
Building nokogiri using packaged libraries. ... | Problem with ruby 2.1.2 and nokogiri 1.6.2.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1184/comments | 4 | 2014-10-30T08:22:25Z | 2015-09-18T21:14:12Z | https://github.com/sparklemotion/nokogiri/issues/1184 | 47,243,562 | 1,184 |
[
"sparklemotion",
"nokogiri"
] | Hi there. I'm having an issue which _may_ be purely around GitLab installation (https://github.com/WebEntity/Installation-guide-for-GitLab-on-OS-X/issues/28) but looks nearly exactly like what's on the primary nokogiri installation page, i.e.:
```
...
Using fog-brightbox 0.0.1
Using mini_portile 0.6.0
Building nokogir... | OT? Nokogiri installation on 10.10 issues with libiconv | https://api.github.com/repos/sparklemotion/nokogiri/issues/1183/comments | 3 | 2014-10-29T10:22:41Z | 2014-10-29T23:21:39Z | https://github.com/sparklemotion/nokogiri/issues/1183 | 47,131,119 | 1,183 |
[
"sparklemotion",
"nokogiri"
] | Are `nokogiri` gems affected by CVE-2014-3660?
| libxml2's CVE-2014-3660 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1181/comments | 1 | 2014-10-28T14:23:40Z | 2014-11-05T05:33:23Z | https://github.com/sparklemotion/nokogiri/issues/1181 | 47,031,614 | 1,181 |
[
"sparklemotion",
"nokogiri"
] | I'm using a library that generates odt files - [odf-report](https://github.com/sandrods/odf-report) that utilizes nokogiri to search, replace and generate ODF files.
`Nokogiri::XML::XPath::SyntaxError at /some/path
.//text:section[@text:name='categorylevel1']
`
Traceback (innermost first)
`nokogiri/XmlXpathContext.... | SyntaxError when evaluating / compiling XPath | https://api.github.com/repos/sparklemotion/nokogiri/issues/1180/comments | 17 | 2014-10-25T10:42:58Z | 2015-03-18T14:58:01Z | https://github.com/sparklemotion/nokogiri/issues/1180 | 46,808,620 | 1,180 |
[
"sparklemotion",
"nokogiri"
] | ```
/usr/local/bin/ruby21 extconf.rb
Building nokogiri using packaged libraries.
-----
libiconv is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessar... | Build fails on OpenBSD | https://api.github.com/repos/sparklemotion/nokogiri/issues/1179/comments | 6 | 2014-10-22T23:57:12Z | 2021-02-16T17:04:37Z | https://github.com/sparklemotion/nokogiri/issues/1179 | 46,574,836 | 1,179 |
[
"sparklemotion",
"nokogiri"
] | The webpage I'm parsing using gb2312 charset:
http://sme.hit.edu.cn/news/main.asp?cataid=A00010004&keyword=&pageno=9
I want to extract table from this webpage, so I use search method:`//*[@id="container"]/table/tr/td[2]/table/tr[2]/td/table/tr/td/table[1]/tr` and use **each** iterator to iterate all **tr** elements.
Bu... | Failed to parse some table correctly under gb2312 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1177/comments | 8 | 2014-10-19T10:30:12Z | 2014-10-26T04:34:47Z | https://github.com/sparklemotion/nokogiri/issues/1177 | 46,201,896 | 1,177 |
[
"sparklemotion",
"nokogiri"
] | slop.rb, which allows accessing data with help of method_missing, is missing respond_to_missing? which prevents usage of respond_to? to test whether data exists in the response.
I successfully used following piece of code to mitigate the problem:
module Nokogiri
module Decorators
module Slop
... | Slopping does not contain respond_to_missing? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1176/comments | 2 | 2014-10-15T12:03:33Z | 2014-11-06T10:48:23Z | https://github.com/sparklemotion/nokogiri/issues/1176 | 45,858,403 | 1,176 |
[
"sparklemotion",
"nokogiri"
] | When I try and use bundler to install the nokogiri gem into a folder with spaces in the name, it crashes out when running extconf.rb.
Here's my Gemfile:
```
source 'https://rubygems.org'
gem 'nokogiri'
```
Here's the output I get when attempting to install to a directory with a space in the name (installing to the d... | Installation of nokogiri gem fails when installing into folders with a space in the name | https://api.github.com/repos/sparklemotion/nokogiri/issues/1175/comments | 5 | 2014-10-06T11:03:35Z | 2020-07-16T12:16:42Z | https://github.com/sparklemotion/nokogiri/issues/1175 | 44,971,362 | 1,175 |
[
"sparklemotion",
"nokogiri"
] | Hi - I discovered that the CSS parser isn't correctly parsing nameless/classless/idless attribute selectors. I'd expect `div [bar]` to produce the same xpath as `div *[bar]`, but instead it produces the same xpath as `div[bar]`.
For example:
``` ruby
>> Nokogiri::VERSION
# => "1.6.3.1"
>> Nokogiri::CSS.xpath_for "di... | CSS - descendant attribute is parsed incorrectly ("div [bar]") | https://api.github.com/repos/sparklemotion/nokogiri/issues/1174/comments | 5 | 2014-10-06T07:25:50Z | 2014-10-07T19:12:10Z | https://github.com/sparklemotion/nokogiri/issues/1174 | 44,954,468 | 1,174 |
[
"sparklemotion",
"nokogiri"
] | Many html entities are not being left alone by nokogiri, eg: ĩ etc etc
```
Nokogiri::HTML.fragment("ℵ").to_html
=> "&aleph;"
Nokogiri::HTML.fragment(">").to_html
=> ">"
```
| Nokogiri is not correctly handling html5 entities | https://api.github.com/repos/sparklemotion/nokogiri/issues/1173/comments | 21 | 2014-10-03T01:46:01Z | 2020-10-12T13:29:26Z | https://github.com/sparklemotion/nokogiri/issues/1173 | 44,759,012 | 1,173 |
[
"sparklemotion",
"nokogiri"
] | In order to speed-up processing of very-large sorted files (several GB), add the capability to start node read from a given file position.
Something similar to this:
```
# find position of initial xml document within the file
doc_id = 3_000_000
initial_doc_pos = find_doc_offset('myfile.xml', doc_id)
# start xml parsi... | Add capability of starting file parsing at a random file position | https://api.github.com/repos/sparklemotion/nokogiri/issues/1172/comments | 7 | 2014-10-02T08:02:01Z | 2014-11-07T00:35:23Z | https://github.com/sparklemotion/nokogiri/issues/1172 | 44,660,035 | 1,172 |
[
"sparklemotion",
"nokogiri"
] | On the web page "http://www.amazon.com/product-reviews/B006QP63LI/ref=cm_cr_pr_top_recent?ie=UTF8&showViewpoints=0&sortBy=bySubmissionDateDescending", I get the following behavior (note that the only difference between the two is the addition of a "TR" element):
(rdb:1) page.at("table#productReviews td:first-child")
n... | #at("table td:first-child") returns nil but #at("table tr td:first-child") returns non-nil value | https://api.github.com/repos/sparklemotion/nokogiri/issues/1171/comments | 13 | 2014-10-02T00:30:29Z | 2014-10-15T16:33:41Z | https://github.com/sparklemotion/nokogiri/issues/1171 | 44,634,607 | 1,171 |
[
"sparklemotion",
"nokogiri"
] | Once I am clearing the content of the array produced by `doc.errors`, after that it is not showing the errors again, when I am raising the same error.
``` ruby
Arup-iMac:~ shreyas$ irb
2.1.2 :001 > require 'open-uri'
=> true
2.1.2 :002 > require 'nokogiri'
=> true
2.1.2 :003 > doc = Nokogiri::HTML(open("http://nokog... | Bugs in docs.errors method. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1170/comments | 4 | 2014-10-01T08:16:28Z | 2014-11-06T12:43:13Z | https://github.com/sparklemotion/nokogiri/issues/1170 | 44,538,615 | 1,170 |
[
"sparklemotion",
"nokogiri"
] | I'm getting output like this trying to install nokogiri on the new ruby 2.1.3 installer for windows:
```
Successfully installed mini_portile-0.6.0
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Error:
ERROR: Error installing nokogiri:
ERROR: Fail... | Failure using RubyInstaller for ruby 2.1.3 on Windows 7 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1169/comments | 10 | 2014-09-27T03:04:43Z | 2014-09-28T17:28:32Z | https://github.com/sparklemotion/nokogiri/issues/1169 | 44,131,993 | 1,169 |
[
"sparklemotion",
"nokogiri"
] | Hi there,
following the instructions on https://nokogiri.org/tutorials/installing_nokogiri.html#homebrew_09 doesn't seem to work anymore.
Following it I get this output:
```
gem install nokogiri -- --use-system-libraries --with-xml2-include=`brew --prefix`/opt/libxml2/include/libxml2 --with-xml2-lib=`brew --prefix`... | nokogiri install fails on mac because homebrew libxml is too new | https://api.github.com/repos/sparklemotion/nokogiri/issues/1166/comments | 21 | 2014-09-23T10:59:35Z | 2016-02-17T17:37:54Z | https://github.com/sparklemotion/nokogiri/issues/1166 | 43,615,627 | 1,166 |
[
"sparklemotion",
"nokogiri"
] | See below for examples. This is causing tests to fail on jruby in (an expiremental branch of) [gollum-lib](https://github.com/gollum/gollum-lib).
- Is this mismatch considered a bug?
- If so, which is the correct behavior?
- Is there any way to make them behave the same?
On ruby (`nokogiri 1.6.3.1`):
```
irb(main):00... | `to_xml` behaves differently on ruby and jruby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1164/comments | 1 | 2014-09-15T23:34:03Z | 2023-01-16T17:16:34Z | https://github.com/sparklemotion/nokogiri/issues/1164 | 42,830,594 | 1,164 |
[
"sparklemotion",
"nokogiri"
] | I want to append a node to the document, but as a child of the body node. When I use << or push, it simply adds the node after the body node, not as a child of it:
xml = zip.read("word/document.xml")
doc = Nokogiri::XML(xml) {|x| x.noent}
body = doc.xpath("//w:body")
node = Nokogiri::XML::Node.new("<w:p w14:paraId=... | append xml node to the document with nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1163/comments | 0 | 2014-09-12T19:32:07Z | 2014-09-12T19:41:05Z | https://github.com/sparklemotion/nokogiri/issues/1163 | 42,662,704 | 1,163 |
[
"sparklemotion",
"nokogiri"
] | I want to append a node to the document, but when I follow the documentation and use after:
http://nokogiri.org/Nokogiri/XML/NodeSet.html
like this:
xml = zip.read("word/document.xml")
doc = Nokogiri::XML(xml) {|x| x.noent}
node = Nokogiri::XML::Element.new("<w:p w14:paraId=\"322D15A5\" w14:textId=\"3D86357C\" w:rs... | unable to append xml node to the document with nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1162/comments | 0 | 2014-09-12T18:56:15Z | 2014-09-12T19:31:20Z | https://github.com/sparklemotion/nokogiri/issues/1162 | 42,659,576 | 1,162 |
[
"sparklemotion",
"nokogiri"
] | I want to append a node to the document, but when I follow the documentation and use after:
http://nokogiri.org/Nokogiri/XML/NodeSet.html
like this:
xml = zip.read("word/document.xml")
doc = Nokogiri::XML(xml) {|x| x.noent}
node = Nokogiri::XML::Element.new("<w:p w14:paraId=\"322D15A5\" w14:textId=\"3D86357C\" w:rs... | unable to append xml node to the document with nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1161/comments | 0 | 2014-09-12T18:54:28Z | 2014-09-12T19:31:13Z | https://github.com/sparklemotion/nokogiri/issues/1161 | 42,659,422 | 1,161 |
[
"sparklemotion",
"nokogiri"
] | is there any reason why you are using "= 0.6.0" and not e.g. "~> 0.6.0"?
| Please allow newer mini_portile versions. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1159/comments | 2 | 2014-09-11T11:03:54Z | 2014-10-08T09:01:51Z | https://github.com/sparklemotion/nokogiri/issues/1159 | 42,512,397 | 1,159 |
[
"sparklemotion",
"nokogiri"
] | Hi,
It looks like element names are serialized in a case-insensitive way if the element is added as a string to a document that declares a different encoding:
``` ruby
# encoding: utf-8
f = <<-EOT
<?xml version="1.0" encoding="us-ascii"?>
<root>
<p>foo</p>
</root>
EOT
r = Nokogiri.XML(f)
p = r.at_css('p').replace('... | element name case changes when added to document with different encoding | https://api.github.com/repos/sparklemotion/nokogiri/issues/1158/comments | 3 | 2014-09-10T18:05:57Z | 2021-12-20T16:39:52Z | https://github.com/sparklemotion/nokogiri/issues/1158 | 42,441,622 | 1,158 |
[
"sparklemotion",
"nokogiri"
] | Hello. I'd like to report a bug in Nokogiri that is exhibited by the following code:
``` ruby
require 'nokogiri'
doc = Nokogiri::XML('<a b:c="" b:d=""/>')
doc.remove_namespaces!
node = doc.xpath('//a').first
p node
p node['d']
p node.attributes['d'].value
```
I would expect the last two lines to both print `""` to t... | Attribute inconsistency caused by `remove_namespaces!` | https://api.github.com/repos/sparklemotion/nokogiri/issues/1157/comments | 4 | 2014-09-09T03:16:25Z | 2024-12-08T18:21:24Z | https://github.com/sparklemotion/nokogiri/issues/1157 | 42,267,055 | 1,157 |
[
"sparklemotion",
"nokogiri"
] | Hopefully, this is in fact unexpected behavior and not me misunderstanding xpath...
This might in some way be related to #370
```
#!/usr/bin/ruby
require 'nokogiri'
html_doc = <<DOC
<span>Stuffe we don't want</span>
<h2>Start selection</h2>
<p>Content we're interested in</p>
<p>More content... | Querying first result with chained xpth return entire array | https://api.github.com/repos/sparklemotion/nokogiri/issues/1156/comments | 2 | 2014-09-07T09:56:14Z | 2014-11-06T11:56:08Z | https://github.com/sparklemotion/nokogiri/issues/1156 | 42,138,826 | 1,156 |
[
"sparklemotion",
"nokogiri"
] | ```
warnings: []
nokogiri: 1.6.3.1
ruby:
version: 2.0.0
platform: x86_64-linux-gnu
description: ruby 2.0.0p384 (2014-01-12) [x86_64-linux-gnu]
engine: ruby
libxml:
binding: extension
source: packaged
libxml2_path: "/var/lib/gems/2.0.0/gems/nokogiri-1.6.3.1/ports/x86_64-pc-linux-gnu/libxml2/2.8.0"
libxsl... | xpath //namespace::* returns garbage -> can lead to segfault | https://api.github.com/repos/sparklemotion/nokogiri/issues/1155/comments | 14 | 2014-09-04T23:57:11Z | 2020-02-02T18:51:04Z | https://github.com/sparklemotion/nokogiri/issues/1155 | 41,999,291 | 1,155 |
[
"sparklemotion",
"nokogiri"
] | Currently when `ext/extconf.rb` downloads zlib, libxml2, libxslt and libiconv to build on MRI it will download from the distribution sites and start compiling right away.
To ensure that Nokogiri is building known sources, `ext/extconf.rb` should contain some md5 or SHA1 checksums to validate the integrity of the downl... | Nokogiri's extconf.rb should check checksums of downloaded dependencies | https://api.github.com/repos/sparklemotion/nokogiri/issues/1154/comments | 3 | 2014-09-02T22:17:11Z | 2017-01-24T16:18:38Z | https://github.com/sparklemotion/nokogiri/issues/1154 | 41,761,322 | 1,154 |
[
"sparklemotion",
"nokogiri"
] | os x 10.9.4
$ uname -a
Darwin fsb 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
$ brew -v
Homebrew 0.9.5
$ ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
$ gem -v
2.4.1
$ gem uninstall nokogiri libxml-ruby
$ NOKOGIRI... | libxml2 is missing | https://api.github.com/repos/sparklemotion/nokogiri/issues/1151/comments | 3 | 2014-08-29T15:16:24Z | 2014-12-31T06:47:47Z | https://github.com/sparklemotion/nokogiri/issues/1151 | 41,510,727 | 1,151 |
[
"sparklemotion",
"nokogiri"
] | issue with nokogirl and osx maverics when trying to install:
---
## libiconv is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
**\* extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or head... | libiconv is missing | https://api.github.com/repos/sparklemotion/nokogiri/issues/1150/comments | 2 | 2014-08-28T18:29:24Z | 2014-09-16T06:31:44Z | https://github.com/sparklemotion/nokogiri/issues/1150 | 41,425,592 | 1,150 |
[
"sparklemotion",
"nokogiri"
] | with nokogiri "1.6.3.1-java", when i try to initialize PushParser, I get the error:
```
jruby-1.7.13 :001 > require 'nokogiri'
jruby-1.7.13 :002 > parser = Nokogiri::HTML::SAX::PushParser.new
NoMethodError: undefined method `initialize_native' for #<Nokogiri::HTML::SAX::PushParser:0xffcf7b3>
```
Initialize XML PushPa... | On JRuby, initialize Nokogiri::HTML::SAX::PushParser failed with error "initialize_native" | https://api.github.com/repos/sparklemotion/nokogiri/issues/1147/comments | 3 | 2014-08-20T12:22:29Z | 2015-01-21T04:26:46Z | https://github.com/sparklemotion/nokogiri/issues/1147 | 40,692,590 | 1,147 |
[
"sparklemotion",
"nokogiri"
] | Debian 6.0.1 with the latest updates, Ruby 1.9.3p194.
I have installed Nokogiri with the command:
```
sudo gem install nokogiri
```
The gem has been installed successfully with native extensions.
Then I do the following:
```
$ irb
irb(main):001:0> require 'nokogiri'
LoadError: cannot load such file -- nokogiri
... | require 'nokogiri' fails | https://api.github.com/repos/sparklemotion/nokogiri/issues/1146/comments | 1 | 2014-08-18T13:20:59Z | 2014-08-18T13:28:01Z | https://github.com/sparklemotion/nokogiri/issues/1146 | 40,486,881 | 1,146 |
[
"sparklemotion",
"nokogiri"
] | I'm trying to parse newlines in XML attributes, but it seems they are incorrectly converted to spaces:
``` ruby
>> require 'nokogiri'
=> true
>> xml = <<EOS
<root attr="value
with
newlines"/>
EOS
=> "<root attr=\"value\nwith\nnewlines\"/>\n"
>> Nokogiri::XML(xml).to_xml
=> "<?xml version=\"1.0\"?>\n<root attr=\"value ... | Newlines in XML attributes | https://api.github.com/repos/sparklemotion/nokogiri/issues/1145/comments | 2 | 2014-08-06T01:38:25Z | 2015-01-15T11:52:59Z | https://github.com/sparklemotion/nokogiri/issues/1145 | 39,582,291 | 1,145 |
[
"sparklemotion",
"nokogiri"
] | I'm using RubyXL to try and write a new xlsx workbook. I am running:
Ruby: JRuby 1.7.10
Rails: 4.0.3
OS: CentOS 6.5
Torquebox: 3.0.2
Java: 1.7.0_51-b13
rubyXL: 3.2.2
workbook = RubyXL::Workbook.new
worksheet = workbook.add_worksheet('asdfasdf')
worksheet.insert_row(1)
worksheet.add_cell(0,0,'A1')
worksheet.... | another NAMESPACE_ERR | https://api.github.com/repos/sparklemotion/nokogiri/issues/1143/comments | 1 | 2014-08-01T14:33:44Z | 2014-08-01T16:35:29Z | https://github.com/sparklemotion/nokogiri/issues/1143 | 39,294,508 | 1,143 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri '1.6.2.1'
ruby 2.1.0
I followed http://nokogiri.org/tutorials/modifying_an_html_xml_document.html Wrapping a NodeSet
```
@doc = Nokogiri::HTML::DocumentFragment.parse <<-EOHTML
<body>
<h1>Three's Company</h1>
<div>A love triangle.</div>
</body>
EOHTML
nodes = @doc.css "h1,div"
wrapper = nodes.wrap("<div ... | .wrap cause undefined local variable or method `parent' for #<Nokogiri::HTML::Document:0x007fef70042128> | https://api.github.com/repos/sparklemotion/nokogiri/issues/1142/comments | 1 | 2014-08-01T14:00:23Z | 2014-09-29T17:08:37Z | https://github.com/sparklemotion/nokogiri/issues/1142 | 39,291,569 | 1,142 |
[
"sparklemotion",
"nokogiri"
] | Mac OS X 10.9.4/ Ruby 2.1.2/ Homebrew 0.9
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
Building nokogiri using packaged libraries.
libiconv is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing depende... | libiconv is missing -nokogiri (1.6.3.1) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1140/comments | 6 | 2014-07-28T20:53:03Z | 2014-12-31T07:01:33Z | https://github.com/sparklemotion/nokogiri/issues/1140 | 38,931,967 | 1,140 |
[
"sparklemotion",
"nokogiri"
] | It appears to usually return zero even when elements are present. Failing test case on MRI (1.9.3-p484), passes on JRuby (1.7.11).
``` ruby
def test_element_children
doc = Nokogiri::HTML::DocumentFragment.parse(" <div> </div>\n ")
assert doc.element_children.count == 1
end
```
Given the recent change to whit... | DocumentFragment#element_children doesn't return children (MRI) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1138/comments | 9 | 2014-07-28T06:13:12Z | 2014-08-06T18:30:20Z | https://github.com/sparklemotion/nokogiri/issues/1138 | 38,863,984 | 1,138 |
[
"sparklemotion",
"nokogiri"
] | I am installing nokogiri under mac os with `gem install nokogiri -- --use-system-libraries --quiet` , As i dont wants this command to produce terminal output "Building nokogiri using system libraries.".
But i noticed that Nokogiri does not honor gem install --quiet switch and always produce output.
```
pradeeps-mac:n... | Nokogiri does not honor gem install --quiet switch | https://api.github.com/repos/sparklemotion/nokogiri/issues/1137/comments | 8 | 2014-07-25T05:16:45Z | 2014-12-02T19:50:57Z | https://github.com/sparklemotion/nokogiri/issues/1137 | 38,697,955 | 1,137 |
[
"sparklemotion",
"nokogiri"
] | https://github.com/sparklemotion/nokogiri/issues/1129
The belows steps done for building nokogiri gem manually.
nokogiri.so file has been created on Slackware14.1, after that how to make .gem file formate.
root@ang154:~/noko/nokogiri-1.6.2.1/ext/nokogiri# ruby extconf.rb
Building nokogiri using system libraries.
ch... | build native gem of nokogiri-1.6.2.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1136/comments | 1 | 2014-07-24T05:03:15Z | 2014-07-28T17:34:59Z | https://github.com/sparklemotion/nokogiri/issues/1136 | 38,597,678 | 1,136 |
[
"sparklemotion",
"nokogiri"
] | This HTML fragment:
``` html
<ul>
<li>A <div></li> <!-- note the open DIV -->
<li>B</li>
</ul>
```
When parsed with Nokogiri and spit out using `to_html`, generates slightly different HTML:
``` html
<ul>
<li>A <div>
<li>B</li>
</div> <!-- closing tag inserted in wrong place -->
</li>
</ul>
```
Notice th... | Closing tag for DIV inserted in a wrong place inside UL/LI | https://api.github.com/repos/sparklemotion/nokogiri/issues/1135/comments | 6 | 2014-07-23T02:29:01Z | 2021-12-20T19:18:31Z | https://github.com/sparklemotion/nokogiri/issues/1135 | 38,482,105 | 1,135 |
[
"sparklemotion",
"nokogiri"
] | Push up tag for Nokogiri 1.6.3.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1133/comments | 4 | 2014-07-22T17:05:58Z | 2014-07-22T17:14:22Z | https://github.com/sparklemotion/nokogiri/issues/1133 | 38,421,178 | 1,133 | |
[
"sparklemotion",
"nokogiri"
] | I've just lost tens of minutes figuring a bug and then I got to this:
``` ruby
# correct
irb(main):017:0> Nokogiri::HTML.fragment('<body></body>').to_s
=> "<body></body>"
# wrong!
irb(main):018:0> Nokogiri::HTML.fragment('<html></html>').to_s
=> ""
# wrong!
irb(main):016:0> Nokogiri::HTML.fragment('<html><body></bod... | Nokogiri::HTML::DocumentFragment removes HTML and body tags | https://api.github.com/repos/sparklemotion/nokogiri/issues/1132/comments | 3 | 2014-07-21T20:08:12Z | 2021-01-04T02:42:49Z | https://github.com/sparklemotion/nokogiri/issues/1132 | 38,339,628 | 1,132 |
[
"sparklemotion",
"nokogiri"
] | I've spent several hours trying various suggested solutions to this problem, to no avail.
Here's the output:
```
$ gem install nokogiri
Building native extensions. This could take a while...
Building nokogiri using packaged libraries.
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension... | Cannot install nokogiri 1.6.3 on Ruby 2.1.2 (rbenv) and OS X 10.9.4 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1130/comments | 33 | 2014-07-21T04:30:26Z | 2014-08-14T12:23:38Z | https://github.com/sparklemotion/nokogiri/issues/1130 | 38,276,019 | 1,130 |
[
"sparklemotion",
"nokogiri"
] | Please help me to sort out this issue.
I've tried to compile the nokogiri-1.6.2.1 gem on Slackware 14.1
I've installed the dependencies of nokogiri and sets "export NOKOGIRI_USE_SYSTEM_LIBRARIES=true" before compilation
libgcrypt-1.5.3-x86_64-1.txz
libgpg-error-1.11-x86_64-1.txz
libiconv-1.13.1-x86_64-1_SBo.tgz ... | build native gem of nokogiri-1.6.2.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1129/comments | 1 | 2014-07-18T12:51:35Z | 2014-07-24T05:03:15Z | https://github.com/sparklemotion/nokogiri/issues/1129 | 38,173,284 | 1,129 |
[
"sparklemotion",
"nokogiri"
] | I have an html document that contains a link of the form:
`http://domain.com/path?foo=bar&dead=beef`
If I parse it and emit it back out via `to_html` I get the following:
`http://domain.com/path?foo=bar&dead=beef`
This breaks the link's functionality and appears to only have the `foo` get param. How do I get `#t... | Unable to disable '&' to '&' escaping | https://api.github.com/repos/sparklemotion/nokogiri/issues/1127/comments | 15 | 2014-07-15T03:05:04Z | 2019-01-12T10:46:07Z | https://github.com/sparklemotion/nokogiri/issues/1127 | 37,847,560 | 1,127 |
[
"sparklemotion",
"nokogiri"
] | I see there's another 1.6.2 segfault reported, I'm not sure if it's the same issue; I've worked this to a minimal reproducer:
```
$ uname -a
Darwin new-host-7.home 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
$ cat tmp.rb
require 'nokogiri'
p RUBY_DES... | segfault in poorly formed HTML for 1.6.2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1126/comments | 3 | 2014-07-10T20:57:31Z | 2020-02-02T18:51:04Z | https://github.com/sparklemotion/nokogiri/issues/1126 | 37,604,302 | 1,126 |
[
"sparklemotion",
"nokogiri"
] | When `s.is_a?(Zip::InputStream)`, `Nokogiri::XML.parse(s)` works fine on all platforms, except for JRuby, where it fails:
<pre>
ArgumentError: must be kind_of String or respond to :to_io or :string
read_io at nokogiri/XmlDocument.java:337
parse at /home/hk/.rvm/gems/jruby-1.7.13@rubyxl-demo/gem... | (JRuby) Nokogiri unable to parse RubyZip's streams in JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1124/comments | 2 | 2014-06-30T22:13:58Z | 2015-02-06T11:27:30Z | https://github.com/sparklemotion/nokogiri/issues/1124 | 36,844,015 | 1,124 |
[
"sparklemotion",
"nokogiri"
] | The summary for `canonicalize` has the signature:
`canonicalize(p1 = v1, p2 = v2, p3 = v3)`
The documentation does not describe what p1/p2/p3 do.
| Poor documentation on Document#canonicalize | https://api.github.com/repos/sparklemotion/nokogiri/issues/1123/comments | 2 | 2014-06-28T14:40:27Z | 2014-07-09T04:50:18Z | https://github.com/sparklemotion/nokogiri/issues/1123 | 36,726,342 | 1,123 |
[
"sparklemotion",
"nokogiri"
] | ```
Rammy:Desktop phrogz$ uname -a
Darwin Rammy 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
Rammy:Desktop phrogz$ cat tmp.rb
require 'nokogiri'
p RUBY_DESCRIPTION, Nokogiri::VERSION
doc = Nokogiri.XML('<r xmlns="http://foo" xmlns:b="http://bar" x="y">... | segfault using canonicalization with dubious arguments | https://api.github.com/repos/sparklemotion/nokogiri/issues/1122/comments | 1 | 2014-06-28T14:24:55Z | 2020-02-02T18:51:04Z | https://github.com/sparklemotion/nokogiri/issues/1122 | 36,726,085 | 1,122 |
[
"sparklemotion",
"nokogiri"
] | need to update installation tutorial: libiconv 1.13 -> 1.14
| need to update installation tutorial: libiconv 1.13 -> 1.14 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1121/comments | 1 | 2014-06-28T13:18:28Z | 2014-06-29T20:34:36Z | https://github.com/sparklemotion/nokogiri/issues/1121 | 36,724,976 | 1,121 |
[
"sparklemotion",
"nokogiri"
] | Here's the errors I'm getting:
```
Undefined symbols for architecture x86_64:
"_lzma_auto_decoder", referenced from:
_xz_head in libxml2.a(xzlib.o)
"_lzma_code", referenced from:
_xz_decomp in libxml2.a(xzlib.o)
"_lzma_end", referenced from:
___libxml2_xzclose in libxml2.a(xzlib.o)
"_lzma_pr... | Nokogiri install fails because of missing lzma symbols in self built libxml2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1119/comments | 13 | 2014-06-25T07:56:31Z | 2016-03-06T20:24:31Z | https://github.com/sparklemotion/nokogiri/issues/1119 | 36,456,285 | 1,119 |
[
"sparklemotion",
"nokogiri"
] | I just installed a brand new OSX 10.9. Updated everything. Installed the command-line-tools bundle.
This fails:
```
rm -rf xxx; export GEM_HOME=xxx; export GEM_PATH=xxx; gem i nokogiri
```
Because mini_portile isn't available (and is referenced in extconf.rb).
This fails:
```
rm -rf xxx; export GEM_HOME=xxx; expor... | OSX install problem w/ virginal mavericks. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1118/comments | 1 | 2014-06-24T00:29:39Z | 2021-11-11T20:22:51Z | https://github.com/sparklemotion/nokogiri/issues/1118 | 36,343,830 | 1,118 |
[
"sparklemotion",
"nokogiri"
] | Ruby: JRuby 1.7.11
Rails: 4.0.5
Nokogiri: 1.6.2.1
OS: Windows 2008 Server (64bit)
Torquebox: 1.3.1
Java: 1.7.0_40-b43
Starting the rails-app gives me:
```
(LoadError) load error: nokogiri/nokogiri -- java.lang.NoClassDefFoundError: com/sun/org/apache/xpath/internal/VariableStack
```
Older versions of Nokogiri (tried... | LoadError when deploying to JRuby/Torquebox on Windows | https://api.github.com/repos/sparklemotion/nokogiri/issues/1114/comments | 49 | 2014-06-02T07:27:27Z | 2015-11-30T04:49:44Z | https://github.com/sparklemotion/nokogiri/issues/1114 | 34,750,842 | 1,114 |
[
"sparklemotion",
"nokogiri"
] | If you use character entities or straight UTF-8 characters, somewhere along the line, they get cast to 2 byte characters under JRuby. This affects emojis, traditional chinese, and numerous other planes.
```
doc = Nokogiri::HTML::Document.new
doc.encoding = 'US-ASCII'
puts doc.fragment('<p>🍀</p>')
puts doc.frag... | (JRuby) Nokogiri munges unicode characters that require more than 2 bytes | https://api.github.com/repos/sparklemotion/nokogiri/issues/1113/comments | 2 | 2014-05-30T16:57:17Z | 2016-01-04T13:40:32Z | https://github.com/sparklemotion/nokogiri/issues/1113 | 34,662,628 | 1,113 |
[
"sparklemotion",
"nokogiri"
] | My coworker and I ran into this funny case where the jruby version of Nokogiri kicks up an error that MRI does not:
```
~% jruby -e "require 'nokogiri'; Nokogiri::HTML::DocumentFragment.parse('').unlink"
RuntimeError: TYPE: 11 PARENT NULL
unlink at nokogiri/XmlNode.java:1313
(root) at -e:1
~% ruby -e "require 'nok... | Error unlinking empty document in jruby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1112/comments | 0 | 2014-05-27T21:18:22Z | 2016-02-17T17:02:37Z | https://github.com/sparklemotion/nokogiri/issues/1112 | 34,414,055 | 1,112 |
[
"sparklemotion",
"nokogiri"
] | I am trying to install nokogiri on maverick and i am unable to do so, even when libiconv is installed through brew:
- Here is the log
```
Installing nokogiri (1.6.2.1) Building nokogiri using packaged libraries.
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubi... | Nokogiri error: Libiconv missing on mavericks | https://api.github.com/repos/sparklemotion/nokogiri/issues/1111/comments | 60 | 2014-05-22T17:37:59Z | 2015-07-28T15:17:50Z | https://github.com/sparklemotion/nokogiri/issues/1111 | 34,104,393 | 1,111 |
[
"sparklemotion",
"nokogiri"
] | I encountered such a bug, or is not valid html:
```
<div class="info-params params">
<span class="param">Размер < 19</span>
<span class="param">Обувь</span>
<span class="param">Для девочек</span>
<span class="param param-last">Детская одежда и обувь</span>
</div>
```
It work code:
```
get.search("//div[@cl... | Charset "<" in xpath | https://api.github.com/repos/sparklemotion/nokogiri/issues/1110/comments | 1 | 2014-05-20T07:23:25Z | 2014-05-20T11:24:20Z | https://github.com/sparklemotion/nokogiri/issues/1110 | 33,863,944 | 1,110 |
[
"sparklemotion",
"nokogiri"
] | Removing an attribute from an element appears to not clear a cache somewhere when using JRuby - behaves correctly when using MRI. Currently causing capybara to fail when used with JRuby and nokogiri 1.6.2.1
```
doc = Nokogiri::HTML("<html><div selected></div></html>")
elements = doc.xpath('//div[@selected]')
puts e... | removing attribute doesn't affect results of xpath query when using JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1109/comments | 1 | 2014-05-19T22:02:53Z | 2015-01-02T16:10:54Z | https://github.com/sparklemotion/nokogiri/issues/1109 | 33,841,899 | 1,109 |
[
"sparklemotion",
"nokogiri"
] | I was pulling my hair out for two hours trying to fix this. Tried with the packaged extensions, then tried with system extensions, switched ruby versions (1.9.3, 2.0, 2.1).
The only solution I've found so far is to drop Nokogiri back to 1.6.1. I can't be sure whether this is a conflict with Capybara (2.2.1).
Version... | Segmentation Fault (Nokogiri 1.6.2.1 on Ubuntu 12.04) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1108/comments | 20 | 2014-05-18T03:23:22Z | 2020-02-02T18:51:03Z | https://github.com/sparklemotion/nokogiri/issues/1108 | 33,744,521 | 1,108 |
[
"sparklemotion",
"nokogiri"
] | I am using [RubyInstaller.org](http://rubyinstaller.org) 2.0.0-p481 **32-bit** with DevKit version `DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe`.
```
$ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.14
- RUBY VERSION: 2.0.0 (2014-05-08 patchlevel 481) [i386-mingw32]
- INSTALLATION DIRECTORY: D:... | 1.6.2.1 install fails on Windows 32-bit Ruby 2.0.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1107/comments | 4 | 2014-05-15T21:22:56Z | 2014-12-29T13:50:40Z | https://github.com/sparklemotion/nokogiri/issues/1107 | 33,626,556 | 1,107 |
[
"sparklemotion",
"nokogiri"
] | ```
/Users/dblock/.rvm/rubies/rbx-2.2.1/bin/rbx extconf.rb
Building nokogiri using packaged libraries.
checking for iconv.h... yes
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... yes
Building libxml2-2.8.0 for nokogiri with the following patches applied:
- 0001-Fix-parser-local-bu... | Installation fails on OSX / rbx-2.2.1: invalid mode -- at (ArgumentError) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1106/comments | 1 | 2014-05-15T12:57:57Z | 2014-05-15T13:04:49Z | https://github.com/sparklemotion/nokogiri/issues/1106 | 33,582,514 | 1,106 |
[
"sparklemotion",
"nokogiri"
] | I've been inexplicably getting various Nokogiri::XML::SyntaxErrors when trying to parse document fragments for example:
```
"XML declaration allowed only at the start of the document (Nokogiri::XML::SyntaxError)"
```
The line in question is:
```
html = Nokogiri::HTML::DocumentFragment.parse(body)
```
for where `bod... | Nokogiri::XML::SyntaxError when parsing DocumentFragments | https://api.github.com/repos/sparklemotion/nokogiri/issues/1105/comments | 1 | 2014-05-14T13:27:18Z | 2014-05-16T12:53:42Z | https://github.com/sparklemotion/nokogiri/issues/1105 | 33,491,553 | 1,105 |
[
"sparklemotion",
"nokogiri"
] | Looks like libxml2 and friends are not being built w/ multiple architectures and that's causing a failure.
Repro:
```
% gem i -i xxx nokogiri -V
```
I'm getting different failures from @tenderlove for some unknown reason, but we both have this problem in common.
| build failure on OSX w/ universal (fat) ruby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1104/comments | 4 | 2014-05-13T23:32:54Z | 2014-05-14T10:30:45Z | https://github.com/sparklemotion/nokogiri/issues/1104 | 33,449,068 | 1,104 |
[
"sparklemotion",
"nokogiri"
] | on windowswith ruby 1.9.3p545 (2014-02-24) [i386-mingw32] and devkit
updating from 1.6.1 to 1.6.2 fail:
```
Updating nokogiri
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
... | Install 1.6.2 and 1.6.2.1 fail on windows | https://api.github.com/repos/sparklemotion/nokogiri/issues/1103/comments | 8 | 2014-05-13T21:32:32Z | 2014-05-20T12:59:03Z | https://github.com/sparklemotion/nokogiri/issues/1103 | 33,441,264 | 1,103 |
[
"sparklemotion",
"nokogiri"
] | Hello!
Apparently, the new release of nokogiri 1.6.2 installs its own version of various xml libraries, and uses mini_portile, which has an undeclared dependency on git being installed, see https://github.com/luislavena/mini_portile/issues/32.
If nokogiri is going to use this other project, it needs to declare some s... | Nokogiri's dependency on mini_portile has introduced a dependency on git | https://api.github.com/repos/sparklemotion/nokogiri/issues/1102/comments | 8 | 2014-05-13T20:15:40Z | 2015-03-23T12:42:42Z | https://github.com/sparklemotion/nokogiri/issues/1102 | 33,434,482 | 1,102 |
[
"sparklemotion",
"nokogiri"
] | As is well known, Xcode 5.1 includes a version of clang that is much pickier than previous versions. This affects Nokogiri:
```
linking shared-object nokogiri/nokogiri.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a ha... | Installing Nokogiri 1.6.2 fails on Mac with Xcode 5.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1101/comments | 20 | 2014-05-13T18:05:12Z | 2014-07-22T13:33:54Z | https://github.com/sparklemotion/nokogiri/issues/1101 | 33,423,460 | 1,101 |
[
"sparklemotion",
"nokogiri"
] | Mac OSx output:
For example, libxml2-2.9.0 and higher are currently known to be broken
and thus unsupported by nokogiri, due to compatibility problems and
XPath optimization bugs.
---
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
```
/Users/tmcmillan/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb
... | Install fails on Mac OSx and RedHat 6.x | https://api.github.com/repos/sparklemotion/nokogiri/issues/1100/comments | 1 | 2014-05-13T17:12:21Z | 2014-05-14T00:04:18Z | https://github.com/sparklemotion/nokogiri/issues/1100 | 33,419,017 | 1,100 |
[
"sparklemotion",
"nokogiri"
] | Not sure if similar to #1098 since I'm attempting to use system libs here.
1.6.1 works fine with this method.
Pasting verbose gem installation log here --
```
root@idx1:~# export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
root@idx1:~# gem install --vebose nokogiri -v 1.6.2
ERROR: While executing gem ... (OptionParser::Inval... | Installation of nokogiri 1.6.2 fails with use-system-libraries enabled on ubuntu 12.04 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1099/comments | 35 | 2014-05-13T17:01:24Z | 2015-08-12T17:29:02Z | https://github.com/sparklemotion/nokogiri/issues/1099 | 33,418,129 | 1,099 |
[
"sparklemotion",
"nokogiri"
] | All commands executed as `root` with Ubuntu's `ruby1.9.1` package.
```
$ ruby --version
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
```
```
$ dpkg --list |grep libxml
ii libxml2 2.7.8.dfsg-5.1ubuntu4.6 GNOME XML library
ii libxml2-dev 2.7.8.dfsg-5.... | Install of Nokogiri 1.6.2 fails on Ubuntu 12.04 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1098/comments | 4 | 2014-05-13T02:38:16Z | 2021-02-16T17:04:36Z | https://github.com/sparklemotion/nokogiri/issues/1098 | 33,364,619 | 1,098 |
[
"sparklemotion",
"nokogiri"
] | http://pastebin.com/GHDE31WU
| 1.6.2 cause Segmentation fault on MRI 2.0.0-p451 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1097/comments | 15 | 2014-05-13T01:34:45Z | 2021-02-16T17:04:36Z | https://github.com/sparklemotion/nokogiri/issues/1097 | 33,362,428 | 1,097 |
[
"sparklemotion",
"nokogiri"
] | Even though a packaged version of libxml2 is built, libxml2 is missing:
```
-----
libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libr... | Install of Nokogiri 1.6.2 fails on Mavericks | https://api.github.com/repos/sparklemotion/nokogiri/issues/1096/comments | 10 | 2014-05-13T01:28:49Z | 2014-05-13T11:18:12Z | https://github.com/sparklemotion/nokogiri/issues/1096 | 33,362,193 | 1,096 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.