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"
] | Starting with Nokogiri 1.8.3, JRuby introduces a `tbody` tag in the parsed document where there isn't one in the source. This causes an inconsistently in the XPath (and CSS) query results between MRI and JRuby.
Consider the following HTML fragment:
```html
<table>
<tr>
<td>cell</td>
</tr>
</table>
```
No... | Nokogiri on JRuby adds tbody tag to parsed document, resulting in inconsistent query results | https://api.github.com/repos/sparklemotion/nokogiri/issues/1803/comments | 2 | 2018-10-14T06:37:16Z | 2018-10-16T05:17:27Z | https://github.com/sparklemotion/nokogiri/issues/1803 | 369,873,090 | 1,803 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
Nokogiri crashes with a segmentation fault during a XSLT transformation.
**What's the output from `nokogiri -v`?**
```
# Nokogiri (1.8.5)
---
warnings: []
nokogiri: 1.8.5
ruby:
version: 2.5.1
platform: x86_64-darwin17
description: ru... | Segmentation fault during XSLT transformation | https://api.github.com/repos/sparklemotion/nokogiri/issues/1802/comments | 7 | 2018-10-10T08:58:13Z | 2020-02-02T18:51:06Z | https://github.com/sparklemotion/nokogiri/issues/1802 | 368,560,408 | 1,802 |
[
"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`?**
```
Building native extensions with: '--use-system-libraries --with-xslt-dir=/usr/local/opt/libxslt --with-xslt-dir=/usr/local/opt/libxml2'
Thi... | Nokogiri 1.8.4 installation challenges on macOS Mojave | https://api.github.com/repos/sparklemotion/nokogiri/issues/1801/comments | 41 | 2018-09-26T05:02:52Z | 2019-08-26T19:46:17Z | https://github.com/sparklemotion/nokogiri/issues/1801 | 363,859,272 | 1,801 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
doing attribute.value = attribute.value makes it "boolean"/"minimized"
**What's the output from `nokogiri -v`?**
# Nokogiri (1.8.4)
---
warnings: []
nokogiri: 1.8.4
ruby:
version: 2.4.4
platform: x86_64-linux
description: ruby 2.4.4p2... | attribute.value = attribute.value changes output | https://api.github.com/repos/sparklemotion/nokogiri/issues/1800/comments | 8 | 2018-09-20T09:54:17Z | 2020-06-02T00:31:08Z | https://github.com/sparklemotion/nokogiri/issues/1800 | 362,108,522 | 1,800 |
[
"sparklemotion",
"nokogiri"
] | ```
$ cat Gemfile
source "https://rubygems.org"
gem "nokogiri"
$ bundle exec gem list
*** LOCAL GEMS ***
bundler (1.16.1)
mini_portile2 (2.3.0)
nokogiri (1.8.4)
$ cat temp.rb
require "nokogiri"
puts Nokogiri::HTML "
<u> <p></p> </u>
<u> <p></p> </u>
<u> <p></p> </u>
"
$ bundle exec ruby tem... | Why does Nokogiri::HTML close <u> tag immediately? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1798/comments | 1 | 2018-09-16T16:19:56Z | 2019-01-05T01:22:54Z | https://github.com/sparklemotion/nokogiri/issues/1798 | 360,654,162 | 1,798 |
[
"sparklemotion",
"nokogiri"
] | ```
$ cat Gemfile
source "https://rubygems.org"
gem "nokogiri"
$ cat temp.rb
require "nokogiri"
puts Nokogiri::HTML "
<u> <p></p> </u>
<u> <p></p> </u>
<u> <p></p> </u>
"
$ bundle exec ruby temp.rb
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loo... | Why does Nokogiri::HTML close <u> tag immediately? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1797/comments | 1 | 2018-09-16T16:16:39Z | 2018-09-16T16:25:18Z | https://github.com/sparklemotion/nokogiri/issues/1797 | 360,653,882 | 1,797 |
[
"sparklemotion",
"nokogiri"
] | This is extracted from https://github.com/sparklemotion/nokogiri/pull/1792#issuecomment-418829882
Here is the test script I am using:
```
require 'nokogiri'
items = %Q(
<div class="test">
<a href="something">derp</a>
</div>
) * ARGV[0].to_i
html = %Q(
<html>
<body>
#{items}
</body>
</html... | XMLNodeSet::xpath and XMLNodeSet::css are very slow with large number of nodes | https://api.github.com/repos/sparklemotion/nokogiri/issues/1795/comments | 1 | 2018-09-15T21:56:23Z | 2018-12-02T04:50:35Z | https://github.com/sparklemotion/nokogiri/issues/1795 | 360,579,267 | 1,795 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
Nokogiri::XML::Builder.new does not compile with do end block when using namespace like 'xmlns:xsi' => 'www.whatever.com' in options
**What's the output from `nokogiri -v`?**
Nokogiri: 1.8.3
Ruby: 2.3.4
libxml2: 2.9.8
**Can you provide a self-contained script that repro... | Nokogiri::XML::Builder.new does not compile with do end block with namespace in options | https://api.github.com/repos/sparklemotion/nokogiri/issues/1794/comments | 2 | 2018-09-10T15:00:46Z | 2018-09-11T08:18:36Z | https://github.com/sparklemotion/nokogiri/issues/1794 | 358,663,793 | 1,794 |
[
"sparklemotion",
"nokogiri"
] | Current configuration is expensive, and the latest concourse-deployment and bbl have options that are cheaper. Also, not sure I can admin the cluster anymore without lost creds.
| Rebuild ci.nokogiri.org | https://api.github.com/repos/sparklemotion/nokogiri/issues/1793/comments | 11 | 2018-09-08T22:09:34Z | 2019-01-23T22:59:32Z | https://github.com/sparklemotion/nokogiri/issues/1793 | 358,331,460 | 1,793 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
`Nokogiri::XML::Node#add_child_node_and_reparent_attrs` uses an incorrect test to see if a node's namespaces need to be reparented (at least, I think that's the purpose of this code).
It's testing `a.name =~ /:/` to decide to reparent. This breaks HTML elements which are allo... | `Nokogiri::XML::Node#add_child_node_and_reparent_attrs` behaves incorrectly if an attribute name has a colon | https://api.github.com/repos/sparklemotion/nokogiri/issues/1790/comments | 4 | 2018-08-22T19:49:43Z | 2024-12-16T17:21:18Z | https://github.com/sparklemotion/nokogiri/issues/1790 | 353,098,596 | 1,790 |
[
"sparklemotion",
"nokogiri"
] | This issue is to drive investigation and potential action around a set of upstream patches that Canonical judged valuable enough to port to their distributions.
References:
* https://usn.ubuntu.com/3739-1/
* https://usn.ubuntu.com/3739-2/
-----
Summary:
Two upstream patches, not yet available in an offi... | Investigate Ubuntu libxml2 patches in USN-3739-1 and USN-3739-2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1785/comments | 3 | 2018-08-15T05:40:31Z | 2019-01-05T01:22:53Z | https://github.com/sparklemotion/nokogiri/issues/1785 | 350,692,114 | 1,785 |
[
"sparklemotion",
"nokogiri"
] | Removing an HTML document's `internal_subset` leaks memory.
**What's the output from `nokogiri -v`?**
```
# Nokogiri (1.7.0.1)
---
warnings: []
nokogiri: 1.7.0.1
ruby:
version: 2.4.4
platform: x86_64-darwin17
description: ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-d... | Removing `internal_subset` leaks memory | https://api.github.com/repos/sparklemotion/nokogiri/issues/1784/comments | 5 | 2018-08-14T11:55:16Z | 2018-12-02T04:47:10Z | https://github.com/sparklemotion/nokogiri/issues/1784 | 350,396,118 | 1,784 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
I parsed the following xml in a Nokogiri::XML(xml_string)
```xml
<Report xmlns="http://test.com/2018-03-08" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SubReport subReportId="https://test.com/transaction/abcd" state="failed">
<SubSubReport subSubReportId=... | XML parser assigns text value to the parent Node instead of actual sub-node | https://api.github.com/repos/sparklemotion/nokogiri/issues/1783/comments | 3 | 2018-08-13T12:15:39Z | 2018-12-02T06:58:18Z | https://github.com/sparklemotion/nokogiri/issues/1783 | 350,004,835 | 1,783 |
[
"sparklemotion",
"nokogiri"
] | I'm seeing inconsistent behavior with Nokogiri 1.8.4 (and, presumably earlier) with empty nodesets. This example is a little contrived, but at least is simple:
```ruby
doc = Nokogiri::XML('<doc />')
Nokogiri::XML::NodeSet.new(doc).to_a # => in MRI: []
Nokogiri::XML::NodeSet.new(doc).to_a # => in JRuby: nil
```
... | Inconsistent behavior of NodeSet#to_a between MRI + JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1782/comments | 4 | 2018-08-08T14:59:01Z | 2018-12-03T19:36:06Z | https://github.com/sparklemotion/nokogiri/issues/1782 | 348,764,654 | 1,782 |
[
"sparklemotion",
"nokogiri"
] | ## If you're having trouble installing Nokogiri ...
I've tried most of the things in the [Installing Nokogiri](http://www.nokogiri.org/tutorials/installing_nokogiri.html) documentation, which I'll demonstrate below.
This is on one of our CI systems, not on a developer laptop. First, some system information:
`... | Installation - gcc error on option "-Wsuggest-attribute=noreturn" | https://api.github.com/repos/sparklemotion/nokogiri/issues/1781/comments | 9 | 2018-07-31T15:22:31Z | 2021-02-16T17:05:35Z | https://github.com/sparklemotion/nokogiri/issues/1781 | 346,237,316 | 1,781 |
[
"sparklemotion",
"nokogiri"
] | Gem installation fails for me starting from 1.8.3. I started to check commits and this is what I found:
When I'm on b5b97bc5db0235745f44af91ccb25d6e28ace7aa `bundle exec rake` succeeds.
When I'm on 77be60c3681f76db0416d98da2e940a10bd1169d `bundle exec rake` fails.
Making following change on the latest master fix... | Commit 77be60c3 breaks installation with homebrew system libraries and pkg_config | https://api.github.com/repos/sparklemotion/nokogiri/issues/1780/comments | 2 | 2018-07-27T18:40:25Z | 2018-08-15T12:46:32Z | https://github.com/sparklemotion/nokogiri/issues/1780 | 345,327,205 | 1,780 |
[
"sparklemotion",
"nokogiri"
] | Hi,
In my projects, I often create a method to let me get the contents at a xpath, without having to first check for its existence:
```ruby
def content_at(doc, path)
element = doc.at(path)
element.content unless element.nil?
end
```
Is there already a concise way of doing this?
Would you accept a Pul... | Proposed new method: #content_at | https://api.github.com/repos/sparklemotion/nokogiri/issues/1779/comments | 2 | 2018-07-16T09:03:55Z | 2018-07-17T15:50:16Z | https://github.com/sparklemotion/nokogiri/issues/1779 | 341,439,195 | 1,779 |
[
"sparklemotion",
"nokogiri"
] | I'm experiencing a leak with a long-running process which is hard to debug. We fetch data from several different websites using Mechanize + Nokogiri and nokogiri is the top memory user when analyzing memory through `memory_profiler`.
I see there is a few commits unreleased yet. As I can't use the git version without... | Please release a new version with the latest leak fixes | https://api.github.com/repos/sparklemotion/nokogiri/issues/1775/comments | 5 | 2018-07-03T11:50:46Z | 2018-07-06T09:51:42Z | https://github.com/sparklemotion/nokogiri/issues/1775 | 337,865,748 | 1,775 |
[
"sparklemotion",
"nokogiri"
] | <details>
<summary>MRI nokogiri version</summary>
```
$ nokogiri -v
# Nokogiri (1.8.3)
---
warnings: []
nokogiri: 1.8.3
ruby:
version: 2.5.1
platform: x86_64-darwin16
description: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]
engine: ruby
libxml:
... | JRuby on re-homing a default-namespaced node, preserves namespace but does not reflect in xmlns attrib, inconsistent with MRI | https://api.github.com/repos/sparklemotion/nokogiri/issues/1774/comments | 3 | 2018-07-02T20:54:24Z | 2018-12-02T05:03:51Z | https://github.com/sparklemotion/nokogiri/issues/1774 | 337,659,420 | 1,774 |
[
"sparklemotion",
"nokogiri"
] | <details>
<summary>MRI nokogiri version</summary>
```
$ nokogiri -v
# Nokogiri (1.8.3)
---
warnings: []
nokogiri: 1.8.3
ruby:
version: 2.5.1
platform: x86_64-darwin16
description: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]
engine: ruby
libxml:
... | nokogiri Jruby does not let you move nodes from one document to another, MRI does | https://api.github.com/repos/sparklemotion/nokogiri/issues/1773/comments | 4 | 2018-06-26T04:32:56Z | 2018-10-04T23:57:49Z | https://github.com/sparklemotion/nokogiri/issues/1773 | 335,655,603 | 1,773 |
[
"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... | Wunused-parameter introduced in #1731 breaks the "make config" phase on Mingw64/Msys64 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1772/comments | 10 | 2018-06-21T11:41:10Z | 2018-11-08T03:17:02Z | https://github.com/sparklemotion/nokogiri/issues/1772 | 334,455,755 | 1,772 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
Memory usage (VSZ and RSS) grows uncontrollably when using `Nokogiri::XML::Builder` with XML namespaces.
**What's the output from `nokogiri -v`?**
```
# Nokogiri (1.8.3)
---
warnings: []
nokogiri: 1.8.3
ruby:
version: 2.5.1
platform: x8... | Memory leak when using Nokogiri::XML::Builder with XML namespaces | https://api.github.com/repos/sparklemotion/nokogiri/issues/1771/comments | 5 | 2018-06-21T09:31:18Z | 2020-02-02T18:52:59Z | https://github.com/sparklemotion/nokogiri/issues/1771 | 334,411,939 | 1,771 |
[
"sparklemotion",
"nokogiri"
] | nokogiri 1.8.3 is throwing `LoadError: cannot load such file -- nokogiri/2.4/nokogiri` when I try and start a Rails server on a dummy app inside my gem. I'm using Ruby 2.4.4. nokogiri 1.8.2 works fine.
```
Caused by:
LoadError: cannot load such file -- nokogiri/2.4/nokogiri
/home/vagrant/.rvm/gems/ruby... | LoadError: cannot load such file -- nokogiri/2.4/nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1769/comments | 1 | 2018-06-18T22:59:51Z | 2018-06-19T14:59:37Z | https://github.com/sparklemotion/nokogiri/issues/1769 | 333,463,767 | 1,769 |
[
"sparklemotion",
"nokogiri"
] | We're updating our app from CRuby to JRuby, so we're swapping to the Java version of the nokogiri gem. I'm seeing some test failures, and the root cause seems to be that nokogiri was happy to work with XML files/schemas contaiing byte-order-markers before, but the java version does not like them. An error is occurring ... | nokogiri java does not properly handle xml files with byte order markers | https://api.github.com/repos/sparklemotion/nokogiri/issues/1768/comments | 8 | 2018-06-18T19:59:04Z | 2023-01-22T03:37:49Z | https://github.com/sparklemotion/nokogiri/issues/1768 | 333,413,394 | 1,768 |
[
"sparklemotion",
"nokogiri"
] | The latest version on RubyGems is 1.8.3, but there's no git tag v1.8.3. | Missing git tag for 1.8.3 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1767/comments | 1 | 2018-06-17T11:55:16Z | 2018-06-18T11:50:21Z | https://github.com/sparklemotion/nokogiri/issues/1767 | 333,057,116 | 1,767 |
[
"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... | nokogiri to complete metasploit instalation | https://api.github.com/repos/sparklemotion/nokogiri/issues/1766/comments | 3 | 2018-06-02T20:16:06Z | 2018-06-16T16:34:57Z | https://github.com/sparklemotion/nokogiri/issues/1766 | 328,773,769 | 1,766 |
[
"sparklemotion",
"nokogiri"
] | ## Context
libxml2 has a limitation that it tracks the line numbers in the input with a short int, meaning that long files have odd behavior, either lines having a number of `0` or of `65535`, see related issues #1493, #1617, #1505, etc.
## New Information
In `parser.h` since libxml 2.9.5, there's a parse opti... | investigate using XML_PARSE_BIG_LINES to tell libxml2 to track line numbers bigger than a short int | https://api.github.com/repos/sparklemotion/nokogiri/issues/1764/comments | 1 | 2018-05-21T20:21:49Z | 2021-12-24T16:45:09Z | https://github.com/sparklemotion/nokogiri/issues/1764 | 325,046,547 | 1,764 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
Having an issue parsing very large XML data. The XML data is fetched from a RESTful API and then stored into a local variable called "vuln_data" in this case.
Have attempted many different variations to parse this large XML with no real success. First tried a SAX parser which... | Nokogiri::XML::Reader | RuntimeError: Could not parse document | https://api.github.com/repos/sparklemotion/nokogiri/issues/1763/comments | 3 | 2018-05-21T18:46:54Z | 2024-06-26T07:26:45Z | https://github.com/sparklemotion/nokogiri/issues/1763 | 325,019,593 | 1,763 |
[
"sparklemotion",
"nokogiri"
] | IRC is dead, long live IRC (in the form of Gitter).
* [x] set up Gitter channel
* integrate with Github repositories:
* [x] nokogiri
* [x] nokogiri.org-tutorials
* [ ] integrate with Concourse CI
* update docs with links to Gitter:
* [x] nokogiri README (see #1761)
* [x] nokogiri.org-tutorials README
... | Set up Gitter channel for nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1762/comments | 1 | 2018-05-15T16:45:54Z | 2019-01-05T01:11:45Z | https://github.com/sparklemotion/nokogiri/issues/1762 | 323,298,697 | 1,762 |
[
"sparklemotion",
"nokogiri"
] | Running this simple script in IBM J9 on AIX:
```ruby
require 'nokogiri'
Nokogiri::XML.fragment('<root/>')
```
gives the following error:
```
java.lang.IllegalAccessError: Class org/apache/xml/dtm/ref/dom2dtm/DOM2DTMExt illegally accessing "package private" member of class org/apache/xml/dtm/ref/dom2dtm... | DOM2DTMExt nextNode fails when running in J9 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1759/comments | 2 | 2018-05-14T21:56:13Z | 2018-12-04T03:50:01Z | https://github.com/sparklemotion/nokogiri/issues/1759 | 322,996,201 | 1,759 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
the output from the following script is different on JRuby and MRI.
```
#!/usr/bin/env ruby
require 'nokogiri'
class Doc < Nokogiri::XML::SAX::Document
attr_reader :errors
def error error
(@errors ||= []) << error
super
end
end
parser = Nokogiri:... | XmlSaxPushParser on JRuby and MRI disagree on how it handles empty input | https://api.github.com/repos/sparklemotion/nokogiri/issues/1758/comments | 2 | 2018-05-14T00:25:35Z | 2024-07-02T20:59:06Z | https://github.com/sparklemotion/nokogiri/issues/1758 | 322,640,474 | 1,758 |
[
"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... | Suyn | https://api.github.com/repos/sparklemotion/nokogiri/issues/1754/comments | 3 | 2018-04-30T17:21:22Z | 2018-04-30T20:29:47Z | https://github.com/sparklemotion/nokogiri/issues/1754 | 318,968,024 | 1,754 |
[
"sparklemotion",
"nokogiri"
] | Trying to run rake assets precompile with production mode as follows.
`rake assets:precompile`
It is working fine for ubuntu 14.04 (32 bit) and 16.06(32 bit.) But getting Load Error on `16.04(64` bit) in aws ec2.
Please help me regarding this.
Thanks in advance.
`rake aborted!
LoadError: incompatible li... | LoadError: incompatible library version - /home/ubuntu/.rvm/gems/ruby-2.3.1@lm5/gems/nokogiri-1.8.2/lib/nokogiri/nokogiri.so | https://api.github.com/repos/sparklemotion/nokogiri/issues/1753/comments | 3 | 2018-04-30T12:13:15Z | 2021-02-16T17:05:35Z | https://github.com/sparklemotion/nokogiri/issues/1753 | 318,869,541 | 1,753 |
[
"sparklemotion",
"nokogiri"
] | There's NONET for Nokogiri::XML to prevent nokogiri from using the network. However it seems there's no NONET (or configuration ability at all) for Nokogiri::XML::Schema. I tried to work around it like this:
doc = Nokogiri::XML(File.read(xsd_path)) do |config|
config.options = Nokogiri::XML::ParseOptions:... | Allow to set NONET for schema validation | https://api.github.com/repos/sparklemotion/nokogiri/issues/1752/comments | 3 | 2018-04-26T09:23:35Z | 2021-08-19T21:30:07Z | https://github.com/sparklemotion/nokogiri/issues/1752 | 317,945,730 | 1,752 |
[
"sparklemotion",
"nokogiri"
] | Using XSLT to write JSON, my program either hangs or gives an inscrutable error message. The same XML/XSLT processes fine with xsltproc and with MRI.
I created this short program to demonstrate the problem:
```ruby
#!/usr/bin/env ruby -w
require 'nokogiri'
doc = Nokogiri::XML('<g>Greetings</g>')
xslt = Noko... | JRuby XSLT failure | https://api.github.com/repos/sparklemotion/nokogiri/issues/1751/comments | 6 | 2018-04-22T01:02:09Z | 2024-07-02T20:40:35Z | https://github.com/sparklemotion/nokogiri/issues/1751 | 316,538,910 | 1,751 |
[
"sparklemotion",
"nokogiri"
] | Using XSLT to write JSON, I get incorrect output due to the erroneous inclusion of an XML declaration: `<?xml version="1.0"?>`. Running the same XSLT with the same XML using `xsltproc`, the output is as expected, without an XML declaration. This short program demonstrates the problem:
```ruby
require 'nokogiri'
do... | XSLT with output method="text" should not include xml decl | https://api.github.com/repos/sparklemotion/nokogiri/issues/1750/comments | 6 | 2018-04-22T00:20:53Z | 2023-12-28T21:09:07Z | https://github.com/sparklemotion/nokogiri/issues/1750 | 316,536,719 | 1,750 |
[
"sparklemotion",
"nokogiri"
] | When using Nokogiri on jruby with a nested XPATH loop, the document memory footpring explodes in size.
For example, with a document like
`<items>
<item>
<value1>
<value2>
<item>`
... for many thousands of items
And attempting to use (for example) an xpath like: doc.xpath('items').each { |node... | JRuby XPATH Memory Usage | https://api.github.com/repos/sparklemotion/nokogiri/issues/1749/comments | 16 | 2018-04-03T16:09:18Z | 2021-02-16T17:03:49Z | https://github.com/sparklemotion/nokogiri/issues/1749 | 310,901,521 | 1,749 |
[
"sparklemotion",
"nokogiri"
] | bash-4.4# gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
current directory: /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/nokogiri-1.8.2/ext/nokogiri
/data/data/com.termux/files/us... | error while install nokogiri if it is bug? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1742/comments | 2 | 2018-03-23T13:02:44Z | 2018-03-23T23:16:32Z | https://github.com/sparklemotion/nokogiri/issues/1742 | 308,021,011 | 1,742 |
[
"sparklemotion",
"nokogiri"
] | See https://github.com/jruby/jruby/issues/4112 for background on JRuby 1.7 reaching EOL last year.
Also see our [CI builds going red](https://ci.nokogiri.org/builds/3799) because Rake has ended support for "ruby 1.9" which is what JRuby self-identifies as.
| Drop support for JRuby 1.7 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1741/comments | 10 | 2018-03-22T17:33:29Z | 2019-01-21T07:46:20Z | https://github.com/sparklemotion/nokogiri/issues/1741 | 307,744,427 | 1,741 |
[
"sparklemotion",
"nokogiri"
] | nokogiri
$ gem install nokogiri -v '1.8.1'
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
current directory: /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/nokogiri-1.8.1/ext/nokogiri
/data/data/com.te... | error while install nokogiri if it is bug? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1739/comments | 4 | 2018-03-21T01:38:08Z | 2021-02-16T17:04:18Z | https://github.com/sparklemotion/nokogiri/issues/1739 | 307,095,557 | 1,739 |
[
"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... | error while install nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1738/comments | 0 | 2018-03-21T01:37:08Z | 2018-03-21T01:37:23Z | https://github.com/sparklemotion/nokogiri/issues/1738 | 307,095,454 | 1,738 |
[
"sparklemotion",
"nokogiri"
] |
am trying to make a script to search by user by entering in there first name it should display the detail of that user this interacts with the file email.xml please help me !!!
i can get it to read the xml doc and display all users i just need someone to give some exmaple code or show me how the hell i am supposed ... | NOKIGIRI IS HARD PLEZ HELP | https://api.github.com/repos/sparklemotion/nokogiri/issues/1736/comments | 2 | 2018-03-16T06:22:07Z | 2018-03-25T19:41:58Z | https://github.com/sparklemotion/nokogiri/issues/1736 | 305,814,776 | 1,736 |
[
"sparklemotion",
"nokogiri"
] | Unfortunately many projects does not consider a library follows SemVer unless explicitly mentioned. For example gitlab Gemfile wants ~> 1.7.0. Now debian has ruby-nokogiri 1.8.2 and to make gitlab installable I have to maintain a patch to gitlab Gemfile (this adds extra work for every release). If nokogori explicitly s... | [question] [documentation] Do you follow SemVer? If yes, can you mention it in README. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1734/comments | 1 | 2018-03-14T12:14:15Z | 2018-03-14T16:14:02Z | https://github.com/sparklemotion/nokogiri/issues/1734 | 305,133,809 | 1,734 |
[
"sparklemotion",
"nokogiri"
] | **What is the output of `gem install`?**
```
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/nokogiri-1.8.2/ext/nokogiri
/usr/local/bin/ruby -r ./siteconf20180305-7-1fctl3m.rb extconf.rb
checking if the C compiler accepts ... *** ext... | Doesn't build in Docker Ruby 2.4.3 image | https://api.github.com/repos/sparklemotion/nokogiri/issues/1732/comments | 3 | 2018-03-06T07:19:36Z | 2018-03-08T19:45:17Z | https://github.com/sparklemotion/nokogiri/issues/1732 | 302,589,602 | 1,732 |
[
"sparklemotion",
"nokogiri"
] | I encountered a strange (in my opinion) behavior - when creating a new nokogiri html document.
It normalizes the html but it does it differently for strings, that start with a text node and strings that start with a tag.
```ruby
require 'nokogiri'
test = "<a href='https://ya.ru'>link</a>text node"
doc = Nokogir... | HTML(string) produces different structures on very similar inputs | https://api.github.com/repos/sparklemotion/nokogiri/issues/1730/comments | 1 | 2018-02-26T15:16:59Z | 2018-03-20T20:00:20Z | https://github.com/sparklemotion/nokogiri/issues/1730 | 300,277,211 | 1,730 |
[
"sparklemotion",
"nokogiri"
] | RubyInstaller 2.4 and 2.5 depend on MSYS2, and some of MSYS2's packages are broken at the moment. The part of the build that's failing is `libiconv` generating a Makefile, because `gawk` isn't working.
I'm tracking a couple of related upstream bugs:
* https://github.com/Alexpux/MSYS2-packages/issues/1127
* https... | Fix Windows builds | https://api.github.com/repos/sparklemotion/nokogiri/issues/1729/comments | 10 | 2018-02-25T00:40:39Z | 2021-05-20T01:25:35Z | https://github.com/sparklemotion/nokogiri/issues/1729 | 299,985,930 | 1,729 |
[
"sparklemotion",
"nokogiri"
] | I am running production on CentOS 7 which is using Nokogiri to build and parse XML.
But when I create XML of 5MB, it is consuming 80MB of memory and memory won't be released.
So after 1 or 2 days, servers are being crashed and down.
I need your help URGENTLY if you have any experience on it.
Thanks | Memory leak!! When I create xml of 5MB, it is consuming 80MB of memory. And WON'T be released. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1727/comments | 21 | 2018-02-23T21:19:33Z | 2021-02-16T17:04:18Z | https://github.com/sparklemotion/nokogiri/issues/1727 | 299,853,558 | 1,727 |
[
"sparklemotion",
"nokogiri"
] | Recent security update to `gem` executable has broken nokogiri fat gem on windows (tested on windows 7, 64bit, 2.5.0 rubyinstaller). Error is:
ERROR: While executing gem ... (Gem::Package::PathError)
installing into parent path bin/nokogiri of C:/dev/Ruby25-x64/lib/ruby/gems/2.5.0/gems/nokogiri-1.8.2-x64-mingw
... | Nokogiri doesn't install on windows | https://api.github.com/repos/sparklemotion/nokogiri/issues/1726/comments | 9 | 2018-02-23T17:56:22Z | 2018-02-25T20:19:38Z | https://github.com/sparklemotion/nokogiri/issues/1726 | 299,797,737 | 1,726 |
[
"sparklemotion",
"nokogiri"
] | Discovered this issue after Elastic updated to the latest libs in Logstash 6.2.1. Below is the error output, [this thread](https://discuss.elastic.co/t/logstash-pipeline-from-6-1-not-working-6-2-1/120548/14?u=wwalker) has some error research that's more useful than I can provide (I'm no programmer/this is all WAY over... | ASCII-8BIT Error in XPath Parsing | https://api.github.com/repos/sparklemotion/nokogiri/issues/1725/comments | 5 | 2018-02-23T05:54:57Z | 2021-02-16T17:04:17Z | https://github.com/sparklemotion/nokogiri/issues/1725 | 299,606,949 | 1,725 |
[
"sparklemotion",
"nokogiri"
] | ruby 2.1.9
rbenv
```
gitlab/monitoring-puppet - [dev●] » ruby -v
ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-darwin15.0]
```
gem install outside bundle works:
```
gitlab/monitoring-puppet - [dev●] » gem install nokogiri -v '1.8.2'
Fetching: mini_portile2-2.3.0.gem (100%)
Successfully installed mini... | Bundle install fails libxml2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1724/comments | 4 | 2018-02-22T20:09:55Z | 2021-02-16T17:04:17Z | https://github.com/sparklemotion/nokogiri/issues/1724 | 299,491,384 | 1,724 |
[
"sparklemotion",
"nokogiri"
] | Related to #1672, it would be great to test against dailies:
* ruby trunk (linux)
* ruby trunk (windows)
Windows can be supported by installing via [rubyinstaller-head](https://rubyinstaller.org/2017/12/24/rubyinstaller-head-available.html).
For Linux, there doesn't appear to be a [dockerhub image](https://hu... | test pipelines: test against Ruby trunk (dailies) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1718/comments | 2 | 2018-02-06T02:39:04Z | 2021-05-20T04:29:44Z | https://github.com/sparklemotion/nokogiri/issues/1718 | 294,612,853 | 1,718 |
[
"sparklemotion",
"nokogiri"
] | This issue is to drive investigation and potential action around a set of upstream patches that Canonical judged valuable enough to port to their distributions.
-----
## Summary of findings
Upgrading Nokogiri to distribute libxml v2.9.6 or later is necessary to address one of the upstream libxml2 vulnerabiliti... | Investigate Ubuntu libxml2 patches in USN-3504-1, USN-3504-2, USN-3513-1, USN-3513-2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1714/comments | 4 | 2018-01-29T00:53:52Z | 2023-12-13T00:13:26Z | https://github.com/sparklemotion/nokogiri/issues/1714 | 292,256,610 | 1,714 |
[
"sparklemotion",
"nokogiri"
] | Originally pointed out on [nokogiri-talk](https://groups.google.com/forum/#!msg/nokogiri-talk/-mfwyDBppnc/upxyW8mTAgAJ) by Corey Powell (who I think is @IceDragon200 on GitHub):
> This gist contains a sample script, the expected and actual output from nokogiri
>
> https://gist.github.com/IceDragon200/873139e6c7d39... | XML::Builder behaves strangely with respect to namespaces | https://api.github.com/repos/sparklemotion/nokogiri/issues/1712/comments | 4 | 2018-01-28T14:25:03Z | 2021-08-29T15:43:40Z | https://github.com/sparklemotion/nokogiri/issues/1712 | 292,208,397 | 1,712 |
[
"sparklemotion",
"nokogiri"
] | I noticed that the nokogiri gem distribution published on rubygems.org contains files that are not strictly necessary for nokogiri at runtime. I suggest we follow the lead of the rails family of gems and only package those files that are needed at runtime:
Example: https://github.com/rails/rails/blob/v5.1.4/activesupp... | suggestion: package only files that are needed at runtime in the gem | https://api.github.com/repos/sparklemotion/nokogiri/issues/1711/comments | 8 | 2018-01-23T21:54:00Z | 2018-12-17T13:11:01Z | https://github.com/sparklemotion/nokogiri/issues/1711 | 291,006,790 | 1,711 |
[
"sparklemotion",
"nokogiri"
] | The last remaining 15 [Blather](https://github.com/adhearsion/blather) test failures are caused @yokolet's fix for #1261 in sparklemotion/nokogiri@3b121ca6e651f513922f9857ba2b4af9d176afb9. I'm not sure exactly what triggers it but sometimes `parserTask.parser.getNokogiriHandler()` returns `null`, leading to a NullPoint... | NullPointerException in XmlSaxPushParser#native_write triggered by fix for #1261 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1710/comments | 24 | 2018-01-16T13:51:59Z | 2018-05-14T00:25:48Z | https://github.com/sparklemotion/nokogiri/issues/1710 | 288,914,082 | 1,710 |
[
"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`?**
```
PS C:\Users\replaced> gem install nokogiri -v 1.8.1
ERROR: Error installing nokogiri:
The last version of nokogiri (= 1.8.1) to support... | Make nokogiri compatible to ruby 2.5 on Windows | https://api.github.com/repos/sparklemotion/nokogiri/issues/1709/comments | 16 | 2018-01-08T15:54:00Z | 2018-01-29T13:20:38Z | https://github.com/sparklemotion/nokogiri/issues/1709 | 286,791,320 | 1,709 |
[
"sparklemotion",
"nokogiri"
] | The [Blather](https://github.com/adhearsion/blather) project, an important part of [Adhearsion](https://github.com/adhearsion/adhearsion), has been [severely affected](https://github.com/adhearsion/blather/issues/145) by a cache clearing issue in the JRuby implementation since 1.6.2, and as such has had to lock the Nok... | JRuby cache clearing issue since 1.6.2 affects Blather (Adhearsion) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1708/comments | 10 | 2018-01-02T14:41:25Z | 2018-02-19T06:18:53Z | https://github.com/sparklemotion/nokogiri/issues/1708 | 285,445,449 | 1,708 |
[
"sparklemotion",
"nokogiri"
] | ## If you're having trouble installing Nokogiri ...
**What is the output of `gem install`?**
```
$ gem install nokogiri -v '1.8.1'
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/home/samialmouhtaseb/.rvm/rubies/ru... | Install and Compile failed (Ubuntu 14.04.3) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1707/comments | 1 | 2018-01-01T16:32:41Z | 2018-01-01T17:10:22Z | https://github.com/sparklemotion/nokogiri/issues/1707 | 285,316,150 | 1,707 |
[
"sparklemotion",
"nokogiri"
] | Just a notice about issue with nokogiri fat gem 1.8.1 on Windows machines.
Current release informs about ruby version not being <2.5 .
Will it be supported with a new release - 1.8.2?
Issue name based on #1618 . | Release Windows fat gem for Ruby 2.5 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1706/comments | 2 | 2018-01-01T15:38:53Z | 2018-01-04T17:21:08Z | https://github.com/sparklemotion/nokogiri/issues/1706 | 285,313,495 | 1,706 |
[
"sparklemotion",
"nokogiri"
] | I text node contains Ampersand it is missing in a parsed document
```ruby
Nokogiri::XML('<a>Tom & Jerry</a>').to_xhtml
# "<a>Tom Jerry</a>\n"
```
[tutorial]: http://www.nokogiri.org/tutorials/installing_nokogiri.html
| I text node contains Ampersand it is missing in a parsed document | https://api.github.com/repos/sparklemotion/nokogiri/issues/1705/comments | 5 | 2017-12-27T16:50:09Z | 2017-12-27T22:38:38Z | https://github.com/sparklemotion/nokogiri/issues/1705 | 284,758,359 | 1,705 |
[
"sparklemotion",
"nokogiri"
] | While using the SAX parser to convert large HTML docs from one form to another, I encountered high memory bloat for large documents. I eventually traced it down to the following pattern causing an arbitrarily large number of Nokogiri::XML::Element objects being held for the lifetime of the associated Nokogiri::HTML::D... | unexpected memory bloat from Nokogiri::XML::Node.new | https://api.github.com/repos/sparklemotion/nokogiri/issues/1703/comments | 5 | 2017-12-15T15:19:24Z | 2021-02-16T17:05:35Z | https://github.com/sparklemotion/nokogiri/issues/1703 | 282,459,277 | 1,703 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
I have a toolset that extensively uses Nokogiri's features of adding HTML fragments to existing HTML documents, using Builder. I've found that if the fragments contain nonstandard HTML tags, they are apparently added at the wrong level of the document.
There's certainly a c... | Document fragments with nonstandard tags are added incorrectly to HTML document | https://api.github.com/repos/sparklemotion/nokogiri/issues/1701/comments | 2 | 2017-12-11T15:54:23Z | 2019-01-05T03:23:07Z | https://github.com/sparklemotion/nokogiri/issues/1701 | 281,067,563 | 1,701 |
[
"sparklemotion",
"nokogiri"
] | I am having trouble installing Nokogiri on a RHEL 7 server because it is only available from an older RHEL 6 repo 'rhel-6-server-sam-rpms'
I installed it by downloading it from that repo and then did a yum localinstall, but obviously that is not ideal. | rubygem-nokogiri is not available in any RHEL7 repos | https://api.github.com/repos/sparklemotion/nokogiri/issues/1695/comments | 10 | 2017-12-03T11:30:30Z | 2017-12-12T14:51:47Z | https://github.com/sparklemotion/nokogiri/issues/1695 | 278,765,572 | 1,695 |
[
"sparklemotion",
"nokogiri"
] | I have to compile and bundle Nokogiri `v1.7.2` or `v1.8.1` and all its dependencies to a single folder on MacOS and a single folder on CentOS. The main reason for this is that on the deployment machine I don't have access to `/usr/local/lib`. Everything needs to be self-contained.
I compiled the gem using:
```
g... | Compile and bundle Nokogiri and its dependencies (liblzma) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1694/comments | 9 | 2017-11-30T16:14:57Z | 2021-02-16T17:05:35Z | https://github.com/sparklemotion/nokogiri/issues/1694 | 278,179,277 | 1,694 |
[
"sparklemotion",
"nokogiri"
] | **Have you tried following [the installation tutorial][tutorial]?**
Yes
**What is the output of `gem install`?**
```
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:76: warning: Insecure world writable dir /Library/Ruby/Gems/2.3.0/gems in PATH, mode 040777
Bu... | Unable to install Nokogiri on Mac OS 10.13 with lzma from homebrew | https://api.github.com/repos/sparklemotion/nokogiri/issues/1693/comments | 2 | 2017-11-20T18:44:04Z | 2018-03-04T23:49:49Z | https://github.com/sparklemotion/nokogiri/issues/1693 | 275,458,113 | 1,693 |
[
"sparklemotion",
"nokogiri"
] | Should I clarify how to send a problem to a document or markdown file?
Should I follow the instructions for getting into the mailing list like code and bug reports? | About sending an issue to a document | https://api.github.com/repos/sparklemotion/nokogiri/issues/1691/comments | 2 | 2017-11-18T05:43:24Z | 2017-12-21T15:31:33Z | https://github.com/sparklemotion/nokogiri/issues/1691 | 275,055,866 | 1,691 |
[
"sparklemotion",
"nokogiri"
] | Summary: Trying to install nokogiri on OS X 10.13.1 causes an error.
## Action
```
gem install nokogiri -v '1.8.1'
```
## Result
```
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
current directory: /... | Error compiling libxml2 when installing Nokogiri on OS X 10.13.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1690/comments | 28 | 2017-11-16T22:48:03Z | 2021-02-16T17:04:17Z | https://github.com/sparklemotion/nokogiri/issues/1690 | 274,691,391 | 1,690 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri 1.8.1 ships with libxml 2.9.5. However, libxml2 has shipped 2.9.6 and 2.9.7 since then:
http://xmlsoft.org/news.html
Consider upgrading for bugfixes noted in the changelogs. | Upgrade to libxml 2.9.7 and libxslt 1.1.32 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1688/comments | 1 | 2017-11-13T18:57:45Z | 2019-01-05T01:22:53Z | https://github.com/sparklemotion/nokogiri/issues/1688 | 273,539,484 | 1,688 |
[
"sparklemotion",
"nokogiri"
] | Gentoo published a security advisory last Friday, which claims libxml < 2.9.4-r3 contains vulnerabilities.
[Here's a link to the advisory.](https://security.gentoo.org/glsa/201711-01)
This issue is to investigate and triage how this may impact Nokogiri.
Hat tip to danny@snyk.io, @grnd, for pointing out this ad... | Investigate whether Nokogiri is vulnerable to libxml2 issues noted in GLSA 201711-01 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1687/comments | 4 | 2017-11-13T18:46:17Z | 2017-11-13T22:24:33Z | https://github.com/sparklemotion/nokogiri/issues/1687 | 273,536,127 | 1,687 |
[
"sparklemotion",
"nokogiri"
] | Dear everyone!
I have been messing with Nokogiri for the last week and it helped me a lot in extracting huge library of XML files. There is one thing I stumbled upon and could not find and information.
There are XML files looking like this:
```XML
<Creature>
<AttackSkill>2</AttackSkill>
<DefenceSkill>2</Defe... | Nokogiri and xpointer? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1686/comments | 1 | 2017-11-11T10:01:20Z | 2018-02-18T20:09:37Z | https://github.com/sparklemotion/nokogiri/issues/1686 | 273,134,513 | 1,686 |
[
"sparklemotion",
"nokogiri"
] | This is for the Java version of Nokogiri. I'm running with JRuby 9.1.13.0.
When serializing XML containing a processing instruction, Java Nokogiri adds a carriage return after each PI, regardless of whether or not one already is present.
Sample code is far below. The output of the code is as follows:
```xml
<?xml... | Java version incorrectly adds CR after processing instructions | https://api.github.com/repos/sparklemotion/nokogiri/issues/1684/comments | 2 | 2017-10-29T02:51:57Z | 2019-11-20T10:26:25Z | https://github.com/sparklemotion/nokogiri/issues/1684 | 269,366,484 | 1,684 |
[
"sparklemotion",
"nokogiri"
] | We have a group of xsd's with a base overarching file that includes all the other files into 1 single namespace. Names have been changed due to proprietary files. Whenever we try to run Nokogiri::XML::Schema#validate on a valid XML file against the overarching.xsd, we get an error:
```
ERROR: Element '{http://www.w3... | XSD Validation Error with files including themselves. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1683/comments | 1 | 2017-10-26T14:45:30Z | 2019-01-05T02:09:23Z | https://github.com/sparklemotion/nokogiri/issues/1683 | 268,789,915 | 1,683 |
[
"sparklemotion",
"nokogiri"
] | Hello,
Nokogiri is installed via `gem install`. Mac OS X High Sierra.
The simple XSLT-application script runs differently when executed from two different directories.
Specifically, from a fresh directory, the differences are:
1. It runs much slower (seconds instead of <0.1s), and
2. The output XML is not fo... | Nokogiri runs differently when run from different directories. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1682/comments | 7 | 2017-10-19T22:07:31Z | 2017-10-22T17:21:21Z | https://github.com/sparklemotion/nokogiri/issues/1682 | 267,004,679 | 1,682 |
[
"sparklemotion",
"nokogiri"
] | Hello, I have the following issue: I'm tryng to load some tags into a xml string that is the following:
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId8" Type="http://schemas.openxmlformats.or... | nokogiri inserts lowercase tag instead of uppercase tags | https://api.github.com/repos/sparklemotion/nokogiri/issues/1681/comments | 3 | 2017-10-14T06:59:12Z | 2020-01-25T13:01:49Z | https://github.com/sparklemotion/nokogiri/issues/1681 | 265,470,376 | 1,681 |
[
"sparklemotion",
"nokogiri"
] | ## What problems are you experiencing?
When Nokogiri parses an HTML document, there are slight differences in its behavior between MRI and JRuby versions. MRI uses CDATA as the type for `<script>` tag contents, while Jruby version treats the content as text.
## What's the output from `nokogiri -v`?
On MRI:
`... | Script tag content on jruby has Text type, while on MRI it is CDATA | https://api.github.com/repos/sparklemotion/nokogiri/issues/1680/comments | 1 | 2017-10-12T17:31:30Z | 2018-02-05T04:47:31Z | https://github.com/sparklemotion/nokogiri/issues/1680 | 265,024,639 | 1,680 |
[
"sparklemotion",
"nokogiri"
] | **What problems are you experiencing?**
Nokogiri does not recognize the "Unicode high voltage" symbol (used to indicate AMP pages) as a valid XML attribute. (It does not recognize any other emoji/multi-byte unicode characters for that matter, though I don't know of any such valid attributes other than "⚡").
**Wha... | Fails to parse <html ⚡> (as found in AMP pages) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1679/comments | 1 | 2017-10-12T06:41:29Z | 2019-01-05T01:22:53Z | https://github.com/sparklemotion/nokogiri/issues/1679 | 264,829,857 | 1,679 |
[
"sparklemotion",
"nokogiri"
] | Take note of the `Element` object IDs in this console exploration of whether or not `NodeSet.dup` is actually returning new objects (as a deep copy implies). The `Document.dup` is doing a deep copy, but `NodeSet.dup` is not. (This console is using a class wrapping Nokogiri instance variables, but it should be obvious... | NodeSet.dup does not deep copy | https://api.github.com/repos/sparklemotion/nokogiri/issues/1678/comments | 11 | 2017-10-03T15:36:49Z | 2021-02-16T17:05:34Z | https://github.com/sparklemotion/nokogiri/issues/1678 | 262,476,702 | 1,678 |
[
"sparklemotion",
"nokogiri"
] | Using `~/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.8.1`
In general, the ruby enumerable methods, like `Array.select`, return a new Array, leaving the original untouched. For example,
```ruby
x = [*1..10]
#=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
y = x.select {|i| i % 2 == 0 }
#=> [2, 4, 6, 8, 10]
... | NodeSet does not follow ruby conventions for enumerable methods | https://api.github.com/repos/sparklemotion/nokogiri/issues/1677/comments | 4 | 2017-10-03T04:58:37Z | 2024-07-02T20:25:08Z | https://github.com/sparklemotion/nokogiri/issues/1677 | 262,304,684 | 1,677 |
[
"sparklemotion",
"nokogiri"
] | We are using Rocket BlueZone Terminal Emulator. But issue is, Ruby64 is not able to create BlueZone object but same code runs perfectly fine with Ruby32. Can someone please help to fix Ruby64?
OS - Windows 10.
Code -
require 'win32ole'
class BZExtra
def start_extra_sys
@system = WIN32OLE.new('BlueZo... | Ruby64 - Class not registered error for BlueZone emulator. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1675/comments | 1 | 2017-09-27T18:37:35Z | 2017-09-27T18:49:56Z | https://github.com/sparklemotion/nokogiri/issues/1675 | 261,076,353 | 1,675 |
[
"sparklemotion",
"nokogiri"
] | ```
USN-3424-1: libxml2 vulnerabilities
Present in rootfs
https://github.com/cloudfoundry/security-notices/issues/336
Ubuntu Security Notice USN-3424-1
18th September, 2017
libxml2 vulnerabilities
A security issue affects these releases of Ubuntu and its derivatives:
Ubuntu 17.04
Ubuntu 16.04 LTS
... | Investigate Ubuntu libxml2 patches in USN-3424-1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1673/comments | 8 | 2017-09-19T14:26:24Z | 2019-01-05T01:22:53Z | https://github.com/sparklemotion/nokogiri/issues/1673 | 258,841,090 | 1,673 |
[
"sparklemotion",
"nokogiri"
] | I fixed most of the test warning due to 'use assert_nil' and 'assert_send', then added ruby 24 and trunk to the appveyor build matrix.
[Test results](https://ci.appveyor.com/project/MSP-Greg/nokogiri) and the two commits, [Fix test warnings](https://github.com/MSP-Greg/nokogiri/commit/e24cb0f216ed969dfc7aa61425885f0... | Update appveyor to use 2.4 & trunk, fix some test warnings | https://api.github.com/repos/sparklemotion/nokogiri/issues/1672/comments | 8 | 2017-09-17T18:05:29Z | 2018-02-19T06:22:39Z | https://github.com/sparklemotion/nokogiri/issues/1672 | 258,321,099 | 1,672 |
[
"sparklemotion",
"nokogiri"
] | When I create a CDATA node with an Integer or a Float as content, the ruby interpreter segfault.
```ruby
doc = Nokogiri::XML::Document.new
elem = Nokogiri::XML::CDATA.new(doc, 1)
```
**nokogiri -v**
> Nokogiri (1.8.0)
> *warnings*: []
> *nokogiri*: 1.8.0
> *ruby*:
> version: 2.4.0
> pl... | Segfault when creating CDATA with Integer or Float | https://api.github.com/repos/sparklemotion/nokogiri/issues/1669/comments | 2 | 2017-08-10T14:55:53Z | 2020-02-02T18:51:06Z | https://github.com/sparklemotion/nokogiri/issues/1669 | 249,375,094 | 1,669 |
[
"sparklemotion",
"nokogiri"
] | I want to get the indented HTML document
<!DOCTYPE html>
<html>
<head>
<title>Sample</title>
</head>
<body>
<header></header>
<main>
<div>This is a sample.</div>
</main>
<footer></footer>
</body>
</html>
from a sourc... | `write_to` ingores the indent option | https://api.github.com/repos/sparklemotion/nokogiri/issues/1668/comments | 3 | 2017-08-06T02:14:40Z | 2019-07-25T13:38:06Z | https://github.com/sparklemotion/nokogiri/issues/1668 | 248,220,745 | 1,668 |
[
"sparklemotion",
"nokogiri"
] |
**What is the output of `gem install`?**
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/nokogiri-1.7.2/ext/nokogiri
/usr/bin/ruby2.3 -r ./siteconf20170725-5111-trm30k.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri u... | Problem installing Nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1667/comments | 4 | 2017-07-27T17:31:05Z | 2018-11-19T18:58:11Z | https://github.com/sparklemotion/nokogiri/issues/1667 | 246,113,820 | 1,667 |
[
"sparklemotion",
"nokogiri"
] | ## Summary
When I try to replace element with CDATA on JRuby, I got an error `RuntimeError: org.jruby.exceptions.RaiseException: (RuntimeError) could not replace child: org.w3c.dom.DOMException: NOT_SUPPORTED_ERR: The implementation does not support the requested type of object or operation.`. What is even more stra... | Element#replace with CDATA raises error on JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1666/comments | 5 | 2017-07-24T09:28:58Z | 2018-03-21T07:52:09Z | https://github.com/sparklemotion/nokogiri/issues/1666 | 245,021,397 | 1,666 |
[
"sparklemotion",
"nokogiri"
] | I tried to get the content of all `<li>` of the link ` "http://quote.eastmoney.com/stocklist.html"`
However, I found the content parsed by `Nokogiri` missed a lot of content of `<li>`. I wonder if the content would be shrinked if there are too many `<li>` nodes?
The code:
```
require 'open-uri'
url = "ht... | Nokogiri missing content of real HTML | https://api.github.com/repos/sparklemotion/nokogiri/issues/1665/comments | 1 | 2017-07-22T03:59:16Z | 2017-07-22T17:28:33Z | https://github.com/sparklemotion/nokogiri/issues/1665 | 244,821,981 | 1,665 |
[
"sparklemotion",
"nokogiri"
] | Misnested tags such as `<b>bold <i>bold italic</b> italic</i>` are not being handled in accordance with the HTML parsing spec.
```ruby
require 'rubygems'
require 'nokogiri'
html_doc = Nokogiri::HTML("<!DOCTYPE html><p>1<b>2<i>3</b>4</i>5</p>")
puts html_doc.to_html
```
Actual:
```
<!DOCTYPE html>
<html>... | nokogiri mismanages misnested tags | https://api.github.com/repos/sparklemotion/nokogiri/issues/1664/comments | 2 | 2017-07-19T20:27:59Z | 2017-07-22T17:15:43Z | https://github.com/sparklemotion/nokogiri/issues/1664 | 244,163,994 | 1,664 |
[
"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... | Fixnum is deprecated (Ruby 2.4.1) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1662/comments | 1 | 2017-07-18T19:24:03Z | 2017-07-19T12:07:36Z | https://github.com/sparklemotion/nokogiri/issues/1662 | 243,824,289 | 1,662 |
[
"sparklemotion",
"nokogiri"
] | The [1.2.x version of pkg-config](https://rubygems.org/gems/pkg-config/versions/1.2.3) seems to work fine in my testing. But [extconf.rb limits to 1.1.x](https://github.com/sparklemotion/nokogiri/blame/master/ext/nokogiri/extconf.rb#L119). Any reason not to change to limit to 1.x? | Support pkg-config gem 1.2.x? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1660/comments | 1 | 2017-07-04T15:40:19Z | 2017-09-19T14:49:12Z | https://github.com/sparklemotion/nokogiri/issues/1660 | 240,454,295 | 1,660 |
[
"sparklemotion",
"nokogiri"
] | ## If this isn't an installation issue ...
**What problems are you experiencing?**
The default document encoding seems to have switched from UTF-8 to ASCII-8BIT between version 1.7.2 and 1.8.0 (using jruby 9.1.12.0).
**What's the output from `nokogiri -v`?**
These were run on OSX, but the same problem exist... | default encoding changed from UTF-8 to ASCII-8BIT (1.7.2 - 1.8.0) | https://api.github.com/repos/sparklemotion/nokogiri/issues/1659/comments | 2 | 2017-06-26T23:59:50Z | 2017-11-13T19:09:53Z | https://github.com/sparklemotion/nokogiri/issues/1659 | 238,702,024 | 1,659 |
[
"sparklemotion",
"nokogiri"
] | There is a desire to /set/ line numbers on XML nodes. This is for constructed nodes.
Please see downstream discussion at https://github.com/rubys/nokogumbo/issues/53#issuecomment-309504802
Related, also see discussion on libxml and line numbers greater than 65535 (and workarounds) at:
- https://github.com/rub... | Create API for /setting/ line number | https://api.github.com/repos/sparklemotion/nokogiri/issues/1657/comments | 3 | 2017-06-20T01:52:57Z | 2017-06-20T14:09:46Z | https://github.com/sparklemotion/nokogiri/issues/1657 | 237,070,659 | 1,657 |
[
"sparklemotion",
"nokogiri"
] | job seems to hang while running `ruby -v` ... which is ... surprising.
https://ci.nokogiri.org/teams/nokogiri-core/pipelines/nokogiri/jobs/rbx-latest-system/builds/25
| concourse: rbx build is hanging | https://api.github.com/repos/sparklemotion/nokogiri/issues/1656/comments | 6 | 2017-06-19T17:56:42Z | 2017-06-20T13:37:18Z | https://github.com/sparklemotion/nokogiri/issues/1656 | 236,971,095 | 1,656 |
[
"sparklemotion",
"nokogiri"
] | I am having trouble updating nokogiri and installing gems with dependencies to nokogiri. I am using Ruby 2.3
**What is the output of `gem install`?**
```
$ gem install nokogiri -- --use-system-libraries
Building native extensions with: '--use-system-libraries'
This could take a while...
ERROR: Error installing... | Can't update nokogiri gem | https://api.github.com/repos/sparklemotion/nokogiri/issues/1655/comments | 1 | 2017-06-19T11:37:58Z | 2017-06-19T13:55:18Z | https://github.com/sparklemotion/nokogiri/issues/1655 | 236,862,877 | 1,655 |
[
"sparklemotion",
"nokogiri"
] | Example build: https://ci.nokogiri.org/teams/nokogiri-core/pipelines/nokogiri/jobs/ruby-2.4-valgrind/builds/26
```
Fabulous run in 309.795857s, 4.5417 runs/s, 12.9376 assertions/s.
1407 runs, 4008 assertions, 0 failures, 0 errors, 6 skips
You have skipped tests. Run with --verbose for details.
==12483== Inva... | Investigate why valgrind builds are recently failing | https://api.github.com/repos/sparklemotion/nokogiri/issues/1654/comments | 6 | 2017-06-19T11:34:13Z | 2020-02-02T18:52:59Z | https://github.com/sparklemotion/nokogiri/issues/1654 | 236,861,900 | 1,654 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri version: 1.8.0
Script:
```ruby
require 'bundler/setup'
require 'nokogiri'
str = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><root><area><p>content</p></area></root>"
doc = Nokogiri::HTML::Document.parse(str)
result = doc.root.css("root > area + p")
puts result.inspect
```
On MRI 2.3.3:
```
... | Selector inconsistency between MRI and JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1653/comments | 2 | 2017-06-18T21:41:47Z | 2018-04-15T13:35:52Z | https://github.com/sparklemotion/nokogiri/issues/1653 | 236,747,487 | 1,653 |
[
"sparklemotion",
"nokogiri"
] | I have just reinstalled a gem (gpx) which depends on Nokogiri this appears to have pulled a newer version of nokogiri. This in turn bitched that the standard Mac OS ruby (2.0.0) was too old. I then installed rvm and ruby 2.4.0 and tried again.
Now nokogiri install dies trying to build libxml2:
Running 'compile... | Install on Mac OS 10.12.5 -- rvm and ruby ruby 2.4.0p0 faols | https://api.github.com/repos/sparklemotion/nokogiri/issues/1652/comments | 2 | 2017-06-15T22:03:54Z | 2017-06-17T00:51:53Z | https://github.com/sparklemotion/nokogiri/issues/1652 | 236,327,008 | 1,652 |
[
"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`?**
```
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
... | Error installing nokogiri on macOS Sierra 10.12.5 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1649/comments | 3 | 2017-06-09T23:03:15Z | 2017-06-10T02:09:58Z | https://github.com/sparklemotion/nokogiri/issues/1649 | 234,957,686 | 1,649 |
[
"sparklemotion",
"nokogiri"
] | On the rubygems.org website it is stated that nokogiri 1.8.0 requires ruby 2.1.0 or above. However the metadata in the gem says it is ruby 2.2.0 or above
Screenshot of RubyGems.org (5th June)

metadata:... | Incorrect ruby requirement on rubygems.org for v1.8.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1648/comments | 4 | 2017-06-05T17:07:29Z | 2017-06-19T11:15:40Z | https://github.com/sparklemotion/nokogiri/issues/1648 | 233,651,438 | 1,648 |
[
"sparklemotion",
"nokogiri"
] | Gem nokogiri failed to install on Windows RubyInstaller 2.4.1
When install Ruby on Rails then error message: 'required ruby < 2.4'
When gem will support Ruby 2.4.x on Windows?
RubyInstaller for Windows:
https://github.com/oneclick/rubyinstaller2/releases
| Failed to install on Windows RubyInstaller 2.4.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1645/comments | 3 | 2017-05-19T08:10:33Z | 2017-05-19T09:44:05Z | https://github.com/sparklemotion/nokogiri/issues/1645 | 229,901,343 | 1,645 |
[
"sparklemotion",
"nokogiri"
] | Base URI is not set correctly for xincludes with File.read or opening a URL.
The following examples assume the GitHub nokogiri repo is cloned to /Users/rcrews/Sandbox/nokogiri. Should be easy to adapt to whatever path yours is cloned to.
This fails when run from the Desktop (such as /Users/rcrews/Desktop):
```ru... | Base URI not set correctly for xincludes with File.read or URLs | https://api.github.com/repos/sparklemotion/nokogiri/issues/1644/comments | 2 | 2017-05-16T05:35:59Z | 2019-01-05T03:10:22Z | https://github.com/sparklemotion/nokogiri/issues/1644 | 228,920,053 | 1,644 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.