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"
] | ```
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri
/Users/Who/.rbenv/versions/2.4.1/bin/ruby -r ./siteconf20170515... | gem install nokogiri failure -Wno-error=unused-command-line-argument-hard-error-in-future... no | https://api.github.com/repos/sparklemotion/nokogiri/issues/1643/comments | 2 | 2017-05-15T09:02:51Z | 2017-05-21T21:03:27Z | https://github.com/sparklemotion/nokogiri/issues/1643 | 228,649,360 | 1,643 |
[
"sparklemotion",
"nokogiri"
] | [Nokogiri::VERSION = 1.7.0.1](https://github.com/sparklemotion/nokogiri/blob/master/lib/nokogiri/version.rb#L3)
Might this be changed in the master branch to either reflect the current release version or the next? I'd submit a PR, but I don't know which is preferred... | Master Branch - Nokogiri::VERSION = 1.7.0.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1642/comments | 2 | 2017-05-14T18:07:18Z | 2021-02-16T17:05:34Z | https://github.com/sparklemotion/nokogiri/issues/1642 | 228,558,269 | 1,642 |
[
"sparklemotion",
"nokogiri"
] | The use case is transforming this XML:
```xml
<?xml version="1.0"?>
<!DOCTYPE arbitrary SYSTEM "https://127.0.0.1/some.dtd" [
<!ENTITY test "Dereferenced!">
]>
<arbitrary>
<child>&test;</child>
</arbitrary>
```
into this XML (note the additional element definition within the DTD):
```xml
<?x... | add `ElementDecl`s to an internal subset | https://api.github.com/repos/sparklemotion/nokogiri/issues/1639/comments | 4 | 2017-05-11T21:42:40Z | 2024-07-02T15:23:46Z | https://github.com/sparklemotion/nokogiri/issues/1639 | 228,129,729 | 1,639 |
[
"sparklemotion",
"nokogiri"
] | Action:
```
Nokogiri::HTML::DocumentFragment.parse('<a><table></table></a>').to_html
```
Output (Expected):
```
<a><table></table></a>
```
Output (Actual):
```
<a></a><table></table>
``` | A tag can not include TABLE tag. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1638/comments | 4 | 2017-05-09T02:10:47Z | 2017-05-10T11:26:48Z | https://github.com/sparklemotion/nokogiri/issues/1638 | 227,227,094 | 1,638 |
[
"sparklemotion",
"nokogiri"
] | The mutant gem depends on all classes defining a singleton_method called `name` that returns a String or nil. XPath and XPath::HTML don't follow that convention.
It would be helpful if nokogiri could fix this on their end so that mutant could be used on projects that depend on nokogiri.
See https://github.com/mb... | mutant compatibility | https://api.github.com/repos/sparklemotion/nokogiri/issues/1635/comments | 8 | 2017-05-03T21:10:01Z | 2017-05-10T03:05:17Z | https://github.com/sparklemotion/nokogiri/issues/1635 | 226,115,599 | 1,635 |
[
"sparklemotion",
"nokogiri"
] | This issue is to drive investigation and potential action around a set of upstream libxslt patches that Canonical judged valuable enough to port to their distributions.
# USN-3271-1
"libxslt vulnerabilities"
https://www.ubuntu.com/usn/usn-3271-1/
## CVE-2017-5029
http://people.canonical.com/~ubuntu-sec... | evaluate upstream libxslt patches mentioned in USN-3271-1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1634/comments | 4 | 2017-04-28T17:22:47Z | 2017-05-09T21:38:40Z | https://github.com/sparklemotion/nokogiri/issues/1634 | 225,143,145 | 1,634 |
[
"sparklemotion",
"nokogiri"
] | ## If you're having trouble installing Nokogiri ...
**Have you tried following [the installation tutorial][tutorial]?**
Yes
I downloaded the latest version (1.7.1)
**What is the output of `gem install`?**
PS C:\opscode\chef\embedded\bin> .\gem.bat install nokogiri
ERROR: Error installing nokogiri:
n... | Nokogiri install issues on windows 2016 ruby 2.4.1p111 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1633/comments | 2 | 2017-04-24T14:11:58Z | 2017-04-30T21:41:31Z | https://github.com/sparklemotion/nokogiri/issues/1633 | 223,833,424 | 1,633 |
[
"sparklemotion",
"nokogiri"
] | ## If you're having trouble installing
Dear, I am facing installation issue on Windows 7, 32 bit OS.
Please help and find output error below.
D:\branch_new\gems>gem install nokogiri-1.6.8.gem
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Err... | Having trouble installing Nokogiri on Windows 7 32 bit, OS | https://api.github.com/repos/sparklemotion/nokogiri/issues/1632/comments | 5 | 2017-04-24T13:34:21Z | 2017-05-10T03:56:53Z | https://github.com/sparklemotion/nokogiri/issues/1632 | 223,821,959 | 1,632 |
[
"sparklemotion",
"nokogiri"
] | ## If you're having trouble installing
Dear, I am facing installation issue on Windows 7, 32 bit OS.
Please help and find output error below.
Nokogiri ...D:\branch_new\gems>gem install nokogiri-1.6.8.gem
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
... | Having trouble0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1631/comments | 1 | 2017-04-24T13:32:22Z | 2017-04-24T13:43:48Z | https://github.com/sparklemotion/nokogiri/issues/1631 | 223,821,373 | 1,631 |
[
"sparklemotion",
"nokogiri"
] | I have tried both css and xpath, guess I'm just doing something wrong, or maybe the selectors are supposed to work different:
Here's what I'm doing:
```
dom = Nokogiri::HTML(File.read('/tmp/fb-test-1.html'))
# output 1
dom.xpath("//div[@id='contentArea']").size
# output 0
dom.xpath("//div[@id='contentArea'... | Not able to parse facebook group | https://api.github.com/repos/sparklemotion/nokogiri/issues/1630/comments | 4 | 2017-04-05T05:25:42Z | 2017-04-07T21:27:53Z | https://github.com/sparklemotion/nokogiri/issues/1630 | 219,472,312 | 1,630 |
[
"sparklemotion",
"nokogiri"
] | Suddenly today, this gem started throwing errors when installing, any ideas?
```
Installing nokogiri 1.6.8 with native extensions
Using commander 4.4.0
Using faraday 0.8.11
Using net-sftp 2.1.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/Users/distiller/.gem/ruby/2... | Gem stopped installing | https://api.github.com/repos/sparklemotion/nokogiri/issues/1628/comments | 3 | 2017-03-31T21:05:31Z | 2017-05-06T21:08:11Z | https://github.com/sparklemotion/nokogiri/issues/1628 | 218,617,032 | 1,628 |
[
"sparklemotion",
"nokogiri"
] | **What is the output of `gem install`?**
```
# gem install nokogiri
Fetching: nokogiri-1.7.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed nokogiri-1.7.1
1 gem installed
```
```
# ruby -v
ruby 2.1.8p440 (2015-12-16 revision 53160) [x86_64-darwin15.0]
```
```
# bu... | 1.7.1 : bundle install failing on OSX with "requires ruby version >= 2.1.0" and 2.1.8 is current | https://api.github.com/repos/sparklemotion/nokogiri/issues/1627/comments | 2 | 2017-03-28T17:45:56Z | 2017-03-28T18:31:36Z | https://github.com/sparklemotion/nokogiri/issues/1627 | 217,639,354 | 1,627 |
[
"sparklemotion",
"nokogiri"
] | ## If you're having trouble installing Nokogiri ...
## Have you tried following [the installation tutorial][tutorial]?
Yes.
## What is the output of `gem install`?
<img width="1366" alt="screen shot 2017-03-25 at 4 35 21 pm" src="https://cloud.githubusercontent.com/assets/16495816/24325899/31331e0a-1179-11e7-93... | Failed to install nokogiri with native extensions... | https://api.github.com/repos/sparklemotion/nokogiri/issues/1626/comments | 6 | 2017-03-25T20:37:12Z | 2017-05-09T21:52:46Z | https://github.com/sparklemotion/nokogiri/issues/1626 | 217,002,610 | 1,626 |
[
"sparklemotion",
"nokogiri"
] | When parse a string and define [parseOptions](http://www.rubydoc.info/github/sparklemotion/nokogiri/Nokogiri/XML/ParseOptions), nokogiri returns an error. Using a block for define the options works fine.
```
2.3.1 :001 > require 'nokogiri'
=> true
2.3.1 :002 > Nokogiri.XML('<content>Chapter 1</content>', options:... | error when parse and define options | https://api.github.com/repos/sparklemotion/nokogiri/issues/1625/comments | 1 | 2017-03-24T17:16:41Z | 2017-03-26T18:46:23Z | https://github.com/sparklemotion/nokogiri/issues/1625 | 216,851,325 | 1,625 |
[
"sparklemotion",
"nokogiri"
] | Our app was using
```
gem 'nokogiri', '~> 1.6.8'
```
and today I had to update `nokogiri` to resolve
```
Name: nokogiri
Version: 1.6.8.1
Advisory: CVE-2016-4658
Criticality: Unknown
URL: https://github.com/sparklemotion/nokogiri/issues/1615
Title: Nokogiri gem contains several vulnerabilities in libxml2 a... | Bundler not finding 1.7.1 nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1624/comments | 3 | 2017-03-23T21:16:00Z | 2017-03-24T17:44:16Z | https://github.com/sparklemotion/nokogiri/issues/1624 | 216,575,215 | 1,624 |
[
"sparklemotion",
"nokogiri"
] | From the commits history I've seen there was some work done to make `nokogiri` compatible with `--enable-frozen-string-literal`.
However, this fails for me on ruby `2.3.3` on `ubuntu xenial`:
```shell
$ export RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
$ gem install nokogiri -v '1.7.1'... | Frozen string literal regression | https://api.github.com/repos/sparklemotion/nokogiri/issues/1623/comments | 1 | 2017-03-23T11:29:43Z | 2017-03-23T11:42:54Z | https://github.com/sparklemotion/nokogiri/issues/1623 | 216,397,174 | 1,623 |
[
"sparklemotion",
"nokogiri"
] | This documentation explains how to install build prerequisites for Nokogiri. BUT IT LEAVES OUT THE MOST IMPORTANT ONES.
Please also include documentation for Linux Mint or similar for how to install the system library packages that Nokogiri needs with NOKOGIRI_USE_SYSTEM_LIBRARIES.
We found `libxml2` but `libxslt... | http://www.nokogiri.org/tutorials/installing_nokogiri.html | https://api.github.com/repos/sparklemotion/nokogiri/issues/1620/comments | 2 | 2017-03-21T21:35:52Z | 2017-05-06T21:16:00Z | https://github.com/sparklemotion/nokogiri/issues/1620 | 215,885,612 | 1,620 |
[
"sparklemotion",
"nokogiri"
] | Lots of Ruby scripts and other software depends on Nokogiri. And all of those end-user programs will make a [note like this](https://github.com/gjtorikian/html-proofer).
> NOTE: When installation speed matters, set NOKOGIRI_USE_SYSTEM_LIBRARIES to true in your environment. This is useful for increasing the speed of... | Default to NOKOGIRI_USE_SYSTEM_LIBRARIES=true | https://api.github.com/repos/sparklemotion/nokogiri/issues/1619/comments | 2 | 2017-03-21T20:12:32Z | 2021-02-16T17:05:34Z | https://github.com/sparklemotion/nokogiri/issues/1619 | 215,863,536 | 1,619 |
[
"sparklemotion",
"nokogiri"
] | [Nokogiri 1.7.0.1 x64-mingw32 fat binary gem](https://rubygems.org/gems/nokogiri/versions/1.7.0.1-x64-mingw32) doesn't support Ruby 2.4.
Could you release a new one for Ruby 2.4? | Release Windows fat gem for Ruby 2.4 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1618/comments | 19 | 2017-03-18T12:08:19Z | 2017-06-29T17:50:59Z | https://github.com/sparklemotion/nokogiri/issues/1618 | 215,189,518 | 1,618 |
[
"sparklemotion",
"nokogiri"
] | `ext/nokogiri/xml_node.c:1263` contains the line:
`return INT2NUM(xmlGetLineNo(node));`
but the signature of `xmlGetLineNo` according to libxml2 2.8.0 (tree.c:4527) is
```
long
xmlGetLineNo(xmlNodePtr node)
```
so libxml2 is returning a `long` that is passed to a macro function that accepts an `int` , s... | Line number capped at 65535 but libxml2 already returns long. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1617/comments | 8 | 2017-03-17T09:40:11Z | 2021-08-14T17:01:51Z | https://github.com/sparklemotion/nokogiri/issues/1617 | 214,952,489 | 1,617 |
[
"sparklemotion",
"nokogiri"
] | Before shipping 1.7.1 remember to add these files to `Manifest.txt`:
```
@@ -76,6 +84,7 @@
ext/java/nokogiri/internals/SaveContextVisitor.java
ext/java/nokogiri/internals/SchemaErrorHandler.java
ext/java/nokogiri/internals/UncloseableInputStream.java
+ext/java/nokogiri/internals/XalanDTMManagerPatch.java
e... | add files to Manifest | https://api.github.com/repos/sparklemotion/nokogiri/issues/1616/comments | 1 | 2017-03-17T03:24:52Z | 2017-03-17T04:25:46Z | https://github.com/sparklemotion/nokogiri/issues/1616 | 214,898,032 | 1,616 |
[
"sparklemotion",
"nokogiri"
] | Canonical updated Ubuntu's `libxml2` package today with some patches that have been applied upstream but are not yet in an official libxml release.
**I think we should we apply these patches to nokogiri's vendored libxml2**, but I'd like to provide a period for informed observers to comment.
If you feel strongly ... | RFC: applying patches from USN-3235-1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1615/comments | 11 | 2017-03-17T01:26:09Z | 2017-03-30T22:12:37Z | https://github.com/sparklemotion/nokogiri/issues/1615 | 214,883,775 | 1,615 |
[
"sparklemotion",
"nokogiri"
] | Hello,
I am trying to write a customized function to search for an attribute in node, instead of using search method, could you please check if it is correct.
This is my XML node.
<pdpContext>
<id>30</id>
<type>4</type>
<qosProfile>service</qosProfile>
<apn>... | Node search method vs customized functtion | https://api.github.com/repos/sparklemotion/nokogiri/issues/1614/comments | 1 | 2017-03-15T17:57:28Z | 2017-03-17T13:26:23Z | https://github.com/sparklemotion/nokogiri/issues/1614 | 214,475,656 | 1,614 |
[
"sparklemotion",
"nokogiri"
] | Hi, I have an xml document with more than 200 lines, although using the SAX only parses the first +/- 200 lines (or x characters) and then finishes reading. Am I doing something wrong?
Basically, after the +/- first 200 lines (or x characters) the start_element is never called again for that file.
This is what I'... | Nokogiri::XML::SAX::Document Not reading all document | https://api.github.com/repos/sparklemotion/nokogiri/issues/1612/comments | 0 | 2017-03-08T13:52:22Z | 2017-03-08T15:08:13Z | https://github.com/sparklemotion/nokogiri/issues/1612 | 212,739,655 | 1,612 |
[
"sparklemotion",
"nokogiri"
] | related to 879d346 (which is on master but has not been released yet)
this code, running on master with the above commit:
```ruby
Nokogiri::XML('<ns1:Root></ns1:Root>').xpath('//ns1:Root)
```
emits:
```
Nokogiri::XML::XPath::SyntaxError: 0:0: ERROR: Undefined namespace prefix: //ns1:Root
```
Note tha... | SyntaxError.to_s should not display line and column if both (either?) are zero | https://api.github.com/repos/sparklemotion/nokogiri/issues/1611/comments | 0 | 2017-03-06T01:38:40Z | 2017-05-06T21:09:55Z | https://github.com/sparklemotion/nokogiri/issues/1611 | 212,004,178 | 1,611 |
[
"sparklemotion",
"nokogiri"
] | Memory leak is observed while searching in a document with undefined namespace prefix.
```text
# Nokogiri (1.7.0.1)
---
warnings: []
nokogiri: 1.7.0.1
ruby:
version: 2.3.1
platform: x86_64-linux
description: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
eng... | `Nokogiri_error_raise` as a libxml2 handler considered harmful | https://api.github.com/repos/sparklemotion/nokogiri/issues/1610/comments | 7 | 2017-03-01T21:12:50Z | 2024-12-16T17:21:17Z | https://github.com/sparklemotion/nokogiri/issues/1610 | 211,209,692 | 1,610 |
[
"sparklemotion",
"nokogiri"
] | Hello,
I am facing a memleak on this sample program of adding/removing nodes using nokogiri.
I have put my code at https://gist.github.com/rahulroot/dca9a06a73d9b29f7a329ae0e72001a4,
I am using Jmeter to fire the attached xml over a 100 tps. Memory grows from 14m to 3.7g in 12 hours...
First I thought there mi... | Memleak Issue with sample program using Nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1609/comments | 6 | 2017-03-01T07:47:16Z | 2021-02-16T17:04:16Z | https://github.com/sparklemotion/nokogiri/issues/1609 | 211,003,725 | 1,609 |
[
"sparklemotion",
"nokogiri"
] | libiconv 1.15 was released about a week ago.
changelog is here: https://fossies.org/diffs/libiconv/1.14_vs_1.15/ChangeLog-diff.html
| Upgrade to libiconv 1.15 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1605/comments | 0 | 2017-02-13T04:48:13Z | 2017-05-31T19:46:40Z | https://github.com/sparklemotion/nokogiri/issues/1605 | 207,121,430 | 1,605 |
[
"sparklemotion",
"nokogiri"
] | The file `test/test_memory_leak.rb` and the teardown behavior controlled by the `NOKOGIRI_GC` env var could be useful.
Consider resurrecting these.
Acceptance criteria:
* suite needs to finish in a reasonable amount of time (currently many are looping literally forever)
* suite needs to be runnable under valg... | resurrect the GC / memory pressure test suite | https://api.github.com/repos/sparklemotion/nokogiri/issues/1603/comments | 2 | 2017-02-09T17:55:28Z | 2023-12-11T17:53:40Z | https://github.com/sparklemotion/nokogiri/issues/1603 | 206,581,251 | 1,603 |
[
"sparklemotion",
"nokogiri"
] | It's not clear to me what it's for.
| task: consider deleting `test:installed` rake task | https://api.github.com/repos/sparklemotion/nokogiri/issues/1602/comments | 0 | 2017-02-09T17:43:27Z | 2019-01-05T01:36:35Z | https://github.com/sparklemotion/nokogiri/issues/1602 | 206,578,024 | 1,602 |
[
"sparklemotion",
"nokogiri"
] | Now that I'm moving to a more flexible build system based on Concourse and pristine docker images, this feels not-useful anymore. I haven't used this tasks in years, honestly.
Consider deleting it.
| task: consider removing `test:multixml2` rake task | https://api.github.com/repos/sparklemotion/nokogiri/issues/1601/comments | 1 | 2017-02-09T17:39:33Z | 2019-01-05T01:36:54Z | https://github.com/sparklemotion/nokogiri/issues/1601 | 206,577,089 | 1,601 |
[
"sparklemotion",
"nokogiri"
] | Are these useful? If so, fix them up and document them. If not, delete them. | task: look at rdoc rake tasks in tasks/test.rb | https://api.github.com/repos/sparklemotion/nokogiri/issues/1600/comments | 1 | 2017-02-09T17:37:46Z | 2019-01-05T01:37:06Z | https://github.com/sparklemotion/nokogiri/issues/1600 | 206,576,607 | 1,600 |
[
"sparklemotion",
"nokogiri"
] | I'm trying to parse the following document: https://lists.debian.org/debian-devel-announce/2017/02/msg00001.html but I reliably get a `NoMethodError` exception.
This code fragment causes the exception:
```ruby
@document.title
```
Whereas this works as you'd exepct:
```ruby
@document.search('//title').inn... | NoMethodError: undefined method `title' for #<Nokogiri::XML::Document:0x007fe6605bf290> | https://api.github.com/repos/sparklemotion/nokogiri/issues/1599/comments | 4 | 2017-02-06T06:15:01Z | 2017-02-07T16:39:50Z | https://github.com/sparklemotion/nokogiri/issues/1599 | 205,495,984 | 1,599 |
[
"sparklemotion",
"nokogiri"
] | e.g. `xml.xpath('nokogiri:anint()', @ns, @handler)` (where `@handler#anint` returns a Fixnum) | xpath function returning an int fails under jruby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1595/comments | 2 | 2017-01-31T10:03:03Z | 2017-02-10T07:26:22Z | https://github.com/sparklemotion/nokogiri/issues/1595 | 204,250,190 | 1,595 |
[
"sparklemotion",
"nokogiri"
] | Hello Everyone,
My name is anurag miglani, I am currently working as a data scientist, when I am trying to open a URL it is not returning anything to me.
require "nokogiri"
require "open-uri"
doc = Nokogiri::HTML(open("https://boston.craigslist.org/search/bik"))
puts doc.validate
####Output
miglanianurag:~... | css not returning anything, doc.validate is error... | https://api.github.com/repos/sparklemotion/nokogiri/issues/1589/comments | 1 | 2017-01-26T10:14:42Z | 2017-01-26T12:02:10Z | https://github.com/sparklemotion/nokogiri/issues/1589 | 203,334,510 | 1,589 |
[
"sparklemotion",
"nokogiri"
] | ## If you're having trouble installing Nokogiri ...
build fail on armhf nogogiri
**Have you tried following [the installation tutorial][tutorial]?**
http://www.nokogiri.org/tutorials/installing_nokogiri.html#ubuntu___debian
**What is the output of `gem install`?**
```
:/opt/msf-devel/metasploit-framework$ sud... | nogogiri build fail on armhf | https://api.github.com/repos/sparklemotion/nokogiri/issues/1588/comments | 7 | 2017-01-24T14:12:49Z | 2021-02-16T17:05:33Z | https://github.com/sparklemotion/nokogiri/issues/1588 | 202,828,720 | 1,588 |
[
"sparklemotion",
"nokogiri"
] | I'm using ruby 1.9.3 on my app and I'm unable to run bundle because nokogiri requires a Ruby version >= 2.1.0. I've already tried the following command line with no success.
gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/usr/include/libxml2
ERROR: Error installing nokogiri:
nokogiri re... | Unable to install nokogiri using Ruby 1.9.3 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1587/comments | 2 | 2017-01-16T11:33:37Z | 2017-02-10T09:23:47Z | https://github.com/sparklemotion/nokogiri/issues/1587 | 200,995,758 | 1,587 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
`XML::Reader` does not return parse errors on JRuby (though it does with libxml2/MRI).
**What's the output from `nokogiri -v`?**
```
# Nokogiri (1.7.0)
---
warnings: []
nokogiri: 1.7.0
ruby:
version: 2.3.1
platform: java
descript... | [JRuby] XML::Reader does not return errors | https://api.github.com/repos/sparklemotion/nokogiri/issues/1586/comments | 0 | 2017-01-15T17:37:13Z | 2017-02-10T08:53:53Z | https://github.com/sparklemotion/nokogiri/issues/1586 | 200,882,272 | 1,586 |
[
"sparklemotion",
"nokogiri"
] |
**What problems are you experiencing?**
We got a production issue due to there is an empty namespace inside one of the XML tags. But according to the log, seems we can not found the issue part.
As an example, if we run
`Nokogiri.XML("<a xmlns:v1=\"\">test</a>").to_s`
then we got
`"<?xml version=\"1.0\"?>... | Why is the blank namespace been removed after XML parse | https://api.github.com/repos/sparklemotion/nokogiri/issues/1584/comments | 2 | 2017-01-13T04:07:37Z | 2017-01-13T13:47:52Z | https://github.com/sparklemotion/nokogiri/issues/1584 | 200,543,479 | 1,584 |
[
"sparklemotion",
"nokogiri"
] | related to #1582
the documentation of `XML::Document#parse` is slightly misleading in that it instructs people how to parse untrusted documents; when in reality since b2c2809 in 2012, `NONET` has been set by default.
let's update those docs to more clearly state that Nokogiri by default does not trust documents.... | updated XML::Document docs to be clearer about untrusted docs and `NONET` | https://api.github.com/repos/sparklemotion/nokogiri/issues/1583/comments | 0 | 2017-01-11T22:01:14Z | 2017-01-11T22:06:00Z | https://github.com/sparklemotion/nokogiri/issues/1583 | 200,220,608 | 1,583 |
[
"sparklemotion",
"nokogiri"
] | Credit for reporting this vulnerability to Nokogiri Core goes to Danny Grander <danny@snyk.io>, @grnd. Thanks, Danny!
This issue is being opened for nokogiri core to triage this vulnerability within the context of Nokogiri.
---
**Triage summary**:
Applications using Nokogiri 1.5.4 (circa June 2012) and late... | libxml 2.9.{4,5,...} is vulnerable to CVE-2016-9318 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1582/comments | 27 | 2017-01-11T21:38:23Z | 2023-01-01T15:25:24Z | https://github.com/sparklemotion/nokogiri/issues/1582 | 200,214,431 | 1,582 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri has difficulties if the XML input contains vertical tab characters ("\v") within attribute values. It appears to abort element parsing and treat all following text, up to the next element start, as a text node.
The following script reproduces this:
```
require 'nokogiri'
require 'pp'
print Nokogiri::V... | XML parsing fails at vertical tab characters in attributes | https://api.github.com/repos/sparklemotion/nokogiri/issues/1581/comments | 6 | 2017-01-11T19:09:28Z | 2017-01-14T00:01:20Z | https://github.com/sparklemotion/nokogiri/issues/1581 | 200,180,505 | 1,581 |
[
"sparklemotion",
"nokogiri"
] | ok, so doing :
```ruby
puts field
node =
(tag[:meta][:before] ? self.send(tag[:meta][:before],item,res) : item)
.xpath(".%s" % tag[:path])
puts field == "zoop"
# puts node.inspect if field == "zoop"
puts node if field == "zoop"
```
results ... | I'm getting non-consistant behavior which is making it hard to tell what's going on when I'm trying to debug | https://api.github.com/repos/sparklemotion/nokogiri/issues/1579/comments | 5 | 2017-01-09T13:53:10Z | 2021-02-16T17:04:15Z | https://github.com/sparklemotion/nokogiri/issues/1579 | 199,557,163 | 1,579 |
[
"sparklemotion",
"nokogiri"
] | Ruby code demonstrating the problem: [bug_nokogiri.rb](https://github.com/sparklemotion/nokogiri/files/692822/bug_nokogiri.rb.txt)
Output from ruby code demonstrating the problem: [bug_nokogiri.txt](https://github.com/sparklemotion/nokogiri/files/692823/bug_nokogiri.txt)
**What problems are you experiencing?**
T... | Collapsing adjacent text nodes is too aggressive | https://api.github.com/repos/sparklemotion/nokogiri/issues/1578/comments | 5 | 2017-01-09T06:50:16Z | 2021-02-16T17:05:51Z | https://github.com/sparklemotion/nokogiri/issues/1578 | 199,487,605 | 1,578 |
[
"sparklemotion",
"nokogiri"
] | I noticed that the HTML SAX parser fails when reading the same html from a file vs a string. It chokes on any badly formed tags such as `<br >` from an IO source
I've added a test to highlight the issue in #1576
If anyone could point me in a general direction I would be more than happy to try fix this. | HTML SAX parsing works when using a string but fails when using a file | https://api.github.com/repos/sparklemotion/nokogiri/issues/1577/comments | 2 | 2017-01-05T01:58:13Z | 2017-01-13T17:36:35Z | https://github.com/sparklemotion/nokogiri/issues/1577 | 198,857,956 | 1,577 |
[
"sparklemotion",
"nokogiri"
] | #empty? method behaving very strangely | https://api.github.com/repos/sparklemotion/nokogiri/issues/1575/comments | 0 | 2017-01-04T23:48:08Z | 2017-01-04T23:52:48Z | https://github.com/sparklemotion/nokogiri/issues/1575 | 198,840,684 | 1,575 | |
[
"sparklemotion",
"nokogiri"
] | ## If you're having trouble installing Nokogiri ...
**Have you tried following [the installation tutorial][tutorial]?**
Yes
**What is the output of `gem install`?**
Although I already installed GCC from ports as tutorial suggests it complains with:
Please install gcc 4.9+ from ports using `pkg_add -v gcc`
... | 1.7.0 in OpenBSD doesn't install | https://api.github.com/repos/sparklemotion/nokogiri/issues/1569/comments | 5 | 2016-12-28T15:10:11Z | 2016-12-29T20:39:27Z | https://github.com/sparklemotion/nokogiri/issues/1569 | 197,867,747 | 1,569 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
Nokogiri 1.7.0 was released last night (https://github.com/sparklemotion/nokogiri/commit/c5e8e124a5266d0c2779dcd79ced8204d88bf16d). It contains commit https://github.com/sparklemotion/nokogiri/commit/84870381847cb83b6a530f5eef2460026ade49f6 which removes support for ruby versi... | Dropping ruby 1.9 and 2.0 support in a minor version breaks semver | https://api.github.com/repos/sparklemotion/nokogiri/issues/1568/comments | 2 | 2016-12-28T02:16:46Z | 2020-02-02T04:09:44Z | https://github.com/sparklemotion/nokogiri/issues/1568 | 197,784,759 | 1,568 |
[
"sparklemotion",
"nokogiri"
] | Errors with nokogiri 1.6.8.1
````
::Fixnum is deprecated
/home/jenkins-test/.rvm/gems/ruby-2.4.0@drt_ui/gems/nokogiri-1.6.8.1/lib/nokogiri/html/document.rb:164: warning: constant ::Fixnum is deprecated
/home/jenkins-test/.rvm/gems/ruby-2.4.0@drt_ui/gems/nokogiri-1.6.8.1/lib/nokogiri/html/document.rb:164: warning: c... | Nokogiri ruby 2.4.0 compatibility | https://api.github.com/repos/sparklemotion/nokogiri/issues/1566/comments | 5 | 2016-12-27T10:14:20Z | 2017-01-02T10:09:38Z | https://github.com/sparklemotion/nokogiri/issues/1566 | 197,680,187 | 1,566 |
[
"sparklemotion",
"nokogiri"
] | With Ruby 2.4.0 released yesterday, it'd be great to have a release of Nokogiri that avoids deprecation warnings.
The fix was added a while ago.
https://github.com/sparklemotion/nokogiri/pull/1545
And primed ready for a 1.7.0 release
https://github.com/sparklemotion/nokogiri/commit/7f8b7b2bf55829e02cd11c2eb2581... | release a version that avoids Ruby 2.4.0 deprecation warnings | https://api.github.com/repos/sparklemotion/nokogiri/issues/1565/comments | 3 | 2016-12-26T23:54:17Z | 2016-12-27T03:58:19Z | https://github.com/sparklemotion/nokogiri/issues/1565 | 197,627,748 | 1,565 |
[
"sparklemotion",
"nokogiri"
] | Upgraded to Ruby 2.4.0 last night and upon launching app in development was greeted with the following in the console: `nokogiri-1.6.8.1/lib/nokogiri/html/document.rb:164: warning: constant ::Fixnum is deprecated`
Thought this was solved in #1545 but seeing a red`x` in the commit history for this merge, so guessing ... | Fixnum is deprecated warning under Ruby 2.4.0 and Nokogiri 1.6.8.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1564/comments | 1 | 2016-12-25T14:35:05Z | 2016-12-25T16:15:20Z | https://github.com/sparklemotion/nokogiri/issues/1564 | 197,503,379 | 1,564 |
[
"sparklemotion",
"nokogiri"
] | What is happening is that libxml2.a and libxslt.a get built beneath "lib64" subdirectories per the openSUSE standard, but then when the nokogiri code attempts to link to those libraries, it looks for them in a "lib" subdirectory instead of "lib64".
So it seems that there may be a hardcoded "lib" subdirectory path so... | Install fails on openSUSE with site-config and `lib64` | https://api.github.com/repos/sparklemotion/nokogiri/issues/1562/comments | 30 | 2016-12-21T23:42:27Z | 2017-08-31T14:49:41Z | https://github.com/sparklemotion/nokogiri/issues/1562 | 197,060,679 | 1,562 |
[
"sparklemotion",
"nokogiri"
] | ```
require "nokogiri"
class Doc < Nokogiri::XML::SAX::Document
def start_element name, attrs = []
puts "start: \"#{name}\""
end
def characters string
puts "characters: \"#{string}\""
end
def end_element name
puts "end: \"#{name}\""
end
end
Nokogiri::HTML::SAX::Parser.new(Do... | Java version of sax parser doesn't care about the order of text nodes | https://api.github.com/repos/sparklemotion/nokogiri/issues/1561/comments | 4 | 2016-12-16T18:48:28Z | 2024-07-02T20:24:04Z | https://github.com/sparklemotion/nokogiri/issues/1561 | 196,128,740 | 1,561 |
[
"sparklemotion",
"nokogiri"
] | Please see https://github.com/bundler/bundler/issues/5207 -- originally I thought this was a Bundler issue but the guys over there were kind enough to point me in your direction.
That issue should have all the related Nokogiri output required. | Nokogiri can't find pkg-config on OpenBSD | https://api.github.com/repos/sparklemotion/nokogiri/issues/1560/comments | 13 | 2016-11-29T20:37:02Z | 2021-02-16T17:04:14Z | https://github.com/sparklemotion/nokogiri/issues/1560 | 192,392,498 | 1,560 |
[
"sparklemotion",
"nokogiri"
] | /usr/local/lib/ruby/site_ruby/2.2/rubygems/dependency.rb:308:in `to_specs': Could not find 'pkg-config' (~> 1.1.7) among 36 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/root/.gem/ruby/2.2:/usr/local/lib/ruby/gems/2.2', execute `gem env` for more information
from /usr/local/lib/ruby/site_ruby/2.2/rubyge... | Fails to compile of FreeBSD11 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1559/comments | 1 | 2016-11-26T21:34:52Z | 2016-11-26T22:21:22Z | https://github.com/sparklemotion/nokogiri/issues/1559 | 191,828,017 | 1,559 |
[
"sparklemotion",
"nokogiri"
] | When i try to install nokogiri, this error occur and remain this messages..
What can i do to solve this error?
------------------------------------------
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
current directory: /Users/seojonghyeon/.rbenv/versions/2.3.1/lib/rub... | Failed to build gem native extension | https://api.github.com/repos/sparklemotion/nokogiri/issues/1557/comments | 1 | 2016-11-08T11:40:35Z | 2016-11-08T12:25:23Z | https://github.com/sparklemotion/nokogiri/issues/1557 | 187,970,330 | 1,557 |
[
"sparklemotion",
"nokogiri"
] | ## If you're having trouble installing Nokogiri ...
**Have you tried following [the installation tutorial][tutorial]?**
**What is the output of `gem install`?**
**What are the contents of the `mkmf.log` file?**
**What operating system are you using?**
## If this isn't an installation issue ...
**Wha... | native extension | https://api.github.com/repos/sparklemotion/nokogiri/issues/1556/comments | 0 | 2016-11-08T11:08:02Z | 2016-11-08T11:08:45Z | https://github.com/sparklemotion/nokogiri/issues/1556 | 187,963,849 | 1,556 |
[
"sparklemotion",
"nokogiri"
] | Hi,
I'm getting SEGMENTATION FAULT with Nokogiri v1.6.8.1 and Ruby v1.9.3 when I require the gem in my ruby scripts.
Everything is fine when I use Ruby v2.3.1.
`/opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36: [BUG] Segmentation fault
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64... | Nokogiri v1.6.8.1 Segmentation Fault with Ruby v1.9.3 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1555/comments | 2 | 2016-11-07T16:09:09Z | 2019-01-05T03:23:25Z | https://github.com/sparklemotion/nokogiri/issues/1555 | 187,752,791 | 1,555 |
[
"sparklemotion",
"nokogiri"
] | Hello Everyone,
Firstly, thank you immensely for the work which has been undertaken in developing and supporting this Gem. The value of this contribution to the community cannot be overstated.
I believe that I may have found an issue relating to `Nokogiri::XML::fragment`. I experience anomalous behavior when I ... | XML Entity References Fail for Nokogiri::XML::fragment | https://api.github.com/repos/sparklemotion/nokogiri/issues/1554/comments | 2 | 2016-11-03T20:28:42Z | 2019-01-05T03:29:58Z | https://github.com/sparklemotion/nokogiri/issues/1554 | 187,181,072 | 1,554 |
[
"sparklemotion",
"nokogiri"
] | We have an svg with a large base64 encoded image (attached) that is not parsing correctly.
```ruby
file = Nokogiri::XML(File.read('DM_V3-front.svg'))
file.remove_namespaces!
file.xpath('//image/@href').count # => 0 (should be 1)
file.xpath('//image').count # => 1 (it is finding th... | SVG Parsing Error | https://api.github.com/repos/sparklemotion/nokogiri/issues/1552/comments | 3 | 2016-11-01T17:12:04Z | 2016-11-08T12:33:40Z | https://github.com/sparklemotion/nokogiri/issues/1552 | 186,590,425 | 1,552 |
[
"sparklemotion",
"nokogiri"
] | ## Nokogiri + safe navigation methods chain
**What problems are you experiencing?**
Trying to parse an HTML document using chain of methods. In case page contains all the elements for my CSS selectors — everytihing works perfectly fine, but in case I doesn't I'd like to use `.try` or built-in safe navigation oper... | Nokogiri + safe navigation methods chain | https://api.github.com/repos/sparklemotion/nokogiri/issues/1551/comments | 3 | 2016-10-31T21:43:46Z | 2017-05-10T05:52:20Z | https://github.com/sparklemotion/nokogiri/issues/1551 | 186,405,581 | 1,551 |
[
"sparklemotion",
"nokogiri"
] | **Have you tried following [the installation tutorial][tutorial]?**
yes
**What is the output of `gem install`?**
```
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.
C:/R... | Install fails on Windows 10 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1550/comments | 3 | 2016-10-29T23:03:23Z | 2016-11-30T18:00:43Z | https://github.com/sparklemotion/nokogiri/issues/1550 | 186,106,116 | 1,550 |
[
"sparklemotion",
"nokogiri"
] | ## If you're having trouble installing Nokogiri ...
**Have you tried following [the installation tutorial][tutorial]?**
I am simply trying to get Jekyll up and running, which worked on a different Mac, but there I had installed things before upgrading to Sierra.
**What is the output of `gem install`?**
```
dretpro:... | Installation failure on Sierra | https://api.github.com/repos/sparklemotion/nokogiri/issues/1549/comments | 2 | 2016-10-27T13:46:58Z | 2016-10-31T00:08:11Z | https://github.com/sparklemotion/nokogiri/issues/1549 | 185,673,075 | 1,549 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
Incredibly, on Heroku:
```
Nokogiri::HTML.fragment('<p>Hello, world</p>').elements # => []
```
Note that only the combination of using `fragment` and `elements` fail. Using `chidren` instead works, or `parse` instead of `fragment` is also fine:
```
Nokogiri::HTML.fragment('<p... | Nokogiri::HTML.fragment has no elements on Heroku | https://api.github.com/repos/sparklemotion/nokogiri/issues/1548/comments | 6 | 2016-10-26T10:56:18Z | 2017-04-21T20:27:14Z | https://github.com/sparklemotion/nokogiri/issues/1548 | 185,360,433 | 1,548 |
[
"sparklemotion",
"nokogiri"
] | Trying to install all the gems of a rails project, I getting a error for install `nokogiri`, but as you can see in the below logs, I'd already installed the following versions (1.6.8.1, 1.6.6.2), but on the way after `bundle` Im getting the error.
---
How do I installed?
```
→ gem install nokogiri -- --use-system-li... | Installation of nokogiri fail with bundle on macOS Sierra 10.12 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1547/comments | 4 | 2016-10-13T03:06:17Z | 2018-10-13T02:08:16Z | https://github.com/sparklemotion/nokogiri/issues/1547 | 182,684,401 | 1,547 |
[
"sparklemotion",
"nokogiri"
] | When I run the `bundle update` command on my current branch I get the following error.
```
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed
(https://rubygems.org/gems/nokogiri-1.6.8.1-x86-mingw32.gem)
An error occurred while installing noko... | Gem Remotefetcher error | https://api.github.com/repos/sparklemotion/nokogiri/issues/1546/comments | 1 | 2016-10-11T12:14:52Z | 2016-10-11T13:11:10Z | https://github.com/sparklemotion/nokogiri/issues/1546 | 182,248,174 | 1,546 |
[
"sparklemotion",
"nokogiri"
] | Installing nokogiri (1.6.8) sh: line 1: 6048 Aborted (core dumped) /somepath/vendor/ruby-2.1.2/bin/ruby extconf.rb 2>&1
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
```
/somepath/vendor/ruby-2.1.2/bin/ruby extconf.rb
```
Using pkg-config version 1.1.7
checking if the C compiler... | Installation fails when running OS in FIPS-enabled mode due to use of MD5 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1544/comments | 13 | 2016-10-06T17:30:35Z | 2017-06-05T01:44:37Z | https://github.com/sparklemotion/nokogiri/issues/1544 | 181,477,668 | 1,544 |
[
"sparklemotion",
"nokogiri"
] | Using rake 11.3.0
Using concurrent-ruby 1.0.2
Using i18n 0.7.0
Using minitest 5.9.1
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 2.0.1
Using nio4r 1.2.1
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 7.1.2
Using execjs 2.7.0
Using bcr... | Build failed (v1.6.8.1) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1542/comments | 1 | 2016-10-05T11:09:40Z | 2016-10-05T15:08:30Z | https://github.com/sparklemotion/nokogiri/issues/1542 | 181,124,812 | 1,542 |
[
"sparklemotion",
"nokogiri"
] | I tried with clean installed ruby 2.3.1 on Debian GNU/Linux 8.6 (jessie).
I don't know what happened. And I don't know where is root of problem: nokogiri versioning, bundler bug, or something else.
``` console
% rbenv uninstall 2.3.1
(snip)
% rbenv install 2.3.1
(snip)
% mkdir /tmp/hoge
% cd /tmp/hoge
% gem install bu... | bundler-1.11.2 can install nokogiri-1.6.8.1, but bundler-1.12.5 and bundler-1.13.2 can't | https://api.github.com/repos/sparklemotion/nokogiri/issues/1541/comments | 6 | 2016-10-04T09:22:42Z | 2016-10-05T03:51:46Z | https://github.com/sparklemotion/nokogiri/issues/1541 | 180,843,793 | 1,541 |
[
"sparklemotion",
"nokogiri"
] | ## If you're having trouble installing Nokogiri ...
**Have you tried following [the installation tutorial][tutorial]?**
Yes
**What is the output of `gem install`?**
```
HEAD https://api.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=nokogiri
200 OK
Getting SRV record fa... | error: use of undeclared identifier 'LZMA_OK' | https://api.github.com/repos/sparklemotion/nokogiri/issues/1540/comments | 8 | 2016-10-03T16:07:43Z | 2017-03-12T17:39:24Z | https://github.com/sparklemotion/nokogiri/issues/1540 | 180,680,221 | 1,540 |
[
"sparklemotion",
"nokogiri"
] | Version 1.6.8.1 includes a commit that removes support for several Ruby versions. This seems like it should be a Major version kind of thing - it has probably broken quite a lot of things.
| Version 1.6.8.1 breaks semantic versioning | https://api.github.com/repos/sparklemotion/nokogiri/issues/1539/comments | 3 | 2016-10-03T12:36:20Z | 2016-10-04T09:08:01Z | https://github.com/sparklemotion/nokogiri/issues/1539 | 180,629,650 | 1,539 |
[
"sparklemotion",
"nokogiri"
] | Could you help me, please?
I found an issue when building libxml2 2.9.4 during installation of nokogiri. (gem install nokogiri)
The macro HAVE_LZMA_H is NOT set to 1, so that libxml2 cannot find LZMA_OK in lzma/base.h. In fact, it doesn't include this header files. Maybe something is wrong in extconf.rb. How can I fi... | Failure of building nokogiri is due to failure of building libxml2 2.9.4 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1537/comments | 6 | 2016-09-24T19:24:25Z | 2017-02-10T09:35:48Z | https://github.com/sparklemotion/nokogiri/issues/1537 | 179,047,269 | 1,537 |
[
"sparklemotion",
"nokogiri"
] | It's easy to reproduce:
```
2.1.5 :013 > Nokogiri.parse "<a>ABC\u0000XYZ</a>"
=> #<Nokogiri::XML::Document:0x120b3e4 name="document"
children=[#<Nokogiri::XML::Element:0x120b010
name="a"
children=[#<Nokogiri::XML::Text:0x120ade0 "ABC">]>]>
```
Everything that comes after `\u0000` is ignored. `XYZ` doe... | \u0000 is treated as end of string, even if it's not | https://api.github.com/repos/sparklemotion/nokogiri/issues/1535/comments | 2 | 2016-09-22T16:06:59Z | 2016-10-03T08:03:48Z | https://github.com/sparklemotion/nokogiri/issues/1535 | 178,652,354 | 1,535 |
[
"sparklemotion",
"nokogiri"
] | Hi,
Nokogiri's `search` function is throwing error on xpath starting with `(`.
For example following string throws error mentioned in the title of this issue:
```
- (//div[@data-page='SRPLIST'])[index]
- (//div[class='someclass'])[index]
```
Is it a intentional feature of search function to exclude xpaths starting fr... | Nokogiri::CSS::SyntaxError: unexpected '(' after '' | https://api.github.com/repos/sparklemotion/nokogiri/issues/1534/comments | 6 | 2016-09-19T20:09:43Z | 2025-03-24T01:51:07Z | https://github.com/sparklemotion/nokogiri/issues/1534 | 177,884,238 | 1,534 |
[
"sparklemotion",
"nokogiri"
] | Hello,
Not a "problem report" but a "solution report" :-) :
When trying to install rails via gem install rails, it fails when trying to compile/install nokogiri, because of the error:
**xmlIO.c:1450:52: error: use of undeclared identifier 'LZMA_OK'**
This is because either LZMA Library isn't installed or is a wron... | Issue relating Nokogiri, LIBXML2 AND LZMA on Mac OS X | https://api.github.com/repos/sparklemotion/nokogiri/issues/1533/comments | 0 | 2016-09-18T08:56:09Z | 2016-09-18T08:57:40Z | https://github.com/sparklemotion/nokogiri/issues/1533 | 177,639,918 | 1,533 |
[
"sparklemotion",
"nokogiri"
] | It seems like somehow I don't have the right libraries. Here's the error messages. In previous threads, some people have said that running `xcode-select --install` works for them; however, when I run that command, I get: `xcode-select: error: command line tools are already installed, use "Software Update" to install up... | nokogiri install failing | https://api.github.com/repos/sparklemotion/nokogiri/issues/1532/comments | 2 | 2016-09-17T17:48:09Z | 2016-09-19T21:36:17Z | https://github.com/sparklemotion/nokogiri/issues/1532 | 177,594,406 | 1,532 |
[
"sparklemotion",
"nokogiri"
] | I'm trying to canonicalize something like this:
`<foo></foo><baz></baz>`
But, Nokogiri#canonicalize returns only the foo portion: `<foo></foo>`
When I wrapped this with another tag, this works properly:
`<foo><baz></baz></foo>`
So, I wonder if this is the right way the nokogiri does canonicalize, or if this is in... | Canonicalization doesn't works with no root tag in xml document | https://api.github.com/repos/sparklemotion/nokogiri/issues/1530/comments | 1 | 2016-09-09T14:18:54Z | 2016-09-09T16:55:32Z | https://github.com/sparklemotion/nokogiri/issues/1530 | 176,021,060 | 1,530 |
[
"sparklemotion",
"nokogiri"
] | ```
libxml2 2.9.4 CVE-2016-4448 10 /var/www/discourse/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/nokogiri-1.6.8/nokogiri/nokogiri.so
libxml2 2.9.4 CVE-2016-4448 10 /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/nokogiri-1.6.8/ext/nokogiri/nokogiri.so
libxml2 2.9.4 CVE-2016-4... | Docker scan is complaining that the statically bundled libxml is riddled with security vuls | https://api.github.com/repos/sparklemotion/nokogiri/issues/1528/comments | 7 | 2016-08-31T21:58:47Z | 2016-09-01T02:45:52Z | https://github.com/sparklemotion/nokogiri/issues/1528 | 174,389,409 | 1,528 |
[
"sparklemotion",
"nokogiri"
] | In my local machine, it works as I expected:
```
$ Nokogiri::HTML.fragment('some < text').to_s
=> "some < text"
```
In another machine (heroku):
```
$ Nokogiri::HTML.fragment('some < text').to_s
=> "some "
```
Do you have any idea ? This breaks the `sanitize` method of loofah and rails.
I'm using nokogiri 1.6... | html parsing removes everything after a chevron | https://api.github.com/repos/sparklemotion/nokogiri/issues/1527/comments | 6 | 2016-08-29T15:19:46Z | 2019-01-05T01:22:53Z | https://github.com/sparklemotion/nokogiri/issues/1527 | 173,799,627 | 1,527 |
[
"sparklemotion",
"nokogiri"
] | the full output is:
``` console
roroco@roroco ~/Dropbox/rbs/ro_dict $ gem install nokogiri
Fetching: nokogiri-1.6.8.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
current directory: /home/roroco/.rbenv/versions... | Running 'compile' for libxml2 2.9.4... ERROR, review '/home/roroco/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/nokogiri-1.6.8/ext/nokogiri/tmp/x86_64-pc-linux-gnu/ports/libxml2/2.9.4/compile.log' to see what happened. Last lines are: | https://api.github.com/repos/sparklemotion/nokogiri/issues/1525/comments | 6 | 2016-08-13T10:15:06Z | 2016-10-03T06:33:17Z | https://github.com/sparklemotion/nokogiri/issues/1525 | 171,002,760 | 1,525 |
[
"sparklemotion",
"nokogiri"
] | In 1.6.7.2 I was able to install nokogiri with system libraries. Now I can't
| Can't install with system libxml2 in 1.6.8 (libgcrypt on alpine) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1524/comments | 11 | 2016-08-11T15:01:30Z | 2021-02-16T17:04:14Z | https://github.com/sparklemotion/nokogiri/issues/1524 | 170,667,724 | 1,524 |
[
"sparklemotion",
"nokogiri"
] | Example:
``` ruby
require 'nokogiri'
reader = Nokogiri::XML::Reader(File.open 'entities.xml')
reader.each do |node|
puts node.outer_xml if node.node_type == 1 && node.name == 'Main'
end
```
using this XML:
``` xml
<Root>
<Main>
<Element>This has & in it</Element>
</Main>
<Main>
<El... | Reader outer_xml is decoding escaped entities in JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1523/comments | 3 | 2016-08-04T13:59:39Z | 2024-07-02T20:42:54Z | https://github.com/sparklemotion/nokogiri/issues/1523 | 169,381,270 | 1,523 |
[
"sparklemotion",
"nokogiri"
] | Hi,
I'm unable to build nokogiri in Ubuntu, I've the following error:
```
make "DESTDIR=" install
./install -m 0755 nokogiri.so ./.gem.20160802-15911-174e5df/nokogiri
make: ./install: Command not found
make: *** [install-so] Error 127
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.... | Ubuntu 12.04 build error ./install command not found | https://api.github.com/repos/sparklemotion/nokogiri/issues/1522/comments | 1 | 2016-08-02T22:36:17Z | 2021-02-16T17:04:14Z | https://github.com/sparklemotion/nokogiri/issues/1522 | 169,005,312 | 1,522 |
[
"sparklemotion",
"nokogiri"
] | Hi all,
I tried to install "gem install rails" but failed at Nokogiri. Here is the log:
```
# gem install rails
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: /usr/local/share/gems/gems/nokogiri-1.6.8/ext... | Nokogiri failed to install on Fedora | https://api.github.com/repos/sparklemotion/nokogiri/issues/1521/comments | 2 | 2016-08-02T02:25:43Z | 2016-10-03T05:24:12Z | https://github.com/sparklemotion/nokogiri/issues/1521 | 168,785,520 | 1,521 |
[
"sparklemotion",
"nokogiri"
] | The LostText class from cyberneko throws a ConcurrentModificationException when parsing some HTML. See below output for environment information.
Removing any part of the HTML in the sample test case succeeds at parsing, including removing the `x` in `<span>` and the comment.
I expect this HTML to not raise a Concurr... | JRuby Nokogiri raises ConcurrentModificationException for some HTML | https://api.github.com/repos/sparklemotion/nokogiri/issues/1520/comments | 2 | 2016-07-29T23:57:40Z | 2024-07-02T19:43:33Z | https://github.com/sparklemotion/nokogiri/issues/1520 | 168,435,690 | 1,520 |
[
"sparklemotion",
"nokogiri"
] | ## Information
ruby: `ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]`
bundler: `1.12.5`
gem version: `2.6.6`
OS: `El Capitan 10.11.6 (15G31)`
When I run `gem list` I can see that nokogiri 1.6.8 is installed:
```
$ gem list
*** LOCAL GEMS ***
bigdecimal (default: 1.2.8)
did_you_mean (1.0.0)
io-console... | Nokogiri 1.6.8 shows up in gem list, but still fails on bundle install | https://api.github.com/repos/sparklemotion/nokogiri/issues/1518/comments | 3 | 2016-07-28T18:04:02Z | 2016-10-27T13:21:18Z | https://github.com/sparklemotion/nokogiri/issues/1518 | 168,159,230 | 1,518 |
[
"sparklemotion",
"nokogiri"
] | Hi!
Please, look [the code of function nodesAreEqual (NokogiriHelpers.java, line 551)](https://github.com/sparklemotion/nokogiri/blob/a8041f97dce560d64092bb7921e6008875a3911f/ext/java/nokogiri/internals/NokogiriHelpers.java#L551):
```
return (((a == null) && (a == null)) ||
(a != null) && (b != nul... | Bug in file NokogiriHelpers.java? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1516/comments | 0 | 2016-07-25T17:02:22Z | 2016-10-03T05:23:22Z | https://github.com/sparklemotion/nokogiri/issues/1516 | 167,415,826 | 1,516 |
[
"sparklemotion",
"nokogiri"
] | On OpenBSD you need to install a newer compiler to get Nokogiri 1.6.8 to compile. This newer compiler is called `egcc` (for external I think). It would be great if Nokogiri's install process could detect it, so a normal `bundle install` would run without problems. Currently we need to manually connect to the server and... | Different compiler needed on OpenBSD | https://api.github.com/repos/sparklemotion/nokogiri/issues/1515/comments | 15 | 2016-07-21T08:21:17Z | 2017-01-13T01:12:09Z | https://github.com/sparklemotion/nokogiri/issues/1515 | 166,763,001 | 1,515 |
[
"sparklemotion",
"nokogiri"
] | How can we fix it
ERROR: Error installing nokogiri:
invalid gem: package metadata is missing in /home/.rvm/gems/ruby-2.3.1/cache/nokogiri-1.6.7.2.gem
| ERROR: Error installing nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1514/comments | 1 | 2016-07-13T07:11:30Z | 2017-03-08T10:41:20Z | https://github.com/sparklemotion/nokogiri/issues/1514 | 165,252,372 | 1,514 |
[
"sparklemotion",
"nokogiri"
] | I've installed nokogiri 1.6.8 on El Capitan as a gem on my app. Every time I run a rails command, I get the following error:
`/Users/name/RubyWorkspace/app/vendor/bundle/gems/nokogiri-1.6.8/lib/nokogiri.rb:32:in`require': incompatible library version - /Users/name/RubyWorkspace/app/vendor/bundle/gems/nokogiri-1.6.8/li... | Nokogiri crashes Rails Commands | https://api.github.com/repos/sparklemotion/nokogiri/issues/1513/comments | 5 | 2016-07-13T00:03:45Z | 2016-10-03T03:56:07Z | https://github.com/sparklemotion/nokogiri/issues/1513 | 165,208,485 | 1,513 |
[
"sparklemotion",
"nokogiri"
] | If I don't mount the volume, this works fine. But I want to cache the bundle between builds.
Host is OS X. I'm guessing the issue could be either some code searching for some config or file till root of the file system, or user/group mismatch between the running user and mounted volume.
###### $ `ls -la /srv/app/vendo... | Compilation of packaged libxml2 fails when installing nokogiri-1.6.8 to a mounted volume in docker | https://api.github.com/repos/sparklemotion/nokogiri/issues/1510/comments | 8 | 2016-07-11T15:01:17Z | 2019-04-30T01:15:49Z | https://github.com/sparklemotion/nokogiri/issues/1510 | 164,858,955 | 1,510 |
[
"sparklemotion",
"nokogiri"
] | Follow up from https://github.com/sparklemotion/nokogiri/issues/1504
Nokogiri installation instructions here:
http://www.nokogiri.org/tutorials/installing_nokogiri.html#mac_os_x
Should assume that you're on a fresh OS X installation.
Suggestions:
- If Xcode and Xcode command line tools are not installed, then inst... | Improve OS X installation instructions | https://api.github.com/repos/sparklemotion/nokogiri/issues/1509/comments | 2 | 2016-07-11T12:55:54Z | 2016-10-11T16:10:39Z | https://github.com/sparklemotion/nokogiri/issues/1509 | 164,830,395 | 1,509 |
[
"sparklemotion",
"nokogiri"
] | (Follow up from https://github.com/sparklemotion/nokogiri/issues/1504)
OS X v10.11.5 (15F34)
Xcode Version 7.3.1 (7D1014)
Ruby v2.3.1p112
Homebrew 0.9.9
RubyGems v2.5.1
```
$ sudo gem install nokogiri
Password:
Building native extensions. This could take a while...
ERROR: While executing gem ... (TypeError)
no ... | gem install nokogiri fails on OS X El Capitan: no implicit conversion of nil into String | https://api.github.com/repos/sparklemotion/nokogiri/issues/1508/comments | 2 | 2016-07-11T12:47:42Z | 2021-02-16T17:04:14Z | https://github.com/sparklemotion/nokogiri/issues/1508 | 164,828,845 | 1,508 |
[
"sparklemotion",
"nokogiri"
] | I believe the gem file should include the source tarballs for libiconv-1.14 and zlib-1.2.8
I've recently tried to install nokogiri on a Windows 2012 Server. This node did not have internet access. I could not get it to installed, and tried the versions with the prebuilt DLL's too. Based on the errors in the logs, i... | nokogiri.gem is missing two source tarballs | https://api.github.com/repos/sparklemotion/nokogiri/issues/1506/comments | 8 | 2016-07-08T14:28:59Z | 2021-02-16T17:04:13Z | https://github.com/sparklemotion/nokogiri/issues/1506 | 164,543,126 | 1,506 |
[
"sparklemotion",
"nokogiri"
] | When validating an XML document using RelaxNG, the line number of the error is capped at 65535.
test code: https://gist.github.com/mikevm/71095581645c62a971194b3142d09b92
output:
```
$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
$ ruby ./test.rb
Nokogiri: 1.6.8
XML document with a schema vio... | Line number of RelaxNG error seems capped at 65535 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1505/comments | 2 | 2016-07-07T17:07:36Z | 2021-08-14T17:02:01Z | https://github.com/sparklemotion/nokogiri/issues/1505 | 164,360,123 | 1,505 |
[
"sparklemotion",
"nokogiri"
] | It's just not funny anymore.


Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/home/USER/.rvm/rubies/ruby-2.2.1/bin/... | 1.6.8 fails to install - debian | https://api.github.com/repos/sparklemotion/nokogiri/issues/1502/comments | 4 | 2016-07-01T02:42:46Z | 2016-10-03T05:33:07Z | https://github.com/sparklemotion/nokogiri/issues/1502 | 163,308,286 | 1,502 |
[
"sparklemotion",
"nokogiri"
] | I have found at least one page that parses without error using Nokogiri 1.6.8 on Ruby 2.2.4 but raises a StackOverflowError on JRuby 1.7.25 and 9.1.2.0.
I expected Nokogiri to parse this file without raising any errors. Or at the very least raise errors consistently between the different Ruby versions.
Here is so... | JRuby Nokogiri raises StackOverflowError when parsing some pages | https://api.github.com/repos/sparklemotion/nokogiri/issues/1501/comments | 9 | 2016-07-01T00:15:33Z | 2018-03-29T19:23:04Z | https://github.com/sparklemotion/nokogiri/issues/1501 | 163,294,524 | 1,501 |
[
"sparklemotion",
"nokogiri"
] | If I read the [specification for textarea](https://www.w3.org/TR/html-markup/textarea.html) correctly, then textareas are defined to contain [replaceable character data](https://www.w3.org/TR/html-markup/syntax.html#replaceable-character-data), which should not be parsed as tags.
Given the following example
`````` ht... | Incorrect error reported when tag or tag-like used in textarea | https://api.github.com/repos/sparklemotion/nokogiri/issues/1499/comments | 6 | 2016-06-28T23:27:54Z | 2020-10-12T13:19:18Z | https://github.com/sparklemotion/nokogiri/issues/1499 | 162,810,077 | 1,499 |
[
"sparklemotion",
"nokogiri"
] | Not sure if that is possible, but there is no reason the precompiled versions of gem should depend on pkg-config. The java version does not depend on it, so hopefully this dependency can be avoided also for the other platforms.
| Please drop the pkg-config dependency from the precompiled gems | https://api.github.com/repos/sparklemotion/nokogiri/issues/1496/comments | 3 | 2016-06-24T13:14:17Z | 2016-10-03T03:41:41Z | https://github.com/sparklemotion/nokogiri/issues/1496 | 162,143,997 | 1,496 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.