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"
] | 1.6.1 installs fine, but 1.6.2 fails while patching. I'm on Mac OS X Mavericks.
```
$ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
```
```
$ gem install nokogiri -v '1.6.2'
Building native extensions. This could take a while...
Building nokogiri using packaged libraries.
Building libxml2-2.8... | 1.6.2 install: "Failed to complete patch task" | https://api.github.com/repos/sparklemotion/nokogiri/issues/1095/comments | 18 | 2014-05-13T00:44:40Z | 2015-04-14T21:30:09Z | https://github.com/sparklemotion/nokogiri/issues/1095 | 33,360,390 | 1,095 |
[
"sparklemotion",
"nokogiri"
] | The `extconf.rb` shipped in MRI v1.6.1 appears to be from [v1.6.0](https://github.com/sparklemotion/nokogiri/compare/v1.6.0...v1.6.1#diff-53).
I noticed when the `nokogiri-1.6.1/ext/nokogiri/tmp/*/ports` directory was very large in my gems folder.
``` sh
wget 'https://rubygems.org/downloads/nokogiri-1.6.1.gem'
gem un... | Old extconf.rb in v1.6.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1094/comments | 4 | 2014-05-08T06:02:35Z | 2014-05-08T15:09:23Z | https://github.com/sparklemotion/nokogiri/issues/1094 | 33,056,708 | 1,094 |
[
"sparklemotion",
"nokogiri"
] | Hello.
I try to run
```
Nokogiri::XML('<?xml version="1.0" encoding="windows-1251" ?>')
```
On my PC it works fine. But on server it rises error:
> Unsupported encoding windows-1251
> nokogiri (1.6.1) lib/nokogiri/xml/document.rb:55:in `read_memory'
It looks like I have some problems with libxml2 on server. Admin o... | Unsupported encoding | https://api.github.com/repos/sparklemotion/nokogiri/issues/1093/comments | 5 | 2014-05-07T12:13:05Z | 2021-02-16T17:04:36Z | https://github.com/sparklemotion/nokogiri/issues/1093 | 32,979,271 | 1,093 |
[
"sparklemotion",
"nokogiri"
] | The following piece of code sometimes causes SEGFAULTS in GC of MRI Ruby which makes it very difficult to debug:
``` ruby
require 'nokogiri'
def run
doc = Nokogiri::XML::Document.new()
text_node = Nokogiri::XML::Text.new("text element", doc)
cdata_node = Nokogiri::XML::CDATA.new(doc, "cdata element")
# Nev... | Nokogiri/libxml SEGFAULTS in MRI Ruby GC | https://api.github.com/repos/sparklemotion/nokogiri/issues/1092/comments | 3 | 2014-05-07T11:22:49Z | 2020-02-02T18:51:03Z | https://github.com/sparklemotion/nokogiri/issues/1092 | 32,976,215 | 1,092 |
[
"sparklemotion",
"nokogiri"
] | OS: 10.9.2
Xcode: 5.1.1
I have been trying to get
```
bundle install
```
to work in a project that I have been working on with no issues for 4 months. I got a new computer so I have had to setup my environment again. I have been trying to figure it out for the past 3 hours and am getting very frustrated.
I can inst... | Can't Install nokogiri with Bundler in Mavericks | https://api.github.com/repos/sparklemotion/nokogiri/issues/1091/comments | 3 | 2014-05-06T20:58:29Z | 2014-05-08T01:23:45Z | https://github.com/sparklemotion/nokogiri/issues/1091 | 32,932,253 | 1,091 |
[
"sparklemotion",
"nokogiri"
] | There is a bug in JRuby version of Nokogiri which may lead to DoS attack. I've created a pull request #1087 which fixes it.
| JRuby memory exhaustion vulnerability - DoS possibility | https://api.github.com/repos/sparklemotion/nokogiri/issues/1090/comments | 1 | 2014-05-05T07:09:59Z | 2014-05-07T16:48:21Z | https://github.com/sparklemotion/nokogiri/issues/1090 | 32,790,659 | 1,090 |
[
"sparklemotion",
"nokogiri"
] | in nokogiri version 1.6.2-rc2, the nth-last-child() function gives error Invalid expression.
but on version 1.6.1 it works fine.
How to reproduce:
```
page = @mecha.get 'http://prakard.com/default.aspx?g=printtopic&t=348458'
page.search('.navlinks > a:nth-last-child(3)')
Nokogiri::XML::XPath::SyntaxError: Invalid ex... | a:nth-last-child() invalid expression in 1.6.2-rc2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1089/comments | 1 | 2014-05-04T02:02:50Z | 2014-05-07T16:46:35Z | https://github.com/sparklemotion/nokogiri/issues/1089 | 32,759,464 | 1,089 |
[
"sparklemotion",
"nokogiri"
] | rb(main):006:0> require "nokogiri"
=> true
irb(main):007:0> require "open-uri"
=> true
irb(main):012:0> teste = Nokogiri::XML(open(%Q{http://spotlight.dbpedia.org/rest/annotate/?text=#{"Barcelona%20is%20team%20soccer%20in%20Brazil"}}))
Result is HTML , but i need to XML
help me?
| Not rerturn XML with Nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/1088/comments | 2 | 2014-04-30T17:48:11Z | 2021-02-16T17:04:36Z | https://github.com/sparklemotion/nokogiri/issues/1088 | 32,557,831 | 1,088 |
[
"sparklemotion",
"nokogiri"
] | The following simple example generates an error:
```
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
</head>
</html>
```
Nokogiri::HTML.parse(File.open("example-files/java-nokogiri-issue.html")).errors
=> [#<Nokogiri::XML::SyntaxError: Missing attribute name.>]
Make meta n... | Java version of HTML parser errors with self-closing base or meta tags | https://api.github.com/repos/sparklemotion/nokogiri/issues/1086/comments | 2 | 2014-04-24T01:42:47Z | 2016-02-17T16:15:22Z | https://github.com/sparklemotion/nokogiri/issues/1086 | 32,114,300 | 1,086 |
[
"sparklemotion",
"nokogiri"
] | Windows
Luckily for you, building on Windows is so difficult that we’ve done it for you: Nokogiri comes bundled with all the DLLs you need to be NOKOGIRIFIED!
So i attempted to install this gem on my win7-x64 box, didnt get past the configure stage and .. err. maybe its just me, and im getting somethin diff to everyo... | Lucky me? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1085/comments | 1 | 2014-04-22T11:19:17Z | 2021-02-16T17:04:35Z | https://github.com/sparklemotion/nokogiri/issues/1085 | 31,964,153 | 1,085 |
[
"sparklemotion",
"nokogiri"
] | ### Steps to reproduce
``` ruby
raw_content = <<-XML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
<script type="text/javascript" src="/test.js"></script>
</head>
<body>
... | JRuby-Nokogiri generates non-wellformed XHTML | https://api.github.com/repos/sparklemotion/nokogiri/issues/1084/comments | 4 | 2014-04-20T09:32:52Z | 2014-04-23T20:26:54Z | https://github.com/sparklemotion/nokogiri/issues/1084 | 31,863,124 | 1,084 |
[
"sparklemotion",
"nokogiri"
] | I'm using rspec, capybara for testing. The following spec line:
```
should have_css("a:not('.hidden')[href='#{classification_path(@cl_1_1_1)}'][data-method='delete']")
```
cases the error:
```
Failure/Error: should have_css("a:not('.hidden')[href='#{classification_path(@cl_1_1_1)}'][data-method='delete']")
... | Nokogiri::CSS::SyntaxError on "a:not('.hidden')" | https://api.github.com/repos/sparklemotion/nokogiri/issues/1083/comments | 2 | 2014-04-17T15:35:24Z | 2014-04-22T10:24:16Z | https://github.com/sparklemotion/nokogiri/issues/1083 | 31,737,094 | 1,083 |
[
"sparklemotion",
"nokogiri"
] | Hi, i'm using OSX 10.9.2 and Ruby 2.1.1 installed with rbenv.
When running `$ sudo gem install nokogiri -v '1.6.1'` I receive the following error:
```
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/usr/local/var/rbenv/v... | Unable to install nokogiri gem | https://api.github.com/repos/sparklemotion/nokogiri/issues/1082/comments | 18 | 2014-04-17T15:32:52Z | 2016-12-07T12:12:56Z | https://github.com/sparklemotion/nokogiri/issues/1082 | 31,736,834 | 1,082 |
[
"sparklemotion",
"nokogiri"
] | ### Steps to reproduce
``` ruby
input = <<-XML
<foo xmlns="http://example.org">
<bar><a href="/foo">baz</a></bar>
</foo>
XML
require 'nokogiri'
doc = ::Nokogiri::XML.fragment(input)
p doc.xpath("descendant-or-self::ex:a/@href", { 'ex' => 'http://example.org' })
```
### Expected output
This is the output on MRI:
`... | JRuby-Nokogiri does not recognise attributes inside namespaces | https://api.github.com/repos/sparklemotion/nokogiri/issues/1081/comments | 1 | 2014-04-14T20:31:53Z | 2014-04-20T12:45:58Z | https://github.com/sparklemotion/nokogiri/issues/1081 | 31,501,579 | 1,081 |
[
"sparklemotion",
"nokogiri"
] | The node name for comments is `"comment"` on MRI, but `"#comment"` on JRuby.
### Steps to reproduce
Run the following on JRuby:
``` ruby
input = %[
<link rel="stylesheet" href="/foo.css" />
<!--[if lt IE 9]>
<script src="/js/lib/html5shiv.js"></script>
<![endif]-->
]
require 'nokogiri'
doc = Nokogiri::HTML.parse... | JRuby-Nokogiri has different comment node name | https://api.github.com/repos/sparklemotion/nokogiri/issues/1080/comments | 1 | 2014-04-14T20:24:23Z | 2014-04-20T12:45:58Z | https://github.com/sparklemotion/nokogiri/issues/1080 | 31,500,949 | 1,080 |
[
"sparklemotion",
"nokogiri"
] | The following piece of code generates transformed XML that starts with `<?xml version="1.0" encoding="utf-8"?>` on MRI, but not on JRuby.
### Steps to reproduce
Execute the following on JRuby:
``` ruby
input_xml = <<-EOS
<?xml version="1.0" encoding="utf-8"?>
<report>
<title>My Report</title>
</report>
EOS
input_x... | JRuby-Nokogiri does not generate <?xml> | https://api.github.com/repos/sparklemotion/nokogiri/issues/1079/comments | 13 | 2014-04-14T20:12:49Z | 2016-02-17T23:28:04Z | https://github.com/sparklemotion/nokogiri/issues/1079 | 31,500,006 | 1,079 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri on JRuby fails to recognise `<xsl:value-of select="$foo"/>` and fails with an exception.
### Steps to reproduce
Execute the following code on JRuby:
``` ruby
input = <<-EOS
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output met... | JRuby-Nokogiri fails to parse XSLT stylesheet | https://api.github.com/repos/sparklemotion/nokogiri/issues/1078/comments | 4 | 2014-04-14T20:02:03Z | 2014-04-21T19:48:57Z | https://github.com/sparklemotion/nokogiri/issues/1078 | 31,498,414 | 1,078 |
[
"sparklemotion",
"nokogiri"
] | `Nokogiri::XML.fragment` cannot be used on frozen strings. (`Nokogiri::XML.parse` is not affected).
### Steps to reproduce
Execute the following on JRuby and MRI:
``` ruby
input = <<-EOS
<?xml version="1.0" encoding="utf-8"?>
<library>
<book title="I like turtles"/>
</library>
EOS
input.freeze
require 'nokogiri'
:... | JRuby-Nokogiri errors with “can't modify frozen string” | https://api.github.com/repos/sparklemotion/nokogiri/issues/1077/comments | 14 | 2014-04-14T18:49:25Z | 2016-02-17T23:42:57Z | https://github.com/sparklemotion/nokogiri/issues/1077 | 31,489,321 | 1,077 |
[
"sparklemotion",
"nokogiri"
] | `:not` is not working when I try
``` ruby
placeholders_without_parent_placeholder = doc.css("div[data-type=placeholder]:not(div[data-type=placeholder] div[data-type=placeholder])")
## Raises error
# *** Nokogiri::CSS::SyntaxError Exception: unexpected ' ' after '#<Nokogiri::CSS::Node:0x007f91410a1ac0>'
```
Its worki... | `:not` raising exception. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1076/comments | 3 | 2014-04-11T08:34:32Z | 2014-04-15T07:55:48Z | https://github.com/sparklemotion/nokogiri/issues/1076 | 31,310,668 | 1,076 |
[
"sparklemotion",
"nokogiri"
] | In a few places, Nokogiri sets and then unsets the LibXML structured error handler by calling `xmlSetStructuredErrorFunc` (e.g. https://github.com/sparklemotion/nokogiri/blob/669799790067a80ea34f8be5645e52acf434322b/ext/nokogiri/xml_reader.c#L465-L467).
As a result we lose any error handlers set externally to Nokogiri... | Nokogiri clears out externally set XML handlers | https://api.github.com/repos/sparklemotion/nokogiri/issues/1075/comments | 3 | 2014-04-10T15:15:25Z | 2024-07-02T18:52:28Z | https://github.com/sparklemotion/nokogiri/issues/1075 | 31,252,394 | 1,075 |
[
"sparklemotion",
"nokogiri"
] | Hi there!
I'm getting some strange behaviour... I figured I could walk a document by recursively iterating over the children in each NodeSet, but it seems to repeat nodes over and over in certain cases.
Here's a little program that demonstrates the problem. Just run it and watch: https://gist.github.com/epitron/10033... | Odd behaviour while recursively walking NodeSets... | https://api.github.com/repos/sparklemotion/nokogiri/issues/1073/comments | 1 | 2014-04-07T19:18:11Z | 2014-04-07T19:37:57Z | https://github.com/sparklemotion/nokogiri/issues/1073 | 31,013,578 | 1,073 |
[
"sparklemotion",
"nokogiri"
] | Related to:
'Resolves Java extension compilation problem on OSX'
SHA: d60cf83cca4ac3263b86438fae59d0568b4a0757
@yokolet Wish I had more details for you on this. Mainly a heads up. I built a local gem off of v1.6.2.beta.2., jruby 1.7.11, jdk 7.025, linux. Pretty much worked great except in one unique use case where the... | JAXPExtensionsProvider / Java 7 / Secure Processing | https://api.github.com/repos/sparklemotion/nokogiri/issues/1070/comments | 3 | 2014-03-31T14:41:30Z | 2014-04-17T03:30:41Z | https://github.com/sparklemotion/nokogiri/issues/1070 | 30,517,568 | 1,070 |
[
"sparklemotion",
"nokogiri"
] | ```
ArgumentError: unknown encoding name - UTF-8;
from /Users/michaelelfassy/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.6.1/lib/nokogiri/xml/node.rb:727:in `find'
```
I'm stuck on this, anyone have an idea what i'm missing? I only get this error when calling `inner_html`
I've made sure to add `# encoding: UTF-8` at t... | ArgumentError: unknown encoding name - UTF-8 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1068/comments | 4 | 2014-03-24T15:24:57Z | 2025-06-02T14:54:20Z | https://github.com/sparklemotion/nokogiri/issues/1068 | 30,044,571 | 1,068 |
[
"sparklemotion",
"nokogiri"
] | Hello all,
I need to parse a HTML and escape any tag (<>) that is not a standard HTML tag, How can I do that?
regards,
bráulio
| How to escape non HTML tags? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1067/comments | 3 | 2014-03-16T20:28:05Z | 2021-12-25T19:34:55Z | https://github.com/sparklemotion/nokogiri/issues/1067 | 29,525,383 | 1,067 |
[
"sparklemotion",
"nokogiri"
] | I have the following code:
```
require 'nokogiri'
reader = Nokogiri::XML::Reader(File.open('5258513130_report.xml'))
i = 0
reader.each do |node|
i += 1
break if i == 5000
end
puts "it's time to dump the heap..."
sleep
```
5258513130.xml is
```
<?xml version="1.0" encoding="utf-8"?>
<BulkDataExchangeResponses x... | Nokogiri::XML::Reader for java keeps whole document in memory | https://api.github.com/repos/sparklemotion/nokogiri/issues/1066/comments | 1 | 2014-03-14T23:18:50Z | 2024-07-02T19:07:52Z | https://github.com/sparklemotion/nokogiri/issues/1066 | 29,478,573 | 1,066 |
[
"sparklemotion",
"nokogiri"
] | From http://nokogiri.org/tutorials/installing_nokogiri.html:
> Because Nokogiri needs to be compiled and dynamically linked against both libxml2 and libxslt, it has gained a reputation for being complicated to install.
I have isolated/identified three (under various circumstances) bugs / reasons for this.
All of them... | mini_portile issue on Solaris/Illumos | https://api.github.com/repos/sparklemotion/nokogiri/issues/1064/comments | 6 | 2014-03-08T04:45:46Z | 2015-11-22T21:12:57Z | https://github.com/sparklemotion/nokogiri/issues/1064 | 29,015,045 | 1,064 |
[
"sparklemotion",
"nokogiri"
] | Ruby 2.1, Nokogiri 1.6.1
Title explains the issue I'm seeing. Here's a simple case to reproduce:
``` ruby
puts `ps -o rss= -p #{$$}`.to_i
doc = Nokogiri::HTML.fragment('<div>foo<span>bar</span></div>')
10000.times do
doc.dup
GC.start
end
puts `ps -o rss= -p #{$$}`.to_i
```
Memory usage goes from 11.9KB to 18.7KB... | Apparent memory leak when duping DocumentFragment | https://api.github.com/repos/sparklemotion/nokogiri/issues/1063/comments | 6 | 2014-03-07T14:25:41Z | 2020-02-02T18:52:59Z | https://github.com/sparklemotion/nokogiri/issues/1063 | 28,968,666 | 1,063 |
[
"sparklemotion",
"nokogiri"
] | Reproducible with code below -- works fine in MRI and Rubinius.
```
ruby -v
jruby 1.7.9 (1.9.3p392) 2013-12-06 87b108a on Java HotSpot(TM) 64-Bit Server VM 1.6.0_65-b14-462-11M4609 [darwin-x86_64]
```
``` ruby
require 'nokogiri'
html = "<html><head></head><body><div>replace me</div></body></html>"
doc = Nokogiri::H... | Node#replace fails after duping in jruby | https://api.github.com/repos/sparklemotion/nokogiri/issues/1060/comments | 5 | 2014-03-02T16:32:48Z | 2019-01-21T16:44:03Z | https://github.com/sparklemotion/nokogiri/issues/1060 | 28,582,740 | 1,060 |
[
"sparklemotion",
"nokogiri"
] | When passing this incorrect markup to Nokogiri (incorrect because the sub `ul` can't be a direct child of the root `ul`), Nokogiri does not try to fix it, which is fine with me:
```
<ul>
<li>item1</li>
<ul>
<li>subitem1</li>
</ul>
<li>item2</li>
</ul>
```
`Nokogiri::HTML("<ul><li>item1</li><ul><li>subitem... | Incorrect HTML markup fix for nested lists | https://api.github.com/repos/sparklemotion/nokogiri/issues/1059/comments | 3 | 2014-02-27T16:24:41Z | 2020-10-12T13:26:49Z | https://github.com/sparklemotion/nokogiri/issues/1059 | 28,432,316 | 1,059 |
[
"sparklemotion",
"nokogiri"
] | The current stable release of Nokogiri 1.6.1 seems to misbehave on Rbx even with the patches applied on Rbx as discussed in #1047. As such I'd like to request a Gem release of 1.6.2 when convenient. I'm not sure what exactly changed but it seems to behave nicely so far.
Thanks!
| Request for release 1.6.2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1055/comments | 1 | 2014-02-25T13:18:21Z | 2014-02-26T15:17:20Z | https://github.com/sparklemotion/nokogiri/issues/1055 | 28,246,177 | 1,055 |
[
"sparklemotion",
"nokogiri"
] | Currently `native_content=` method behaviour is inconsistent.
**Test case**:
``` ruby
require "nokogiri"
doc = Nokogiri::HTML.fragment('Text\n<em>element</em>')
doc.children.first.native_content = "You & Me\n" # Fail
doc.children.last.native_content = "You & Me" # Pass
puts doc.to_html
```
**Expected resul... | XML::Text#native_content= should not escape content | https://api.github.com/repos/sparklemotion/nokogiri/issues/1053/comments | 3 | 2014-02-23T19:17:02Z | 2024-07-02T18:50:23Z | https://github.com/sparklemotion/nokogiri/issues/1053 | 28,124,820 | 1,053 |
[
"sparklemotion",
"nokogiri"
] | http://nokogiri.org/tutorials/installing_nokogiri.html says nothing about the subject.
| NOKOGIRI_USE_SYSTEM_LIBRARIES is not documented | https://api.github.com/repos/sparklemotion/nokogiri/issues/1052/comments | 6 | 2014-02-18T19:56:29Z | 2018-07-30T20:48:44Z | https://github.com/sparklemotion/nokogiri/issues/1052 | 27,822,545 | 1,052 |
[
"sparklemotion",
"nokogiri"
] | <pre>
oyster% gem install nokogiri -v '1.6.1'
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/home/me/.rbenv/versions/1.9.3-p484/bin/ruby extconf.rb
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-linux-gnu/ports/l... | Relative path to compile.log | https://api.github.com/repos/sparklemotion/nokogiri/issues/1051/comments | 1 | 2014-02-18T19:37:25Z | 2016-02-17T04:59:10Z | https://github.com/sparklemotion/nokogiri/issues/1051 | 27,821,047 | 1,051 |
[
"sparklemotion",
"nokogiri"
] | To experimentally link _1.6.1 stable release_ against (unpatched) brew libxml2 2.9.1 and libxslt:
### Unexpected behavior against documented flags
```
gem install nokogiri -- \
--use-system-libraries \
--with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config \
--with-xslt-config=/usr/local/opt/libxslt/bin/xslt-... | [osx] --use-system-libraries doesn't work however NOKOGIRI_USE_SYSTEM_LIBRARIES=1 does | https://api.github.com/repos/sparklemotion/nokogiri/issues/1049/comments | 3 | 2014-02-13T02:26:44Z | 2014-12-29T13:53:24Z | https://github.com/sparklemotion/nokogiri/issues/1049 | 27,490,146 | 1,049 |
[
"sparklemotion",
"nokogiri"
] | Bundled deps are massively convenient except for a small matter of 107 MiB chewing on my SSD. At least consider running `rm -rf {{path-to-gem}}/ext/nokogiri/tmp` for a saving of ~80 MiB in the .rb or Makefile plz^2.
### Before
 bogus data to be sweeped by the GC. Under MRI this seems to magically work but under Rubinius this triggers a segfault.
A script that reprod... | Bogus data being marked for GC sweeps under Rubinius | https://api.github.com/repos/sparklemotion/nokogiri/issues/1047/comments | 25 | 2014-02-12T19:07:19Z | 2021-02-16T17:05:51Z | https://github.com/sparklemotion/nokogiri/issues/1047 | 27,459,546 | 1,047 |
[
"sparklemotion",
"nokogiri"
] | Hello,
can someone help me with this problem?
OS: Ubuntu 12.04 server
Libs already installed: libxslt-dev libxml2-dev libxslt1-dev libxml2-dev
```
$ sudo gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
... | ERROR: Failed to build gem native extension. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1046/comments | 2 | 2014-02-10T11:39:36Z | 2015-01-12T13:44:17Z | https://github.com/sparklemotion/nokogiri/issues/1046 | 27,258,707 | 1,046 |
[
"sparklemotion",
"nokogiri"
] | If a selector doesn't match anything, it can lead to unhelpful errors.
``` ruby
page.at_css('.foo .bar').text # => NoMethodError: undefined method `text' for nil:NilClass
```
What would you think of bang methods that raise when the selector is not found? Something like:
``` ruby
module Nokogiri
module XML
def ... | Add bang versions of finders that raise when nothing found? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1045/comments | 1 | 2014-02-07T19:23:06Z | 2022-01-19T14:53:05Z | https://github.com/sparklemotion/nokogiri/issues/1045 | 27,163,493 | 1,045 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri treats wbr element as requiring closing tag, but the HTML5 spec says it does not need end tag. http://www.w3.org/TR/html5/text-level-semantics.html#the-wbr-element
We become aware of this when excess number of wbr elements are used, Nokogiri will then hit a nesting limit and discard contents after that.
http... | Parse wbr element as singleton element | https://api.github.com/repos/sparklemotion/nokogiri/issues/1044/comments | 2 | 2014-02-07T03:53:54Z | 2021-04-29T07:36:30Z | https://github.com/sparklemotion/nokogiri/issues/1044 | 27,107,851 | 1,044 |
[
"sparklemotion",
"nokogiri"
] | ```
# Nokogiri (1.6.1)
---
warnings: []
nokogiri: 1.6.1
ruby:
version: 1.9.3
platform: java
description: jruby 1.7.10 (1.9.3p392) 2014-01-09 c4ecd6b on OpenJDK 64-Bit Server VM 1.7.0_51-b00 [linux-amd64]
engine: jruby
jruby: 1.7.10
xerces: Xerces-J 2.9.0
nekohtml: Nek... | nokogiri throws java.lang.NullPointerException when calling #inspect | https://api.github.com/repos/sparklemotion/nokogiri/issues/1042/comments | 3 | 2014-02-05T13:44:54Z | 2015-11-30T18:40:11Z | https://github.com/sparklemotion/nokogiri/issues/1042 | 26,960,269 | 1,042 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri::XML::Builder::NodeBuilder#method_missing always calls its block with instance_eval, changing the scope. This behavior is surprising. I would have expected these two ways of adding a class to an element to be equivalent.
``` ruby
puts Nokogiri::XML::Builder.new { |doc|
doc.root {
doc.div(:class => 'foo'... | Tag attribute shortcuts always change scope | https://api.github.com/repos/sparklemotion/nokogiri/issues/1041/comments | 2 | 2014-02-03T07:26:21Z | 2024-07-02T17:05:28Z | https://github.com/sparklemotion/nokogiri/issues/1041 | 26,784,714 | 1,041 |
[
"sparklemotion",
"nokogiri"
] | I'm trying to create an app that connects with an exchange server using EWS, and using the library ViewPoint for handling this.
Previously I was writing the app in MRI ruby, but we've now switched over to jRuby, and I've now noticed that it has completely broken the exchange interface code. I know the code works, and ... | Null pointer exception with XML builder | https://api.github.com/repos/sparklemotion/nokogiri/issues/1039/comments | 9 | 2014-01-31T17:21:47Z | 2015-01-20T17:30:22Z | https://github.com/sparklemotion/nokogiri/issues/1039 | 26,700,989 | 1,039 |
[
"sparklemotion",
"nokogiri"
] | It has not been tagged.
| Tag 1.6.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1038/comments | 1 | 2014-01-31T16:10:06Z | 2014-01-31T16:12:18Z | https://github.com/sparklemotion/nokogiri/issues/1038 | 26,691,179 | 1,038 |
[
"sparklemotion",
"nokogiri"
] | Minimal steps
$ bundle exec irb
``` ruby
$VERBOSE = true
$DEBUG = true
require 'nokogiri'
Nokogiri::HTML::parse ''
# segmentation fault or SystemStackError
# often both.
```
Machine 1
Ubuntu Linux 12.04 with RVM
$ bundle exec nokogiri -v
```
# Nokogiri (1.6.0)
---
warnings: []
nokogiri: 1.6.0
ruby... | Nokogiri 1.6 Segmentation Fault with irb under verbose and debug flags. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1037/comments | 1 | 2014-01-30T18:11:24Z | 2016-02-17T05:00:39Z | https://github.com/sparklemotion/nokogiri/issues/1037 | 26,619,143 | 1,037 |
[
"sparklemotion",
"nokogiri"
] | When duplicating a node from one document to add it into a new document, the add_child method raises a Runtime Error. However, the method does not raise a Runtime Error when adding a node created with the new document; nor does the method raise an error when added to an existing node in the new document.
The followi... | Unexpected Runtime Error raised by add_child method of XML::Document | https://api.github.com/repos/sparklemotion/nokogiri/issues/1036/comments | 2 | 2014-01-29T22:59:25Z | 2021-01-13T22:44:18Z | https://github.com/sparklemotion/nokogiri/issues/1036 | 26,561,322 | 1,036 |
[
"sparklemotion",
"nokogiri"
] | When running our scraper setup under Rubinius I started to notice a handful of ThreadError errors with the message "Recursively locking not allowed". This particular error struck me as odd since Nokogiri objects aren't shared between threads in our code (to actually prevent any potential threading issues).
Looking at ... | Recursive locking in Nokogiri::CSS::Parser.[] | https://api.github.com/repos/sparklemotion/nokogiri/issues/1035/comments | 5 | 2014-01-24T19:36:14Z | 2014-02-12T19:01:30Z | https://github.com/sparklemotion/nokogiri/issues/1035 | 26,265,275 | 1,035 |
[
"sparklemotion",
"nokogiri"
] | When I run this code in Jruby 1.7.9
``` ruby
require 'nokogiri'
builder = Nokogiri::XML::Builder.new do |xml|
xml.mods("xmlns"=>"http://www.loc.gov/mods/v3") {
xml.name(:type=>"personal") {
xml.namePart()
}
}
end
ng_xml = builder.doc
new_doc = Nokogiri::XML(ng_xml.to_s)
xpath =... | xpath returns inconsistent result set on cloned document with namespaces and attributes. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1034/comments | 3 | 2014-01-23T22:05:45Z | 2014-04-15T22:45:03Z | https://github.com/sparklemotion/nokogiri/issues/1034 | 26,202,444 | 1,034 |
[
"sparklemotion",
"nokogiri"
] | running `gem install nokogiri -v '1.6.1'` on osx 10.9 mavericks
getting:
```
make "DESTDIR=" clean
make "DESTDIR="
compiling html_document.c
cc1: error: unrecognized command line option "-Wdivision-by-zero"
make: *** [html_document.o] Error 1
make failed, exit code 2
```
same problem with
nokogiri 1.5.6
| unrecognized command line option "-Wdivision-by-zero" | https://api.github.com/repos/sparklemotion/nokogiri/issues/1030/comments | 5 | 2014-01-13T22:46:43Z | 2015-03-02T14:59:12Z | https://github.com/sparklemotion/nokogiri/issues/1030 | 25,535,124 | 1,030 |
[
"sparklemotion",
"nokogiri"
] | ...
Building native extensions. This could take a while...
/usr/local/bin/ruby19 extconf.rb
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:70: warning: Insecure world writable dir /usr/local/lib/ruby/gems/1.9.1/gems in PATH, mode 040777
**\* extconf.rb failed ***
Could not create Makefile due to some reas... | unable to update v.1.6.1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1028/comments | 8 | 2014-01-06T15:13:15Z | 2014-12-31T07:10:58Z | https://github.com/sparklemotion/nokogiri/issues/1028 | 25,106,796 | 1,028 |
[
"sparklemotion",
"nokogiri"
] | Hello :)
I've found that Nokogiri could generate invalid XML files when strings passed to `cdata` include invalid bytes (for the cdata spec)
For example
``` ruby
builder = Nokogiri::XML::Builder.new(:encoding => 'utf-8') do |xml|
xml.item(:type => :topping){
xml.attribute{
xml.cdata "Sliced Avocado... | Invalid characters in CDATA | https://api.github.com/repos/sparklemotion/nokogiri/issues/1027/comments | 1 | 2014-01-02T16:45:41Z | 2022-01-16T17:25:56Z | https://github.com/sparklemotion/nokogiri/issues/1027 | 24,974,062 | 1,027 |
[
"sparklemotion",
"nokogiri"
] | I noticed there are no tags for these releases. Could you please provide tags for them as well, especially since these are related to a DoS security issue.
| Please tag the 1.5.11 and 1.6.1 releases | https://api.github.com/repos/sparklemotion/nokogiri/issues/1025/comments | 1 | 2013-12-24T14:17:19Z | 2014-01-31T16:14:17Z | https://github.com/sparklemotion/nokogiri/issues/1025 | 24,747,814 | 1,025 |
[
"sparklemotion",
"nokogiri"
] | Does nokogiri support new features like `<xs:assert test="metric2 > metric1"/>` ?
| Does nokogiri support xsd 1.1 now? | https://api.github.com/repos/sparklemotion/nokogiri/issues/1024/comments | 5 | 2013-12-20T03:51:01Z | 2019-08-30T23:00:41Z | https://github.com/sparklemotion/nokogiri/issues/1024 | 24,603,951 | 1,024 |
[
"sparklemotion",
"nokogiri"
] | When installing nokogiri it builds a libxml to embed, which drops off libxml2.so.2.8.0 in `.../gems/1.9.1/gems/nokogiri-1.6.1/ports/x86_64-redhat-linux/libxml2/2.8.0/include/libxml2` - but it doesn't make a libxml2.so.2 symlink to it and thus nokogiri doesn't load find it, it loads the system one which causes errors.
| libxml2 links not setup correctly | https://api.github.com/repos/sparklemotion/nokogiri/issues/1023/comments | 1 | 2013-12-18T20:10:35Z | 2013-12-18T22:45:43Z | https://github.com/sparklemotion/nokogiri/issues/1023 | 24,515,277 | 1,023 |
[
"sparklemotion",
"nokogiri"
] | The following combos are being ignored - the styles aren't being applied.
ul > li:not(.expanded):last-child
ul li:not(:first-child).current
ul li:not(.expanded):not(:last-child).current
These are pretty crazy selectors I know, but are vital to the nested menu system we are using in HTML. When the :not() and the :la... | Combo pseudo-selectors not working | https://api.github.com/repos/sparklemotion/nokogiri/issues/1022/comments | 1 | 2013-12-17T19:42:34Z | 2021-11-23T23:00:35Z | https://github.com/sparklemotion/nokogiri/issues/1022 | 24,445,268 | 1,022 |
[
"sparklemotion",
"nokogiri"
] | mini_portile should not be a dependency for java and windows builds
| mini_portile should not be a dependency for java and windows builds | https://api.github.com/repos/sparklemotion/nokogiri/issues/1019/comments | 3 | 2013-12-15T01:33:19Z | 2024-07-02T15:39:07Z | https://github.com/sparklemotion/nokogiri/issues/1019 | 24,303,492 | 1,019 |
[
"sparklemotion",
"nokogiri"
] | Given the content from [the mofo site](http://motherfuckingwebsite.com), my `SAX::Document` never receives the end_element for `<head />`.
[edit: before the content changes and this issue makes no sense at all, the content is included :wink:]
``` html
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"... | HTML sax parser fails on meta tags | https://api.github.com/repos/sparklemotion/nokogiri/issues/1018/comments | 1 | 2013-12-14T07:51:33Z | 2022-02-01T18:12:33Z | https://github.com/sparklemotion/nokogiri/issues/1018 | 24,287,632 | 1,018 |
[
"sparklemotion",
"nokogiri"
] | Blindly following the installation tutorial for Homebrew 0.9 on this page "http://nokogiri.org/tutorials/installing_nokogiri.html" will lead to failure. The versions in the following snippet need to be replaced with the current ones.
```
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/inclu... | Need to update installation tutorial | https://api.github.com/repos/sparklemotion/nokogiri/issues/1015/comments | 1 | 2013-12-09T07:32:57Z | 2014-12-31T07:03:32Z | https://github.com/sparklemotion/nokogiri/issues/1015 | 23,944,372 | 1,015 |
[
"sparklemotion",
"nokogiri"
] | Hi, is foodcritic nokogiri 1.6.0 compatible? If yes, would it be a problem to bump the dependency?
Thanks,
mm
| nokogiri 1.6.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1014/comments | 1 | 2013-12-02T12:29:10Z | 2018-02-20T00:27:17Z | https://github.com/sparklemotion/nokogiri/issues/1014 | 23,569,192 | 1,014 |
[
"sparklemotion",
"nokogiri"
] | Hi,
I got this error, when running rspec command inside vim (`:!rspec`). But when I run it as usual from command line, it works fine.
Here is my ruby version:
```
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin13.0.0]
```
And nokogiri version:
```
⇒ nokogiri -v
# Nokogiri (1.6.0)
---
warnings: []... | Segfault when using nokogiri under vim | https://api.github.com/repos/sparklemotion/nokogiri/issues/1013/comments | 1 | 2013-11-28T09:32:36Z | 2013-11-28T19:29:10Z | https://github.com/sparklemotion/nokogiri/issues/1013 | 23,438,617 | 1,013 |
[
"sparklemotion",
"nokogiri"
] | ENV:
jruby 1.7.6 (1.9.3p392) 2013-10-22 6004147 on Java HotSpot(TM) Client VM 1.7.0_25-b17 [Windows 7-x86]
nokogiri (1.6.0 java)
Reproduced by:
``` ruby
require 'nokogiri'
# Create an xml document
dummy_xml = '<?xml version="1.0"?><root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> </root>'
a_doc = Nokogir... | remove_namespaces! does not strip namespaces from a duplicated XML document. | https://api.github.com/repos/sparklemotion/nokogiri/issues/1012/comments | 4 | 2013-11-27T18:13:08Z | 2024-12-08T18:21:24Z | https://github.com/sparklemotion/nokogiri/issues/1012 | 23,404,756 | 1,012 |
[
"sparklemotion",
"nokogiri"
] | Anybody pls help, Now I m facing some problems about proxy settings. And the error shows me "Network Unreachable (2) ..." How can I solve this problem?
Thanks
Tammy

| Nokogiri v 1.6.0 Proxy Setting | https://api.github.com/repos/sparklemotion/nokogiri/issues/1010/comments | 1 | 2013-11-25T16:53:00Z | 2013-11-26T17:31:15Z | https://github.com/sparklemotion/nokogiri/issues/1010 | 23,255,893 | 1,010 |
[
"sparklemotion",
"nokogiri"
] | Building this requires mini_portile:
```
lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mini_portile (LoadError) {:level=>:error}
from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' {:level=>:error}
from extconf.rb:92:in `<m... | depends on mini_portile, but doesn't declare a dependency | https://api.github.com/repos/sparklemotion/nokogiri/issues/1009/comments | 3 | 2013-11-23T01:38:35Z | 2013-11-25T01:32:23Z | https://github.com/sparklemotion/nokogiri/issues/1009 | 23,178,786 | 1,009 |
[
"sparklemotion",
"nokogiri"
] | Hello guys,
I have the following HTML file test.html.
``` HTML
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta charset="UTF-8">
</head>
<body>
</body>
</html>
```
I am opening the file with Nokogiri and then write it back to another file.
``` RUBY
doc = Nokogiri::HTML::Document.parse(File.op... | additional meta Content-Type is added to HTML5 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1008/comments | 6 | 2013-11-21T22:51:12Z | 2017-02-10T10:03:01Z | https://github.com/sparklemotion/nokogiri/issues/1008 | 23,104,134 | 1,008 |
[
"sparklemotion",
"nokogiri"
] | The following code snippet will (almost always) cause a segfault after calling add_child_node when ruby garbage collection is enabled:
https://gist.github.com/7602296
I've tested this on Nokogiri 1.6.0 using libxml2 2.8.0 and 2.9.1. Disabling GC prevents the segfault from occurring.
I'd like to isolate the issue fur... | segfault on add_child_node when GC enabled | https://api.github.com/repos/sparklemotion/nokogiri/issues/1007/comments | 2 | 2013-11-21T22:12:45Z | 2013-11-22T22:00:48Z | https://github.com/sparklemotion/nokogiri/issues/1007 | 23,101,751 | 1,007 |
[
"sparklemotion",
"nokogiri"
] | Parsing empty files should raise SyntaxError if the strict flag is set | https://api.github.com/repos/sparklemotion/nokogiri/issues/1005/comments | 0 | 2013-11-19T20:16:40Z | 2013-11-20T07:28:30Z | https://github.com/sparklemotion/nokogiri/issues/1005 | 22,945,045 | 1,005 | |
[
"sparklemotion",
"nokogiri"
] | Not sure if anyone reported this before:
The return of the #line method obviously overflows when there are more than 65535 lines in an XML.
http://nokogiri.org/Nokogiri/XML/Node.html#method-i-line
| Nokogiri::XML::Node#line overflows | https://api.github.com/repos/sparklemotion/nokogiri/issues/1003/comments | 2 | 2013-11-14T06:49:06Z | 2021-08-14T17:02:11Z | https://github.com/sparklemotion/nokogiri/issues/1003 | 22,645,914 | 1,003 |
[
"sparklemotion",
"nokogiri"
] | I have an document.xml file with content:
``` xml
<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument... | Getting attribute value with namespace using .attr in Nokogiri >= 1.5.6 | https://api.github.com/repos/sparklemotion/nokogiri/issues/1000/comments | 0 | 2013-11-12T13:32:00Z | 2021-12-16T07:48:52Z | https://github.com/sparklemotion/nokogiri/issues/1000 | 22,517,714 | 1,000 |
[
"sparklemotion",
"nokogiri"
] | Hay!
I’m reading streaming XML from a remote server in JRuby using the SAX push parser in Nokogiri. It starts with an opening `<events>` tag, and then follows with a lot of streaming XML `<event>data</event>` coming in.
The following code leaks memory in JRuby (attached visualvm heap screenshot), but not in MRI.
Me ... | XML SAX push parser leaks memory on JRuby, but not on MRI | https://api.github.com/repos/sparklemotion/nokogiri/issues/998/comments | 5 | 2013-11-05T10:05:45Z | 2013-12-06T02:39:40Z | https://github.com/sparklemotion/nokogiri/issues/998 | 22,109,988 | 998 |
[
"sparklemotion",
"nokogiri"
] | http://nokogiri.org/tutorials/installing_nokogiri.html should be updated to use libxml 2.9.1 and libsxlt 0.1.28 as follows:
```
gem install nokogiri -- \
--with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 \
--with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib \
--with-xslt-dir=/usr/local/Cellar/l... | homebrew 0.9 workaround needs newer libraries | https://api.github.com/repos/sparklemotion/nokogiri/issues/997/comments | 6 | 2013-11-02T07:50:23Z | 2014-12-31T07:07:30Z | https://github.com/sparklemotion/nokogiri/issues/997 | 21,998,342 | 997 |
[
"sparklemotion",
"nokogiri"
] | If the library requirements are not met on the system then the gem should fail to build and give the user the option of including them.
Including them by default is a really bad precedence to set and a security issue.
Including by default means that the user might have no knowledge that they are included and security... | Nokogiri should not bundle libxml2 & lixslt by default | https://api.github.com/repos/sparklemotion/nokogiri/issues/996/comments | 1 | 2013-11-01T17:03:17Z | 2013-11-01T17:13:08Z | https://github.com/sparklemotion/nokogiri/issues/996 | 21,968,985 | 996 |
[
"sparklemotion",
"nokogiri"
] | When parsing a text node with escaped characters, .text() and .content() actually returns that node as a parsed HTML string. Imo, a text node should never become HTML without an explicit conversion, especially not when the node actually contained already escaped characters. What's the reasoning here?
.to_s() and .to_ht... | Inconsistent .text(), .content() and .to_s() | https://api.github.com/repos/sparklemotion/nokogiri/issues/995/comments | 5 | 2013-11-01T13:50:21Z | 2013-11-01T16:35:32Z | https://github.com/sparklemotion/nokogiri/issues/995 | 21,957,873 | 995 |
[
"sparklemotion",
"nokogiri"
] | I see code in [extconf.rb](https://github.com/sparklemotion/nokogiri/blob/master/ext/nokogiri/extconf.rb#L265) which looks like it should be invoking `xml2-config`, but for some reason on my FreeBSD machine it's not invoking it correctly, leading to the following error.
```
~ » gem install nokogiri ... | nokogiri extension doesn't use xml2-config for header paths | https://api.github.com/repos/sparklemotion/nokogiri/issues/994/comments | 17 | 2013-10-30T22:33:25Z | 2021-02-16T17:04:35Z | https://github.com/sparklemotion/nokogiri/issues/994 | 21,864,366 | 994 |
[
"sparklemotion",
"nokogiri"
] | In the stdlib, RSS and XML-RPC both have interfaces for alternative XML parsers to be included. Right now, they both default to REXML and don't know about Nokogiri at all.
| Nokogiri should include parser & writer implementations for stdlib RSS & XML-RPC | https://api.github.com/repos/sparklemotion/nokogiri/issues/990/comments | 2 | 2013-10-28T17:11:06Z | 2024-07-02T15:31:25Z | https://github.com/sparklemotion/nokogiri/issues/990 | 21,704,657 | 990 |
[
"sparklemotion",
"nokogiri"
] | Support libxml2 2.9.0 and later | https://api.github.com/repos/sparklemotion/nokogiri/issues/986/comments | 8 | 2013-10-26T05:10:53Z | 2014-10-31T19:24:41Z | https://github.com/sparklemotion/nokogiri/issues/986 | 21,628,021 | 986 | |
[
"sparklemotion",
"nokogiri"
] | Parsing a HTML document does not get a DTD. Trying to access it will create one and attach it, however. It will also be at the end of the generated HTML(!).
Here's a sample IRb session:
```
jruby-1.7.5 :031 > d = Nokogiri::HTML.parse("<html></html>")
=> #<Nokogiri::HTML::Document:0x8aa name="document" children=[#<No... | JRuby: Nokogiri::HTML::Document#internal_subset getter has side-effects | https://api.github.com/repos/sparklemotion/nokogiri/issues/985/comments | 2 | 2013-10-21T15:15:49Z | 2024-07-02T15:25:45Z | https://github.com/sparklemotion/nokogiri/issues/985 | 21,321,940 | 985 |
[
"sparklemotion",
"nokogiri"
] | Here's a sample from IRB:
``` ruby
# IRb MRI 1.9.3
html = Nokogiri::HTML.parse("<html></html>")
# => #<Nokogiri::HTML::Document:0x3ffc754dd7c4 name="document" children=[#<Nokogiri::XML::DTD:0x3ffc754e53e8 name="html">, #<Nokogiri::XML::Element:0x3ffc754e49c0 name="html">]>
html.internal_subset
# => #<Nokogiri::XML::DT... | JRuby: Cannot remove internal subset of a HTML document | https://api.github.com/repos/sparklemotion/nokogiri/issues/984/comments | 4 | 2013-10-21T14:09:51Z | 2024-07-02T15:24:01Z | https://github.com/sparklemotion/nokogiri/issues/984 | 21,317,607 | 984 |
[
"sparklemotion",
"nokogiri"
] | Here is the error message :
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
```
/Users/qumara/.rbenv/versions/1.9.3-p125/bin/ruby extconf.rb
```
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... yes
checking for libexslt/exslt.h... yes
checking for iconv_open(... | Nokogiri 1.5.10 gem installation on Mac OS X 10.7.5 : Failed to build gem native extension | https://api.github.com/repos/sparklemotion/nokogiri/issues/983/comments | 1 | 2013-10-17T09:14:56Z | 2013-10-17T16:19:09Z | https://github.com/sparklemotion/nokogiri/issues/983 | 21,140,811 | 983 |
[
"sparklemotion",
"nokogiri"
] | I`m trying install nokigiri in my project, I followed the guide, but this error appear when I try to do It. Someone knows what`s the problem?
gem install -v='1.5.10' nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
```... | Nokogiri 1.5.10 with ruby 1.8.7 | https://api.github.com/repos/sparklemotion/nokogiri/issues/982/comments | 1 | 2013-10-15T20:54:46Z | 2021-02-16T17:04:35Z | https://github.com/sparklemotion/nokogiri/issues/982 | 21,043,844 | 982 |
[
"sparklemotion",
"nokogiri"
] | I`m trying install nokigiri in my project, I followed the guide, but this error appear when I try to do It. Someone knows what`s the problem?
gem install -v='1.5.10' nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
```... | Nokogiri 1.5.10 with ruby 1.8.7 | https://api.github.com/repos/sparklemotion/nokogiri/issues/981/comments | 0 | 2013-10-15T20:53:53Z | 2013-10-15T20:55:00Z | https://github.com/sparklemotion/nokogiri/issues/981 | 21,043,798 | 981 |
[
"sparklemotion",
"nokogiri"
] | Hi,
I tried below code :
```
require 'nokogiri'
reader = (<<-eoxml)
<?xml version="1.0" encoding="ISO-8859-1"?>
<root>
<node label="Session">
<node id="session_query1" label="DTM Buffer Size" />
<node id="session_query2" label="Buffer Block Size"/>
<node id="session_query3" label="En... | Nokogiri::XML::Reader#encoding and Nokogiri::XML::Reader#xml_version giving wrong output | https://api.github.com/repos/sparklemotion/nokogiri/issues/980/comments | 6 | 2013-10-13T14:44:59Z | 2021-12-10T13:28:26Z | https://github.com/sparklemotion/nokogiri/issues/980 | 20,927,542 | 980 |
[
"sparklemotion",
"nokogiri"
] | `XPathContext#evalute` use the `xmlXPathRegisterFuncLookup` function to register a lookup function, unfortunately namespace is not used during the lookup phase.
To fix it:
- `Node#extract_params` should allow a hash as handler (as for `XSLT#parse`)
- `lookup` should use the `ns_uri` parameter
| [feature] XPath queries should support multiple handlers by using namespaces | https://api.github.com/repos/sparklemotion/nokogiri/issues/978/comments | 1 | 2013-10-12T15:07:48Z | 2021-11-16T20:39:13Z | https://github.com/sparklemotion/nokogiri/issues/978 | 20,912,252 | 978 |
[
"sparklemotion",
"nokogiri"
] | After installing Nokogiri, `vendor/ruby/ruby/2.0.0/gems/nokogiri-1.6.0/ext/nokogiri/tmp` is 101MB. Is this really a temporary directory, and so could it be deleted after successful gem installation? When you have many independent projects with their own version of Nokogiri installed, this amounts to a lot of disk space... | Nokogiri leaves a 101MB tmp directory | https://api.github.com/repos/sparklemotion/nokogiri/issues/977/comments | 2 | 2013-10-11T17:44:14Z | 2014-05-08T08:04:04Z | https://github.com/sparklemotion/nokogiri/issues/977 | 20,883,731 | 977 |
[
"sparklemotion",
"nokogiri"
] | See https://groups.google.com/forum/#!topic/nokogiri-talk/waiXL2kB3j4 for original question.
| Node.new should be type-checking the second argument (must be a Document) | https://api.github.com/repos/sparklemotion/nokogiri/issues/975/comments | 1 | 2013-10-03T14:03:26Z | 2021-12-25T01:06:09Z | https://github.com/sparklemotion/nokogiri/issues/975 | 20,455,764 | 975 |
[
"sparklemotion",
"nokogiri"
] | On running gem to install version 1.6.0 of nokogiri I get the following error.
```
make
compiling html_document.c
gcc-4.7: error: unrecognized command line option '-Wshorten-64-to-32'
make: *** [html_document.o] Error 1
```
| gcc-4.7: error: unrecognized command line option '-Wshorten-64-to-32' on compiling html_document.c | https://api.github.com/repos/sparklemotion/nokogiri/issues/974/comments | 1 | 2013-09-30T12:14:30Z | 2022-01-02T18:07:44Z | https://github.com/sparklemotion/nokogiri/issues/974 | 20,258,200 | 974 |
[
"sparklemotion",
"nokogiri"
] | Also fixed by https://github.com/sparklemotion/nokogiri/issues/713#issuecomment-14208330
Here's a gist of my gemfile, my Terminal dump, and the crash report for Ruby. There are several other crash reports and they all look the same(except for different hexes).
https://gist.github.com/ciorga/7c1f65665746ca95fac6
The ... | Segmentation fault for 1.6.0rc1 when using sucker_punch(celluloid) in Rails 3.2.13, ruby 2.0.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/973/comments | 1 | 2013-09-27T19:44:41Z | 2021-11-21T21:29:12Z | https://github.com/sparklemotion/nokogiri/issues/973 | 20,190,818 | 973 |
[
"sparklemotion",
"nokogiri"
] | Short output from gem install nokogiri is:
``` bash
Extracting libxml2-2.8.0.tar.gz into
tmp/x86_64-apple-darwin12/ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... OK
Running 'compile' for libxml2 2.8.0... OK
Running 'install' for libxml2 2.8.0... OK
Activating libxml2 2.8.0 (from
/Users/jseidel/.rvm... | Install on Mac OSx with MacPorts fails to find libxml2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/972/comments | 18 | 2013-09-19T19:53:34Z | 2021-02-16T17:04:35Z | https://github.com/sparklemotion/nokogiri/issues/972 | 19,777,549 | 972 |
[
"sparklemotion",
"nokogiri"
] | This is the same issue as #557. I'm using Nokogiri 1.6.0 on JRuby 1.7.4.
```
jruby -Ilib -S irb
jruby-1.7.4 :001 > require 'nokogiri'
=> true
jruby-1.7.4 :002 > Nokogiri::VERSION
=> "1.6.0"
jruby-1.7.4 :003 > Nokogiri::HTML::DocumentFragment.parse('<p></p>').to_xhtml
=> "<p /></p>"
```
| Regression: to_xhtml incorrectly generates <p /></p> when tag is empty in JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/971/comments | 1 | 2013-09-14T07:18:21Z | 2013-11-06T06:55:40Z | https://github.com/sparklemotion/nokogiri/issues/971 | 19,492,270 | 971 |
[
"sparklemotion",
"nokogiri"
] | See [this StackOverflow question](http://stackoverflow.com/questions/18731388/can-i-delete-some-folders-of-nokogiri-and-capybara-webkit-inside-of-my-rvm-gemse) for the use case around deleting the `tmp` directory in Nokogiri 1.6.0+.
| Delete "tmp" directory after successful gem installation. | https://api.github.com/repos/sparklemotion/nokogiri/issues/970/comments | 7 | 2013-09-12T16:16:56Z | 2013-10-21T23:59:28Z | https://github.com/sparklemotion/nokogiri/issues/970 | 19,397,767 | 970 |
[
"sparklemotion",
"nokogiri"
] | Hi,
I am getting un-expected result with the method `#to_html`.
```
require 'nokogiri'
require 'open-uri'
doc = Nokogiri.HTML(open('http://www.s-techent.com/ATA100.htm'))
puts doc.at_xpath("(//table)[2]/tr/td//a[@name='[09]']").to_html(:encoding => 'utf-8')
# => <a name="%5B09%5D"></a>
```
expected output is : `<a ... | un-expected result with the method `#to_html`. | https://api.github.com/repos/sparklemotion/nokogiri/issues/969/comments | 2 | 2013-09-09T12:25:00Z | 2021-11-18T17:10:21Z | https://github.com/sparklemotion/nokogiri/issues/969 | 19,192,256 | 969 |
[
"sparklemotion",
"nokogiri"
] | This error message gets displayed if you try to give Nokogiri::XML another Nokogiri::XML object by accident.
Examplecode:
xmlSource = Nokogiri::XML(Nokogiri::XML(IO.read('./test.xml'))
ErrorMsg:
NoMethodError: undefined method `empty?' for #<Nokogiri::XML::Document:0x2b7c730901f8>
fro... | Missleading error message "undefined method `empty?'" | https://api.github.com/repos/sparklemotion/nokogiri/issues/967/comments | 3 | 2013-09-05T09:28:00Z | 2013-09-21T14:23:48Z | https://github.com/sparklemotion/nokogiri/issues/967 | 19,032,745 | 967 |
[
"sparklemotion",
"nokogiri"
] | I'm attempting to get nokogiri installed on my macbook and I'm failing horribly. My setup is OS X 10.8.4, rbenv with ruby 1.9.3, and homebrew.
Can someone please help? I'm trying to install using the following command
```
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 \
... | Configuration switches not being respected on Lion? | https://api.github.com/repos/sparklemotion/nokogiri/issues/966/comments | 2 | 2013-09-03T09:58:57Z | 2014-12-31T07:07:04Z | https://github.com/sparklemotion/nokogiri/issues/966 | 18,899,105 | 966 |
[
"sparklemotion",
"nokogiri"
] | Hi,
While building packages for Debian, I noticed that test_reader_blocking from test/test_reader.rb, line 51 hangs on Debian kFreeBSD/GNU.
When running this test supposed to prevent issue #831, the process hangs, and does not reach after
`wr.puts "<bar/>" * 10000`
Debian kFreeBSD/GNU is running a GNU userland abov... | test_reader_blocking is hanging on Debian kFreeBSD/GNU | https://api.github.com/repos/sparklemotion/nokogiri/issues/965/comments | 1 | 2013-09-02T23:07:01Z | 2022-01-22T18:01:45Z | https://github.com/sparklemotion/nokogiri/issues/965 | 18,882,678 | 965 |
[
"sparklemotion",
"nokogiri"
] | I am getting the below error:
```
Nokogiri::CSS.xpath_for("p>a",{:prefix => "@",:visitor => 'div'})
# =>
# ~> /home/kirti/.rvm/gems/ruby-2.0.0-p0/gems/nokogiri-1.6.0/lib/nokogiri/css/node.rb:27:in `to_xpath': undefined method `accept' for "div":String (NoMethodError)
# ~> from /home/kirti/.rvm/gems/ruby-2.0.0-p0/gem... | Getting error from Nokogiri::CSS#xpath_for | https://api.github.com/repos/sparklemotion/nokogiri/issues/964/comments | 4 | 2013-08-28T20:09:06Z | 2013-09-22T14:42:05Z | https://github.com/sparklemotion/nokogiri/issues/964 | 18,692,183 | 964 |
[
"sparklemotion",
"nokogiri"
] | Using Nokogiri 1.6.0 on Ruby 2.0.0p0 (OSX)
``` ruby
require 'nokogiri'
xml = '<foo>
<svg viewBox="0 0 30 16"/>
Hey what?
</foo>'
bad_xml = '<foo>
<svg viewBox="0 0 30 16"/>
Hey ⊗ what?
</foo>'
d = Nokogiri::XML::Document.new
frag = Nokogiri::XML::DocumentFragment.new(d, xml, d)
bad_frag = Nokogiri::XML::Docu... | Entity reference causes DocumentFragment to lowercase attribute names | https://api.github.com/repos/sparklemotion/nokogiri/issues/961/comments | 3 | 2013-08-25T07:41:43Z | 2022-01-06T18:54:58Z | https://github.com/sparklemotion/nokogiri/issues/961 | 18,517,775 | 961 |
[
"sparklemotion",
"nokogiri"
] | I tried the below sample,but found something unexpected symptoms:
```
require 'nokogiri'
doc = Nokogiri("<a class='foo'>b</a>")
Hash[doc.at('a').to_a]
# => {"class"=>"foo"}
d = *doc.at('a')
d # => [["class", "foo"]]
Hash[*doc.at('a')]
# => {}
```
now my question is why empty hash is returned ?
| Why the splat(*) operator not working inside Kernel#Hash with doc#at method. | https://api.github.com/repos/sparklemotion/nokogiri/issues/960/comments | 5 | 2013-08-23T21:26:33Z | 2013-08-24T08:16:03Z | https://github.com/sparklemotion/nokogiri/issues/960 | 18,493,506 | 960 |
[
"sparklemotion",
"nokogiri"
] | When I tried to build nokogiri, allowing it to use it's default of trying to build a local copy of libxslt and libxml2, it failed because it had wedged my PATH variable in amongst the flags to cc
```
mv -f .deps/security.Tpo .deps/security.Plo
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wl,--versio... | nokogiri's mkmf script interpolates PATH for some reason | https://api.github.com/repos/sparklemotion/nokogiri/issues/958/comments | 7 | 2013-08-20T18:45:56Z | 2013-09-26T10:17:41Z | https://github.com/sparklemotion/nokogiri/issues/958 | 18,313,597 | 958 |
[
"sparklemotion",
"nokogiri"
] | ```
require 'nokogiri'
doc = Nokogiri::HTML::Document.parse <<-EOT
<div class="total_count">
<b>Returned:</b> 97 results
</div>
EOT
doc.xpath("normalize-space(//div[@class='total_count'])")
# => "Returned: 97 results"
doc.xpath("tokenize(normalize-space(//div[@class='total_count']),'\w+')")
# =>
# ~> /... | Nokogiri doesn't support the xpath function - "tokenize" | https://api.github.com/repos/sparklemotion/nokogiri/issues/957/comments | 4 | 2013-08-16T18:48:43Z | 2018-05-12T13:07:36Z | https://github.com/sparklemotion/nokogiri/issues/957 | 18,172,549 | 957 |
[
"sparklemotion",
"nokogiri"
] | mini_portile is development dependency, may be install time dependency, but it is definitely not runtime depenendency (unless I am missing something). Could you please drop this dependency? Thanks.
| Why there is runtime dependency on mini_portile? | https://api.github.com/repos/sparklemotion/nokogiri/issues/956/comments | 10 | 2013-08-13T15:51:21Z | 2014-06-18T00:43:52Z | https://github.com/sparklemotion/nokogiri/issues/956 | 18,004,147 | 956 |
[
"sparklemotion",
"nokogiri"
] | Uses up all cores and crashes with an OOM when trying to parse this file:
https://gist.github.com/reactormonk/3479e09869b79871252d
| Nokogiri XML on jruby goes OOM when parsing a file (<200k) | https://api.github.com/repos/sparklemotion/nokogiri/issues/955/comments | 7 | 2013-08-11T05:44:43Z | 2013-09-10T00:52:48Z | https://github.com/sparklemotion/nokogiri/issues/955 | 17,908,591 | 955 |
[
"sparklemotion",
"nokogiri"
] | Applying a slightly modified XSTL identity to an XML document will generate a new document with some stray text copied from the elements names such as `doc>` in
```
<?xml version="1.0"?>
<doc>
<sp id="sp1">
<pb n="2"/>
</sp>
doc>
</doc>
```
The XSLT transformation is
```
<?xml version="1.0" ... | XSLT identity generates strange text using element names / pure-java | https://api.github.com/repos/sparklemotion/nokogiri/issues/954/comments | 1 | 2013-08-10T07:39:19Z | 2022-01-16T16:32:36Z | https://github.com/sparklemotion/nokogiri/issues/954 | 17,895,660 | 954 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.