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"
] | ## The Problem
JRuby includes redundant `xmlns:*` attributes on child notes, even when the parent node already has the namespace. MRI correctly omits redundant `xmlns:*` attributes on child nodes.
## Who cares?
I'm working to migrate [RubySaml to purely use Nokogiri](https://github.com/SAML-Toolkits/ruby-saml/pull/7... | MRI Ruby vs. JRuby XML child namespace output differences | https://api.github.com/repos/sparklemotion/nokogiri/issues/3455/comments | 4 | 2025-03-08T15:06:50Z | 2025-03-10T13:46:28Z | https://github.com/sparklemotion/nokogiri/issues/3455 | 2,904,848,286 | 3,455 |
[
"sparklemotion",
"nokogiri"
] | What is he (exact) magic for 'skip ci'? What I've tried doesn't seem to work. | Skip CI syntax? | https://api.github.com/repos/sparklemotion/nokogiri/issues/3454/comments | 1 | 2025-03-08T02:29:58Z | 2025-03-08T16:45:14Z | https://github.com/sparklemotion/nokogiri/issues/3454 | 2,904,386,396 | 3,454 |
[
"sparklemotion",
"nokogiri"
] | JRuby 10 does not appear to be able to load Nokogiri due to missing Apache classes. This does not appear to be specific to the Java version, as JRuby 9.4 on the same Java level (21) works ok.
```
$ jruby -rnokogiri -e 1
<duplicate constant warnings removed because they may be because of the error>
LoadError: load erro... | [bug] JRuby 10 with Nokogiri fails to find Apache classes | https://api.github.com/repos/sparklemotion/nokogiri/issues/3452/comments | 6 | 2025-03-03T22:44:10Z | 2025-03-04T00:24:56Z | https://github.com/sparklemotion/nokogiri/issues/3452 | 2,892,487,439 | 3,452 |
[
"sparklemotion",
"nokogiri"
] | The CONTRIBUTING doc has this (about method summary):
```
- Method signatures
- Use a `[Parameters]` definition to note the expected types of all the parameters as a bulleted list
- Use a `[Returns]` definition to note the return type
- Use a `[Yields]` definition to note the block parameters
```
I think we can g... | Method documentation summary | https://api.github.com/repos/sparklemotion/nokogiri/issues/3450/comments | 3 | 2025-02-24T17:30:29Z | 2025-03-02T19:59:25Z | https://github.com/sparklemotion/nokogiri/issues/3450 | 2,875,697,134 | 3,450 |
[
"sparklemotion",
"nokogiri"
] | @flavorjones, I have made a general mess of things:
- I failed to read and heed CONTRIBUTING.md before working on the doc.
- I forked nokogiri and cloned from my fork (instead of setting up the local development environment).
- I pushed PRs from my fork.
Now I have fouled my clone, so that I can't work from there anym... | Time for me to reset | https://api.github.com/repos/sparklemotion/nokogiri/issues/3446/comments | 1 | 2025-02-23T00:00:47Z | 2025-05-10T14:50:37Z | https://github.com/sparklemotion/nokogiri/issues/3446 | 2,872,801,683 | 3,446 |
[
"sparklemotion",
"nokogiri"
] | With Rails 7.1 the HTML5 sanitizer has become the default sanitizer vendor. A test in my project started to fail which was checking that strings like `<script>alert(1)</script` are being sanitized correctly.
The failure was due to Nokogiri parser giving different outputs for HTML5 and HTML4:
```
pry(main)> Nokogiri::... | Partial script tag not being sanitized | https://api.github.com/repos/sparklemotion/nokogiri/issues/3444/comments | 5 | 2025-02-21T04:53:19Z | 2025-02-22T18:59:59Z | https://github.com/sparklemotion/nokogiri/issues/3444 | 2,867,977,653 | 3,444 |
[
"sparklemotion",
"nokogiri"
] | (Originally posted as [[RFC] Deprecate `Nokogiri::HTML4::ElementDescription` · sparklemotion/nokogiri · Discussion #3311](https://github.com/sparklemotion/nokogiri/discussions/3311))
## Resolved
Deprecate the class `Nokogiri::HTML4::ElementDescription` in a 1.x release, and remove it in a 2.x release.
## Reasoning
... | Deprecate `Nokogiri::HTML4::ElementDescription` | https://api.github.com/repos/sparklemotion/nokogiri/issues/3443/comments | 0 | 2025-02-20T13:45:27Z | 2025-02-20T13:45:58Z | https://github.com/sparklemotion/nokogiri/issues/3443 | 2,866,212,060 | 3,443 |
[
"sparklemotion",
"nokogiri"
] | Due to semver logic, github points out that letter versions are below the pure version, so even updating to a version that has been corrected from the precompiled ones, the github warning still continues.
Here is the mention in the Advisory documentation with an example:
[Common errors](https://docs.github.com/en/code... | [help] Github Advisory GHSA-vvfq-8hwr-qm4m | https://api.github.com/repos/sparklemotion/nokogiri/issues/3441/comments | 9 | 2025-02-20T00:23:18Z | 2025-02-20T13:39:39Z | https://github.com/sparklemotion/nokogiri/issues/3441 | 2,864,685,878 | 3,441 |
[
"sparklemotion",
"nokogiri"
] | https://github.com/snex/xpg/actions/runs/13419444313/job/37488316865
Gemfile.lock: https://github.com/snex/xpg/blob/master/Gemfile.lock | Bundler platform errors upgrading alpine image to 1.18.3 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3440/comments | 5 | 2025-02-19T18:33:00Z | 2025-02-19T23:42:34Z | https://github.com/sparklemotion/nokogiri/issues/3440 | 2,864,116,258 | 3,440 |
[
"sparklemotion",
"nokogiri"
] | ## Context
In #3360 the libxml2 maintainer left some suggestions about how we're exposing and documenting some of the parse options.
He mentioned:
- DTDATTR and DTDVALID imply DTDLOAD and are unsafe as well.
- SAX1 should probably not be exposed.
- NODICT should probably not be exposed.
- XINCLUDE, NOXINCNODE and NO... | Update parse options to reflect modern libxml usage | https://api.github.com/repos/sparklemotion/nokogiri/issues/3439/comments | 2 | 2025-02-19T14:43:30Z | 2025-02-19T23:56:42Z | https://github.com/sparklemotion/nokogiri/issues/3439 | 2,863,566,817 | 3,439 |
[
"sparklemotion",
"nokogiri"
] | The only constant definied with [special](https://rubyapi.org/3.4/o/struct#method-c-new) "class name" form of `Struct.new` is `HTMLElementDescription`: https://github.com/sparklemotion/nokogiri/blob/d5d64bb597bcc915d7588bddb5ecea90617f9b4c/lib/nokogiri/html4/element_description_defaults.rb#L11-L27
```console
ruby -rno... | `HTMLElementDescription` is defined under `::Struct` namespace | https://api.github.com/repos/sparklemotion/nokogiri/issues/3432/comments | 1 | 2025-02-15T00:21:48Z | 2025-02-17T16:39:49Z | https://github.com/sparklemotion/nokogiri/issues/3432 | 2,854,955,224 | 3,432 |
[
"sparklemotion",
"nokogiri"
] |
**Please describe the bug**
When i use *Nokogiri::HTML.fragment* create a doc, then use search method query all text node,bug not work
**Help us reproduce what you're seeing**
```ruby
require 'nokogiri'
def extract_text_nodes(html_fragment)
# Parse the HTML fragment
doc = Nokogiri::HTML.fragment(html_fragmen... | [bug]search method not work when use Nokogiri::HTML.fragment | https://api.github.com/repos/sparklemotion/nokogiri/issues/3430/comments | 1 | 2025-02-13T05:27:47Z | 2025-02-13T15:01:54Z | https://github.com/sparklemotion/nokogiri/issues/3430 | 2,849,998,084 | 3,430 |
[
"sparklemotion",
"nokogiri"
] | When I try to use the pre-packaged library on latest kali rolling version using `gem install nokogiri`, I get:
```
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:160:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)
from <internal:/usr/lib/ruby/vendor_ruby/rubygems/... | kali linux (debian) `gem install` picks the wrong native platform gem | https://api.github.com/repos/sparklemotion/nokogiri/issues/3423/comments | 3 | 2025-01-31T10:33:26Z | 2025-01-31T17:01:44Z | https://github.com/sparklemotion/nokogiri/issues/3423 | 2,823,008,863 | 3,423 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
In a Rails app generating (Prawn) PDFs using ActionText, I noticed that ActionText HTML came out garbled after upgrading from Nokogiri 1.16.7 to latest. Version 1.17.1 has the bug, version 1.17.0 segfaults, so I can't tell.
By "garbled", I mean that clean and proper UTF8 characters like `é... | [bug] Upgrading from 1.16.7 causes encoding error downstream | https://api.github.com/repos/sparklemotion/nokogiri/issues/3412/comments | 1 | 2025-01-16T16:18:18Z | 2025-05-10T14:51:21Z | https://github.com/sparklemotion/nokogiri/issues/3412 | 2,793,202,058 | 3,412 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
I'm not sure if this is a bug, but I noticed when trying to upgrade from nokogiri v1.16.8 to v1.17.2, that this behavior changed:
```ruby
require 'nokogiri'
body = <<-XML
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/bro... | [bug] Nokogiri::XML::Document#css no longer matches namespaced XML attributes | https://api.github.com/repos/sparklemotion/nokogiri/issues/3411/comments | 6 | 2025-01-15T18:58:35Z | 2025-01-19T20:32:27Z | https://github.com/sparklemotion/nokogiri/issues/3411 | 2,790,612,291 | 3,411 |
[
"sparklemotion",
"nokogiri"
] | See https://gitlab.gnome.org/GNOME/libxml2/-/issues/164#note_1960443
Currently `HTML4::SAX::ParserContext#native_io` is not specialized, and uses the implementation from `XML::SAX::ParserContext`. This has been good enough? I guess?
But the above libxml2 issue indicates v2.13 has some additional functions which a... | libxml: use new HTML IO sax parser API | https://api.github.com/repos/sparklemotion/nokogiri/issues/3409/comments | 0 | 2025-01-08T16:50:19Z | 2025-02-19T23:56:25Z | https://github.com/sparklemotion/nokogiri/issues/3409 | 2,775,863,615 | 3,409 |
[
"sparklemotion",
"nokogiri"
] | From comments at #3378:
- Enable the XPath cache. Nick says "The cache speeds up allocation of XPath objects. In general, it's a good idea to enable it."
- Enable xmlXPathOrderDocElems "which speeds up sorting of node sets."
We should benchmark these to understand why/when to enable them. Should they be on for a... | XPath performance improvements | https://api.github.com/repos/sparklemotion/nokogiri/issues/3403/comments | 1 | 2025-01-03T21:23:59Z | 2025-01-08T18:31:09Z | https://github.com/sparklemotion/nokogiri/issues/3403 | 2,768,192,644 | 3,403 |
[
"sparklemotion",
"nokogiri"
] | **What problem are you trying to solve?**
Trying to upgrade from 1.17.2 to 1.18.x in an existing project, using bundler. Installation fails with
```
bundle install
Fetching gem metadata from http://rubygems.org/........
Installing nokogiri 1.18.1 with native extensions
Gem::Ext::Build... | [help] Bundler platform issues upgrading to 1.18.x | https://api.github.com/repos/sparklemotion/nokogiri/issues/3400/comments | 12 | 2025-01-03T07:56:41Z | 2025-02-28T09:05:39Z | https://github.com/sparklemotion/nokogiri/issues/3400 | 2,767,137,904 | 3,400 |
[
"sparklemotion",
"nokogiri"
] | Upgrading to 1.18.1 caused our application to be unable to start due to glibc 2.29 requirement. Rocky (and I presume Alma) 8.10 unfortunately ship with glibc 2.28. We had to add `force_ruby_platform` to get the application to start.
**Help us reproduce what you're seeing**
```
/lib64/libm.so.6: version `GLIBC_2.... | [bug] v1.18.x requiring glibc 2.29 (Rocky 8.10 ships with 2.28) | https://api.github.com/repos/sparklemotion/nokogiri/issues/3399/comments | 5 | 2025-01-02T11:56:26Z | 2025-02-27T10:21:42Z | https://github.com/sparklemotion/nokogiri/issues/3399 | 2,765,906,607 | 3,399 |
[
"sparklemotion",
"nokogiri"
] | <!--
**Do not report Security Vulnerabilities here**
If you intend to report a security vulnerability, please do so at [HackerOne](https://hackerone.com/nokogiri) following the process detailed in [`SECURITY.md`](https://nokogiri.org/SECURITY.html). Do not report it through GitHub.
-->
Im executing `cyclonedx-c... | [bug] CData input string with null byte raising an exception | https://api.github.com/repos/sparklemotion/nokogiri/issues/3385/comments | 6 | 2024-12-17T08:24:53Z | 2024-12-18T22:49:17Z | https://github.com/sparklemotion/nokogiri/issues/3385 | 2,744,244,529 | 3,385 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
On JRuby, running Loofah's test suite:
```
1) Error:
IntegrationTestHtml::html4 fragment::#to_text#test_0001_add newlines before and after html4 block elements:
NoMethodError: undefined method `scrub!' for #<Loofah::HTML4::DocumentFragment:0x6ac4f31d>
lib/loofah/concerns.rb... | [bug] on JRuby, Loofah subclasses are broken | https://api.github.com/repos/sparklemotion/nokogiri/issues/3370/comments | 1 | 2024-12-11T16:23:19Z | 2024-12-14T16:06:57Z | https://github.com/sparklemotion/nokogiri/issues/3370 | 2,733,420,821 | 3,370 |
[
"sparklemotion",
"nokogiri"
] | ## Summary
Stop shipping 32-bit precompiled packages.
## Rationale
An RFC that proposed this has been open for a year and there have been no objections.
> https://github.com/sparklemotion/nokogiri/discussions/3081
Here's the historical downloads, including % of total downloads, for the 32-bit platforms d... | Drop 32-bit platforms from the set of native precompiled gems. | https://api.github.com/repos/sparklemotion/nokogiri/issues/3369/comments | 0 | 2024-12-11T16:15:19Z | 2024-12-12T23:03:47Z | https://github.com/sparklemotion/nokogiri/issues/3369 | 2,733,402,234 | 3,369 |
[
"sparklemotion",
"nokogiri"
] | See milestone at https://github.com/sparklemotion/nokogiri/milestone/32
Keeping the scope of this release pretty small because time is tight.
- [x] drop Ruby 3.0, add Ruby 3.4 - #3273
- [x] drop Ruby 3.0
- https://github.com/sparklemotion/nokogiri/pull/3368
- [x] #3369
- https://github.com/sparkle... | release planning: v1.18.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3367/comments | 2 | 2024-12-11T13:51:51Z | 2024-12-26T21:30:39Z | https://github.com/sparklemotion/nokogiri/issues/3367 | 2,733,039,606 | 3,367 |
[
"sparklemotion",
"nokogiri"
] | Recently Rails CI with YJIT enabled raises these exceptions.
https://buildkite.com/rails/rails-nightly/builds/1434#0193a813-c727-4191-8e3b-b5d977beb27f/1241-1302
```
/usr/local/lib/ruby/gems/3.4.0+1/gems/nokogiri-1.17.0/lib/nokogiri/xml/document_fragment.rb:117: [BUG] YJIT: panicked at /usr/src/ruby/yjit/src/cru... | [bug] /path/to/nokogiri-1.17.0/lib/nokogiri/xml/document_fragment.rb:117: [BUG] YJIT panicked | https://api.github.com/repos/sparklemotion/nokogiri/issues/3365/comments | 2 | 2024-12-10T14:34:16Z | 2024-12-10T23:50:09Z | https://github.com/sparklemotion/nokogiri/issues/3365 | 2,730,297,795 | 3,365 |
[
"sparklemotion",
"nokogiri"
] | Just ran into a crash on Rails CI with Ruby 3.2:
```
<OBJ_INFO:gc_mark_ptr@gc.c:7069> 0x00007f5deeb7d8f8 [0 M ] T_NONE
/usr/local/bundle/gems/nokogiri-1.17.0-x86_64-linux/lib/nokogiri/xml/document.rb:415: [BUG] try to mark T_NONE object
ruby 3.2.6 (2024-10-30 revision 63aeb018eb) [x86_64-linux]
-- Control fra... | Potential GC Bug in Nokogiri 1.17.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3359/comments | 10 | 2024-12-09T12:36:48Z | 2024-12-10T14:26:01Z | https://github.com/sparklemotion/nokogiri/issues/3359 | 2,726,926,378 | 3,359 |
[
"sparklemotion",
"nokogiri"
] | There is a cascading chain of methods that should also accept and pass on parse options:
- `Node#replace` and `Node#swap`
- `Node#coerce`
- `Node#fragment` for both `XML::Node` and the `HTML5::Node` override
| `Node#replace` should have a parameter to modify parse options | https://api.github.com/repos/sparklemotion/nokogiri/issues/3357/comments | 1 | 2024-12-08T21:37:27Z | 2024-12-16T17:21:33Z | https://github.com/sparklemotion/nokogiri/issues/3357 | 2,725,540,431 | 3,357 |
[
"sparklemotion",
"nokogiri"
] | **Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
- [ ] Yes!
**What is the complete output of `gem install` or `bundle install`?**
<!-- Please make sure to escape the file contents with triple-backticks. -->
```
the output goes here
`... | [install]nokogiri. | https://api.github.com/repos/sparklemotion/nokogiri/issues/3339/comments | 1 | 2024-11-16T23:23:13Z | 2024-11-18T17:19:57Z | https://github.com/sparklemotion/nokogiri/issues/3339 | 2,665,060,996 | 3,339 |
[
"sparklemotion",
"nokogiri"
] | The Nokogiri API was largely designed and implemented for Ruby 1.9, which pre-dates keyword argument support and parameter forwarding with `...`. As a result, many methods are using positional arguments where keyword arguments are probably better.
For example, `Nokogiri::XML::Document.parse` is declared as:
```ru... | Introduce support for keyword arguments | https://api.github.com/repos/sparklemotion/nokogiri/issues/3323/comments | 3 | 2024-11-14T16:41:44Z | 2024-11-14T20:17:26Z | https://github.com/sparklemotion/nokogiri/issues/3323 | 2,659,398,044 | 3,323 |
[
"sparklemotion",
"nokogiri"
] | **What problem are you trying to solve?**
I try to transform the zugferd/factur-x schema file with the xslt2 into a schematron to be able to validate incoming factur-x xml invoices.
**Please show your code!**
Here is a zip file with the schema file and the iso-schematron-xslt2 files:
[files.zip](https://git... | [help] XSLT::Stylesheet#transform return infinite template recursion error | https://api.github.com/repos/sparklemotion/nokogiri/issues/3321/comments | 1 | 2024-11-07T10:21:12Z | 2024-11-10T17:03:06Z | https://github.com/sparklemotion/nokogiri/issues/3321 | 2,640,546,608 | 3,321 |
[
"sparklemotion",
"nokogiri"
] | **What problem are you trying to solve?**
We are trying to validate .xml files with 2.0 XSLT schemas.
Here are the schemas in question.
https://github.com/ConnectingEurope/eInvoicing-EN16931/blob/master/cii/xslt/EN16931-CII-validation.xslt
From what I understand is that nokogiri is compiled with libxml2 and libxs... | Parsing XSLT 2.0 and 3.0 files | https://api.github.com/repos/sparklemotion/nokogiri/issues/3319/comments | 0 | 2024-10-25T15:03:00Z | 2024-10-27T17:28:06Z | https://github.com/sparklemotion/nokogiri/issues/3319 | 2,614,364,915 | 3,319 |
[
"sparklemotion",
"nokogiri"
] | <!--
**Do not report Security Vulnerabilities here**
If you intend to report a security vulnerability, please do so at [HackerOne](https://hackerone.com/nokogiri) following the process detailed in [`SECURITY.md`](https://nokogiri.org/SECURITY.html). Do not report it through GitHub.
-->
**Please describe the bug... | [bug] Regression in behavior between Ruby 3.1 and Ruby 3.2 with Nokogiri | https://api.github.com/repos/sparklemotion/nokogiri/issues/3318/comments | 1 | 2024-10-22T23:02:52Z | 2024-10-24T12:46:02Z | https://github.com/sparklemotion/nokogiri/issues/3318 | 2,606,704,186 | 3,318 |
[
"sparklemotion",
"nokogiri"
] | # What happened
We updated our project to **Ruby 3.4.0-preview2** and everything works fine. But when I run `bundle install` (for the first time), bundler is **not** trying to install the pre-compiled versions, but instead wants to compile it on the system.
```
$> bundle install
...
Installing nokogiri 1.16.... | [install] Why are the pre-compiled versions not used in `Ruby 3.4.0-preview2`? | https://api.github.com/repos/sparklemotion/nokogiri/issues/3315/comments | 9 | 2024-10-14T15:40:48Z | 2024-10-16T14:15:14Z | https://github.com/sparklemotion/nokogiri/issues/3315 | 2,586,417,549 | 3,315 |
[
"sparklemotion",
"nokogiri"
] | `gem install nokogiri -v '1.6.8.1' -- --use-system-libraries --with-xml2-config=$(brew --prefix libxml2)/bin/xml2-config --with-xslt-config=$(brew --prefix libxslt)/bin/xslt-config --verbose`
Tried everything still getting this issue
```
Building native extensions with: '--use-system-libraries --with-xml2-config=/... | Trying to nokogiri '1.6.8.1' on MacOS 15.1, Silicon Mac [M1] | https://api.github.com/repos/sparklemotion/nokogiri/issues/3313/comments | 2 | 2024-10-07T19:10:08Z | 2024-10-15T02:28:43Z | https://github.com/sparklemotion/nokogiri/issues/3313 | 2,571,245,757 | 3,313 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
With Nokogiri >= 1.16.0 I detected a strange behavior when handling ISO-8859-1 XML documents: content is handled as UTF-8, and invalid characters are replaced for valid bytes in UTF-8, so there is no way to obtain the original content.
**Help us reproduce what you're seeing**
I atta... | [bug] Invalid handling of ISO-8859-1 encoded documents on Nokogiri >= 1.16.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3310/comments | 1 | 2024-09-27T08:09:17Z | 2024-09-28T17:48:33Z | https://github.com/sparklemotion/nokogiri/issues/3310 | 2,552,297,071 | 3,310 |
[
"sparklemotion",
"nokogiri"
] | **Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
- [x] Yes!
**What is the complete output of `gem install` or `bundle install`?**
<!-- Please make sure to escape the file contents with triple-backticks. -->
```
gem install nokogiri -v... | Unable to install nokogiri 1.6.8 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3306/comments | 1 | 2024-08-21T09:34:23Z | 2024-08-21T19:16:56Z | https://github.com/sparklemotion/nokogiri/issues/3306 | 2,477,557,534 | 3,306 |
[
"sparklemotion",
"nokogiri"
] | **Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
Yes!
**What is the complete output of `gem install` or `bundle install`?**
<!-- Please make sure to escape the file contents with triple-backticks. -->
```
^
xslt_stylesheet.c:20... | Nokogiri 1.6.8.1 cannot be installed with ruby 2.3 on Mac M3 Pro | https://api.github.com/repos/sparklemotion/nokogiri/issues/3301/comments | 3 | 2024-08-05T09:15:52Z | 2024-08-06T06:25:36Z | https://github.com/sparklemotion/nokogiri/issues/3301 | 2,448,038,599 | 3,301 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
I reported a bug to https://github.com/aws/aws-sdk-ruby/issues/3081 that I think is actually an issue with Nokogiri.
Basically when an XML contains the backspace character, it seems to cause the SAX parser to early exit
```ruby
# Nokogiri::VERSION
# => "1.16.7"
# RUBY_VERSION
#... | When XML contains `\b` or `` it breaks the SAX Parser | https://api.github.com/repos/sparklemotion/nokogiri/issues/3299/comments | 2 | 2024-08-04T16:34:30Z | 2024-08-05T13:26:07Z | https://github.com/sparklemotion/nokogiri/issues/3299 | 2,447,208,887 | 3,299 |
[
"sparklemotion",
"nokogiri"
] | openSUSE Tumbleweed is currently in the process of switching to gcc 14. Which brings yet more stricter enforcements.
```
Gem files will remain installed in /home/abuild/rpmbuild/BUILDROOT/rubygem-nokogiri-1.15.5-3.15.x86_64/usr/lib64/ruby/gems/3.3.0/gems/nokogiri-1.15.5 for inspection.
Results logged to /home/abui... | [bug] fails to build with gcc 14 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3295/comments | 2 | 2024-07-26T11:46:51Z | 2024-07-27T18:00:38Z | https://github.com/sparklemotion/nokogiri/issues/3295 | 2,432,061,954 | 3,295 |
[
"sparklemotion",
"nokogiri"
] | In #3232 I bumped it to 2.7.7 but it turns out ...
- 2.7.7 nanohttp.c doesn't compile on my dev machine
- 2.8.0 doesn't have `PARSE_BIG_LINES`, gnome/libxml2@968a03a2 introduced it in 2.9.0
- 2.9.0 and 2.9.1 have the xpath optimization bug that ruined our CSS queries in #829, gnome/libxml2@b4bcba23 fixed it in 2.9... | dep: bump min supported version of libxml2 to 2.9.2 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3287/comments | 0 | 2024-07-07T17:49:22Z | 2024-08-07T19:43:01Z | https://github.com/sparklemotion/nokogiri/issues/3287 | 2,394,152,079 | 3,287 |
[
"sparklemotion",
"nokogiri"
] | In planning ahead to the near future when TruffleRuby can run C-extensions marked with `rb_ext_ractor_safe(true)` in parallel, and for when Ractors are no longer just experimental, it would be great if the C-extension could be made threadsafe, or marked as such if it already is so! | [feature request] Make C-extension threadsafe/Ractor-safe | https://api.github.com/repos/sparklemotion/nokogiri/issues/3281/comments | 4 | 2024-07-05T10:07:22Z | 2024-07-06T01:54:42Z | https://github.com/sparklemotion/nokogiri/issues/3281 | 2,392,292,199 | 3,281 |
[
"sparklemotion",
"nokogiri"
] | Ruby 3.0 was EOL 23 Apr 2024. Nokogiri's policy is to support the current and previous three versions of Ruby, so we won't drop support until Ruby 3.4 is released.
Tagging this for v1.18.0 which will coincide with Ruby 3.4.0 final release in Dec 2024.
This will likely happen in v1.18 release candidates earlier th... | drop support for Ruby 3.0, add support for Ruby 3.4 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3273/comments | 7 | 2024-07-03T13:56:44Z | 2024-12-16T20:01:36Z | https://github.com/sparklemotion/nokogiri/issues/3273 | 2,388,716,353 | 3,273 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
On JRuby, calling `to_s` on an element with an entity reference will print the code and its expansion, as opposed to just the XML contents of the element verbatim as in MRI.
**Help us reproduce what you're seeing**
`tst.xml`:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYP... | [bug] XML entity codes are printed along with expansion in to_s on JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/3270/comments | 9 | 2024-07-03T00:26:34Z | 2024-07-05T02:01:56Z | https://github.com/sparklemotion/nokogiri/issues/3270 | 2,387,386,412 | 3,270 |
[
"sparklemotion",
"nokogiri"
] | Two things I want to explore doing to try to improve the performance of XPath (and, transitively, CSS) searches:
1. re-use XPathContext objects which are a little expensive to create
2. expose libxml2's ability to compile XPath expressions
For (1), we need to be a bit careful:
- XPathContext is not thread-saf... | [perf] Explore re-using XPathContext objects, and compiling XPath expressions | https://api.github.com/repos/sparklemotion/nokogiri/issues/3266/comments | 4 | 2024-07-02T14:20:45Z | 2024-12-16T15:03:21Z | https://github.com/sparklemotion/nokogiri/issues/3266 | 2,386,405,744 | 3,266 |
[
"sparklemotion",
"nokogiri"
] | I'm not totally sure why this was initially set to 0 but I think it would be useful to:
- set it to a finite positive number, so some errors are recorded from the parser
- if the parser hits the max, then the last error should be something like `There are more errors which were not recorded. Please set :max_errors ... | RFC: Increase `Nokogiri::Gumbo::DEFAULT_MAX_ERRORS` to a positive number | https://api.github.com/repos/sparklemotion/nokogiri/issues/3245/comments | 2 | 2024-06-21T21:18:48Z | 2024-06-23T02:18:02Z | https://github.com/sparklemotion/nokogiri/issues/3245 | 2,367,262,700 | 3,245 |
[
"sparklemotion",
"nokogiri"
] | Hi!
Context: I am trying to create installable [ruby bootstraps](http://github.com/jekyllex/ruby-android) for [android architectures](https://developer.android.com/ndk/guides/abis). I have [altered](https://github.com/jekyllex/ruby-android/blob/main/patches/ruby/bundled_gems.patch) the default bundled gems so that I... | downstream distro: No rule to make target 'nokogiri.so' | https://api.github.com/repos/sparklemotion/nokogiri/issues/3244/comments | 9 | 2024-06-21T18:52:30Z | 2024-06-23T17:21:10Z | https://github.com/sparklemotion/nokogiri/issues/3244 | 2,367,085,680 | 3,244 |
[
"sparklemotion",
"nokogiri"
] | I don't want this to slip my mind. See
https://github.com/sparklemotion/nokogiri/pull/3231#pullrequestreview-2116034091 for details. | html5lib test suite should run tests with the scripting flag enabled and disabled unless one is specified | https://api.github.com/repos/sparklemotion/nokogiri/issues/3242/comments | 1 | 2024-06-20T21:12:42Z | 2024-07-04T22:44:46Z | https://github.com/sparklemotion/nokogiri/issues/3242 | 2,365,276,453 | 3,242 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
While working on #2560 (re-implementing the CSS-selector-to-XPath-expression subsystem), I realized that the current code has incorrectly implemented the pseudo-class functions nth-of-type et al.
This should be fixed by the ongoing work, but I wanted to capture this bug for posterity (... | [bug] CSS nth-of-type and friends does not match browser behavior | https://api.github.com/repos/sparklemotion/nokogiri/issues/3238/comments | 0 | 2024-06-19T14:08:44Z | 2024-07-03T19:06:15Z | https://github.com/sparklemotion/nokogiri/issues/3238 | 2,362,487,129 | 3,238 |
[
"sparklemotion",
"nokogiri"
] | <!--
**Do not report Security Vulnerabilities here**
If you intend to report a security vulnerability, please do so at [HackerOne](https://hackerone.com/nokogiri) following the process detailed in [`SECURITY.md`](https://nokogiri.org/SECURITY.html). Do not report it through GitHub.
-->
**Please describe the bug... | [bug] Cannot parse schema with redefine of https source with nononet enabled | https://api.github.com/repos/sparklemotion/nokogiri/issues/3236/comments | 1 | 2024-06-18T13:23:01Z | 2024-06-20T02:05:01Z | https://github.com/sparklemotion/nokogiri/issues/3236 | 2,359,859,920 | 3,236 |
[
"sparklemotion",
"nokogiri"
] | _Note from maintainers: the potential vulnerability described below has been mitigated in rails-html-sanitizer v1.6.1. This issue was private until 2024-12-04 when it was moved into the public Nokogiri repository._
---
@stevecheckoway, I wanted to discuss a thing that came up in the context of a vulnerability rep... | HTML5 spec parsing behavior discussion, re: foster parenting | https://api.github.com/repos/sparklemotion/nokogiri/issues/3351/comments | 9 | 2024-06-04T14:54:35Z | 2025-02-19T23:58:21Z | https://github.com/sparklemotion/nokogiri/issues/3351 | 2,717,806,186 | 3,351 |
[
"sparklemotion",
"nokogiri"
] | **Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
- [x] Yes!
**What is the complete output of `gem install` or `bundle install`?**
output of `gem install`
`` gem install nokogiri -v 1.13.10 --platform=ruby -- --use-system-libraries ... | [install] error: conflicting types for 'gumbo_parse_with_options' on bundle install mac m1 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3212/comments | 3 | 2024-05-27T19:42:38Z | 2024-05-29T12:36:18Z | https://github.com/sparklemotion/nokogiri/issues/3212 | 2,319,697,158 | 3,212 |
[
"sparklemotion",
"nokogiri"
] |
**Please describe the bug**
CSS pseudo-class `:not` should be able to accept multiple selectors as arguments:
> https://developer.mozilla.org/en-US/docs/Web/CSS/:not
Raised by @stoivo in a comment in #3193
**Help us reproduce what you're seeing**
```ruby
#! /usr/bin/env ruby
require "bundler/inli... | [Nokogiri should accept multiple selectors as arguments to the `:not` CSS pseudo-class | https://api.github.com/repos/sparklemotion/nokogiri/issues/3207/comments | 1 | 2024-05-24T20:33:49Z | 2024-07-03T19:06:22Z | https://github.com/sparklemotion/nokogiri/issues/3207 | 2,316,217,301 | 3,207 |
[
"sparklemotion",
"nokogiri"
] | I'm trying to understand a change in behaviour I've tracked down to Nokogiri updates that arrived in version 1.15.0, specifically the automatic URL encoding of some characters contained within hrefs which was occurring previously but then stopped at this version.
With 1.13.8 (but I believe any version prior to ~~1.1... | [help] Nokogiri href escaping change between 1.14 and 1.15 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3202/comments | 4 | 2024-05-22T16:49:14Z | 2024-05-23T08:40:58Z | https://github.com/sparklemotion/nokogiri/issues/3202 | 2,311,026,611 | 3,202 |
[
"sparklemotion",
"nokogiri"
] | Currently we've still got a few methods that use the pre-Ruby-3.0 convention of using a positional hash argument to pass options.
For example:
```ruby
# lib/nokogiri/html5/document_fragment.rb
def initialize(doc, tags = nil, ctx = nil, options = {})
...
end
...
def self.parse(tags, encoding = nil, opt... | Deprecate positional hash arguments in the API | https://api.github.com/repos/sparklemotion/nokogiri/issues/3200/comments | 1 | 2024-05-21T13:18:07Z | 2024-12-08T16:33:14Z | https://github.com/sparklemotion/nokogiri/issues/3200 | 2,308,294,783 | 3,200 |
[
"sparklemotion",
"nokogiri"
] | I am getting warings when I use roadie when I want inline styles. It loops over the stylessheet and inlines the styles for each selector. It also inlines the styles from normalize.css
```css
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
... | [bug] CSS selector issue `-moz-drag-over` nonstandard Pseudo-classes | https://api.github.com/repos/sparklemotion/nokogiri/issues/3193/comments | 16 | 2024-05-15T10:56:28Z | 2024-06-12T07:51:14Z | https://github.com/sparklemotion/nokogiri/issues/3193 | 2,297,550,408 | 3,193 |
[
"sparklemotion",
"nokogiri"
] | Installing of nokogir-1.1.16.4 fails on Termux (a terminal emulator / Ubuntu-based Linux environment for Adnroid), due to `libxml2` not being able to extract due to hardlink issues with `tar`.
**Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
-... | [install] Cannot install nokogiri-1.1.16.4 on termux (arm-linux-androidabi) due to tar and hardlinks | https://api.github.com/repos/sparklemotion/nokogiri/issues/3187/comments | 1 | 2024-05-05T08:22:57Z | 2024-05-05T16:57:20Z | https://github.com/sparklemotion/nokogiri/issues/3187 | 2,279,390,855 | 3,187 |
[
"sparklemotion",
"nokogiri"
] | **What problem are you trying to solve?**
I'm trying to parse a large document with a lot of nested elements and it appears that the document is "cut" after 255 nested levels.
I created a very simple fragment with 400 ```<div>``` and 400 ```</div>``` and pass it to Nokogiri::HTML.fragment(). When I print the res... | [help] Nested elements with HTML.fragment() | https://api.github.com/repos/sparklemotion/nokogiri/issues/3186/comments | 3 | 2024-04-30T08:45:13Z | 2024-05-08T09:14:26Z | https://github.com/sparklemotion/nokogiri/issues/3186 | 2,270,878,695 | 3,186 |
[
"sparklemotion",
"nokogiri"
] | Currently, the XML and HTML4 document fragment parse methods accept a context tag name, but the HTML5 class does not.
This has made implementing code like https://github.com/flavorjones/nokogiri-html5-inference a little bit more challenging. It's a useful API and we should just support it.
This would be a good fi... | feature: accept a context tag name to `Nokogiri::HTML5::DocumentFragment.parse` | https://api.github.com/repos/sparklemotion/nokogiri/issues/3183/comments | 3 | 2024-04-24T21:38:53Z | 2024-07-15T21:31:11Z | https://github.com/sparklemotion/nokogiri/issues/3183 | 2,262,231,560 | 3,183 |
[
"sparklemotion",
"nokogiri"
] | The environment I'm running in is Unity's Build Automation. I need it to work for Mac/ios and Windows/Android builds but I'm currently focusing on Android in Cygwin. Since I don't control the environment, I don't know if I can even break out of cygwin. If there's any other commands I can try and get more info, let me k... | [install] cygwin | https://api.github.com/repos/sparklemotion/nokogiri/issues/3179/comments | 3 | 2024-04-21T10:41:40Z | 2024-07-03T19:02:50Z | https://github.com/sparklemotion/nokogiri/issues/3179 | 2,255,011,835 | 3,179 |
[
"sparklemotion",
"nokogiri"
] | Nokogiri parses `<noscript>` tags as script disabled mode.
Could you consider adding a option in the parsing settings to handle `<noscript>` tags as script is enabled mode?
This could allow for more flexible parsing depending on the user's needs.
Ref: https://html.spec.whatwg.org/multipage/scripting.html#the-nosc... | Feature Request: Option to Treat `noscript` Tags as Script Enabled | https://api.github.com/repos/sparklemotion/nokogiri/issues/3178/comments | 4 | 2024-04-19T16:03:46Z | 2024-06-20T21:04:59Z | https://github.com/sparklemotion/nokogiri/issues/3178 | 2,253,365,750 | 3,178 |
[
"sparklemotion",
"nokogiri"
] | Hi team,
zlib has released version 1.3.1 which contains a fix for [CVE-2023-45853](https://nvd.nist.gov/vuln/detail/CVE-2023-45853). See https://github.com/madler/zlib/issues/868. Is it possible to update the same in nokogiri? I see that it is pointing to 1.3 in dependencies.yml. | Update zlib to 1.3.1 to fix CVE-2023-45853 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3172/comments | 4 | 2024-04-10T10:48:57Z | 2024-04-11T05:52:50Z | https://github.com/sparklemotion/nokogiri/issues/3172 | 2,235,294,733 | 3,172 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
I noticed this morning that running the test suite with `NOKOGIRI_TEST_GC_LEVEL=verify` crashes during verification.
**Help us reproduce what you're seeing**
```sh
NOKOGIRI_TEST_GC_LEVEL=verify bundle exec rake test
# or, for debugger:
NOKOGIRI_TEST_GC_LEVEL=verify bundle exec ra... | [bug] tests with verify-compaction-references enabled segfault | https://api.github.com/repos/sparklemotion/nokogiri/issues/3171/comments | 4 | 2024-04-09T19:19:39Z | 2024-04-10T17:52:29Z | https://github.com/sparklemotion/nokogiri/issues/3171 | 2,234,152,042 | 3,171 |
[
"sparklemotion",
"nokogiri"
] | I see liblzma / xz is referenced in a few places and that the latest versions including "pre-build" dependencies (though I haven't seen them including liblzma/xz if I checked correctly).
Out of extra precaution, is it really necessary? asking not only for xz but - [if we learn something from what happened (CVE-2024-... | liblzma / xz dependency necessary? | https://api.github.com/repos/sparklemotion/nokogiri/issues/3167/comments | 5 | 2024-04-04T23:21:15Z | 2024-04-07T17:35:47Z | https://github.com/sparklemotion/nokogiri/issues/3167 | 2,226,684,565 | 3,167 |
[
"sparklemotion",
"nokogiri"
] | **Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
- [x] Yes!
---
We are using a non-default toolchain, so e.g. `ld` is available at `gcc10-ld`. For most gems with native code, they either use RbConfig to locate the toolchain (`RbConfig::CONF... | [install/bug] Alternate toolchain specified in ENV works, but does not work when passed as build arguments | https://api.github.com/repos/sparklemotion/nokogiri/issues/3160/comments | 2 | 2024-03-18T17:58:08Z | 2024-07-03T19:02:31Z | https://github.com/sparklemotion/nokogiri/issues/3160 | 2,192,899,798 | 3,160 |
[
"sparklemotion",
"nokogiri"
] | gnome/libxml2@02cc5c36 introduced a new parse option, `XML_PARSE_NO_XXE` to "disable loading of external content".
Given the history of working around XXE vectors, I want to make sure I understand how the flag is implemented (what it does), craft appropriate tests for it, and support it in versions of libxml2 that p... | libxml2: explore the new XML_PARSE_NO_XXE parse option | https://api.github.com/repos/sparklemotion/nokogiri/issues/3159/comments | 0 | 2024-03-18T13:47:34Z | 2025-02-19T23:56:25Z | https://github.com/sparklemotion/nokogiri/issues/3159 | 2,192,267,079 | 3,159 |
[
"sparklemotion",
"nokogiri"
] | Seeing these errors testing against gnome/libxml2@6a49bb777c57209042942e8426a8928a96298aa2
```
1) Failure:
Nokogiri::XML::CDATA::.new#test_0003_has nil content when passed nil [test/xml/test_cdata.rb:35]:
Expected "" to be nil.
2) Failure:
ad hoc node reparenting behavior::#add_next_sibling::with a text n... | (upstream libxml2) test errors | https://api.github.com/repos/sparklemotion/nokogiri/issues/3156/comments | 6 | 2024-03-18T02:29:34Z | 2024-03-29T18:00:14Z | https://github.com/sparklemotion/nokogiri/issues/3156 | 2,191,094,969 | 3,156 |
[
"sparklemotion",
"nokogiri"
] | Seeing crashes in the "upstream" CI, examples:
- https://github.com/sparklemotion/nokogiri/actions/runs/8302165358/job/22723875021
- https://github.com/sparklemotion/nokogiri/actions/runs/8302165358/job/22723875397
Both seem to have something to do with namespaces.
git bisecting reveals at least some crashes ... | (upstream) libxml2 crashing | https://api.github.com/repos/sparklemotion/nokogiri/issues/3155/comments | 4 | 2024-03-16T20:43:28Z | 2024-03-18T02:18:32Z | https://github.com/sparklemotion/nokogiri/issues/3155 | 2,190,241,088 | 3,155 |
[
"sparklemotion",
"nokogiri"
] | **Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
- [*] Yes!
**What is the complete output of `gem install` or `bundle install`?**
```
/Users/guri/.rbenv/versions/2.7.5/bin/ruby -I /Users/guri/.rbenv/versions/2.7.5/lib/ruby/2.7.0 -r ./sit... | [install] - fail in compilation - MacOS Sonoma, ruby 2.7.5. | https://api.github.com/repos/sparklemotion/nokogiri/issues/3149/comments | 1 | 2024-03-15T11:26:08Z | 2024-03-15T19:12:52Z | https://github.com/sparklemotion/nokogiri/issues/3149 | 2,188,298,160 | 3,149 |
[
"sparklemotion",
"nokogiri"
] |
**Please describe the bug**
Originally reported at https://github.com/searls/eiwa/issues/10
```ruby
#! /usr/bin/env ruby
require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "nokogiri", "~>1.15.0"
end
class Document < Nokogiri::XML::SAX::Document
def start_element(name, att... | [bug] SAX `start_element` behavior changed in libxml v2.12.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3148/comments | 7 | 2024-03-12T16:32:44Z | 2024-03-15T21:33:13Z | https://github.com/sparklemotion/nokogiri/issues/3148 | 2,182,143,070 | 3,148 |
[
"sparklemotion",
"nokogiri"
] | Ever since filing #1926 in 2019, my JMDict-parsing gem [eiwa](https://github.com/searls/eiwa) has been relying on the SAX document `error(msg)` callback to identify entities, like this:
```ruby
class Doc < Nokogiri::XML::SAX::Document
# …
def error(msg)
if (matches = msg.match(/Entity '(\S+)' not defined... | [bug] After encountering 100 unknown XML entities, the SAX parser stops calling Nokogiri::XML::SAX::Document#error | https://api.github.com/repos/sparklemotion/nokogiri/issues/3147/comments | 6 | 2024-03-12T16:24:54Z | 2024-06-26T05:46:18Z | https://github.com/sparklemotion/nokogiri/issues/3147 | 2,182,116,505 | 3,147 |
[
"sparklemotion",
"nokogiri"
] | I'm trying to run a ruby on rails application which results in crash. The error points to nokogiri.so.
The error message I get is
```/home/daniel/.gem/gems/nokogiri-1.16.2-arm-linux/lib/nokogiri/3.1/nokogiri.so: [BUG] Illegal instruction at 0xb37a7a0c
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm-linux-gnue... | [bug] illegal instruction on arm-linux-gnueabihf | https://api.github.com/repos/sparklemotion/nokogiri/issues/3145/comments | 3 | 2024-03-11T12:49:17Z | 2024-03-20T02:17:25Z | https://github.com/sparklemotion/nokogiri/issues/3145 | 2,179,055,001 | 3,145 |
[
"sparklemotion",
"nokogiri"
] | - See milestone https://github.com/sparklemotion/nokogiri/milestone/31
- punchlist
- [x] acknowledge sponsors
- existing recurring sponsors
- new sponsors:
- @velocity-labs via https://opencollective.com/velocity-labs
- @captn3m0 via https://opencollective.com/nemo
- @fnando
- ... | release planning: v1.17.0 | https://api.github.com/repos/sparklemotion/nokogiri/issues/3140/comments | 3 | 2024-03-03T21:29:47Z | 2024-12-08T19:56:11Z | https://github.com/sparklemotion/nokogiri/issues/3140 | 2,165,567,525 | 3,140 |
[
"sparklemotion",
"nokogiri"
] | **Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
- [ x] Yes!
**Tell us about your system!**
What is the output from `ruby -v`?
`ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x86_64-linux-musl]`
What is the output from `gem -v`?
`3.4.19`... | [install] Error building in Docker on mac M1 gumbo.c:32:10: fatal error: nokogiri_gumbo.h: No such file or directory | https://api.github.com/repos/sparklemotion/nokogiri/issues/3139/comments | 12 | 2024-02-29T07:44:09Z | 2024-03-24T16:50:01Z | https://github.com/sparklemotion/nokogiri/issues/3139 | 2,160,619,132 | 3,139 |
[
"sparklemotion",
"nokogiri"
] | Using OpenProject with *Nokogiri* 1.14.2, we noticed, the automounter trying to mount `/home/flavorjones`:
2024-02-20T11:58:08+01:00 platsch automount[96539]: attempting to mount entry /home/flavorjones
2024-02-20T11:58:08+01:00 platsch automount[96539]: key "flavorjones" not found in map source(s).
... | Gem contains hardcoded path to `/home/flavorjones` | https://api.github.com/repos/sparklemotion/nokogiri/issues/3133/comments | 7 | 2024-02-20T13:37:35Z | 2024-08-25T07:50:51Z | https://github.com/sparklemotion/nokogiri/issues/3133 | 2,144,404,631 | 3,133 |
[
"sparklemotion",
"nokogiri"
] |
DTD Validation fails with https urls.
This script recreates:
```ruby
#! /usr/bin/env ruby
require 'nokogiri'
xml = '<?xml version="1.0"?>
<!DOCTYPE coverage SYSTEM "https://cobertura.sourceforge.net/xml/coverage-04.dtd">
<coverage line-rate="1.0" branch-rate="0" lines-covered="2" lines-valid="2" branch... | [bug] DTD Validation fails with HTTPS DTD | https://api.github.com/repos/sparklemotion/nokogiri/issues/3132/comments | 2 | 2024-02-19T08:38:30Z | 2025-06-13T16:28:08Z | https://github.com/sparklemotion/nokogiri/issues/3132 | 2,141,814,850 | 3,132 |
[
"sparklemotion",
"nokogiri"
] | <!--
**Do not report Security Vulnerabilities here**
If you intend to report a security vulnerability, please do so at [HackerOne](https://hackerone.com/nokogiri) following the process detailed in [`SECURITY.md`](https://nokogiri.org/SECURITY.html). Do not report it through GitHub.
-->
**Please describe the bug... | [bug] Nokogiri v1.16.0+ can't handle huge files | https://api.github.com/repos/sparklemotion/nokogiri/issues/3128/comments | 7 | 2024-02-08T02:04:49Z | 2024-02-21T23:05:23Z | https://github.com/sparklemotion/nokogiri/issues/3128 | 2,124,226,487 | 3,128 |
[
"sparklemotion",
"nokogiri"
] |
I want to get elements by the tag name, but the issue is tag names are written in VML like below:

ref: https://www.w3.org/TR/NOTE-VML
I want to use `search` method for that as it is more generic.
The... | [help] How to search VML tags using search method | https://api.github.com/repos/sparklemotion/nokogiri/issues/3126/comments | 5 | 2024-02-06T13:51:32Z | 2024-02-07T03:50:26Z | https://github.com/sparklemotion/nokogiri/issues/3126 | 2,120,834,928 | 3,126 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
Calling [`to_html`](https://github.com/sparklemotion/nokogiri/blob/04ecb5b1c4b9c0b6497f375a78309c5b3cba1dbf/lib/nokogiri/xml/node.rb#L1348) on a `Nokogiri::XML::Attr` instance, parsed via `HTML5::DocumentFragment` is raising an `Unsupported docu
ment node (2); this is a bug in Nokogiri (... | [bug] Calling `to_html` on `Nokogiri::XML::Attr` raises `Unsupported document node (2)` exception | https://api.github.com/repos/sparklemotion/nokogiri/issues/3125/comments | 5 | 2024-02-06T03:23:49Z | 2024-02-08T03:07:57Z | https://github.com/sparklemotion/nokogiri/issues/3125 | 2,119,869,876 | 3,125 |
[
"sparklemotion",
"nokogiri"
] | <!--
**Do not report Security Vulnerabilities here**
If you intend to report a security vulnerability, please do so at [HackerOne](https://hackerone.com/nokogiri) following the process detailed in [`SECURITY.md`](https://nokogiri.org/SECURITY.html). Do not report it through GitHub.
-->
**Please describe the bug... | Segfault when adding fragment in HTML::Builder and document has an xmlns attribute | https://api.github.com/repos/sparklemotion/nokogiri/issues/3112/comments | 8 | 2024-01-28T18:05:50Z | 2024-01-30T15:42:08Z | https://github.com/sparklemotion/nokogiri/issues/3112 | 2,104,283,119 | 3,112 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
Given an HTML document with a space in the `href` portion of the `a` element, `document.to_html` will incorrectly encode that space. This is only the case with the HTML4 parser.
**Help us reproduce what you're seeing**
```rb
#! /usr/bin/env ruby
require 'nokogiri'
require 'mini... | [bug] Attribute contents HTML-encoded after serialization | https://api.github.com/repos/sparklemotion/nokogiri/issues/3104/comments | 2 | 2024-01-19T13:42:08Z | 2024-01-19T15:59:01Z | https://github.com/sparklemotion/nokogiri/issues/3104 | 2,090,601,100 | 3,104 |
[
"sparklemotion",
"nokogiri"
] | I understand that nokogiri uses a different XML/HTML parsing library for it's JRuby bindings than libxml2. I noticed recently that `Nokogiri::HTML::Document#to_s` produces strange output under JRuby. Note the actual output contains some unusual whitespace/indentation that shouldn't be there, and an empty `<head></head>... | [bug] Nokogiri::HTML::Document#to_s behaves oddly under JRuby | https://api.github.com/repos/sparklemotion/nokogiri/issues/3103/comments | 5 | 2024-01-18T20:10:38Z | 2024-01-21T20:02:04Z | https://github.com/sparklemotion/nokogiri/issues/3103 | 2,088,979,447 | 3,103 |
[
"sparklemotion",
"nokogiri"
] | __Context__
Issue #2598 describes at length an incompatibility between Ruby's compacting garbage collector and libxml2's `xmlTextReaderExpand` which re-uses C structs previously returned. The solution chosen and implemented in #2599 was to deprecate `Reader#attribute_nodes`. This method was removed entirely in Nokog... | Replace `Reader#attribute_nodes` with a rough equivalent | https://api.github.com/repos/sparklemotion/nokogiri/issues/3102/comments | 3 | 2024-01-18T03:05:51Z | 2024-12-16T17:21:30Z | https://github.com/sparklemotion/nokogiri/issues/3102 | 2,087,387,254 | 3,102 |
[
"sparklemotion",
"nokogiri"
] | **Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
- [ x] Yes!
**What is the complete output of `gem install` or `bundle install`?**
<!-- Please make sure to escape the file contents with triple-backticks. -->
`when building with the jem... | [install] Docker amd64 unable to build with ruby 3.3.0 - nokogiri 1.16.0 fails to install with libjemalloc2 libjemalloc-dev debian deps installed | https://api.github.com/repos/sparklemotion/nokogiri/issues/3101/comments | 6 | 2024-01-17T23:13:19Z | 2024-02-29T17:50:14Z | https://github.com/sparklemotion/nokogiri/issues/3101 | 2,087,166,787 | 3,101 |
[
"sparklemotion",
"nokogiri"
] | While investigating #3098, I noticed that Gumbo's `clone_node()` function doesn't make a copy of nonstandard tag names.
I think this is the fix
```diff
diff --git a/gumbo-parser/src/parser.c b/gumbo-parser/src/parser.c
index 67812b23..c3e5e038 100644
--- a/gumbo-parser/src/parser.c
+++ b/gumbo-parser/src/parser... | `clone_node()` doesn't duplicate nonstandard tag names | https://api.github.com/repos/sparklemotion/nokogiri/issues/3099/comments | 1 | 2024-01-16T01:29:56Z | 2024-07-03T19:15:06Z | https://github.com/sparklemotion/nokogiri/issues/3099 | 2,082,874,408 | 3,099 |
[
"sparklemotion",
"nokogiri"
] | This is mostly to keep track of my investigation of this [oss-fuzz–found bug](https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64480&q=nokogiri&can=2)
Minimal test case with `max_tree_depth: 1`:
```html
<html><body>
```
The issue seems to occur if the tree depth increases beyond the limit due to a parser ... | Hitting the max tree depth can leak memory | https://api.github.com/repos/sparklemotion/nokogiri/issues/3098/comments | 0 | 2024-01-16T01:26:17Z | 2024-01-17T01:44:22Z | https://github.com/sparklemotion/nokogiri/issues/3098 | 2,082,872,150 | 3,098 |
[
"sparklemotion",
"nokogiri"
] | **We are trying to parse an XML file [more than 300 MB]**
```
We have a working code where XML parsing is a working file with small data sets like 20,30,50 up to 250 MB file size.
Were when we try with more than 300MB file it's not working.
```
class ExportParser < Nokogiri::XML::SAX::Document
attr_... | Facing issues while parsing More then 300 MB XML file. | https://api.github.com/repos/sparklemotion/nokogiri/issues/3088/comments | 0 | 2024-01-03T13:03:58Z | 2024-01-03T14:59:54Z | https://github.com/sparklemotion/nokogiri/issues/3088 | 2,064,005,123 | 3,088 |
[
"sparklemotion",
"nokogiri"
] | <!--
**Do not report Security Vulnerabilities here**
If you intend to report a security vulnerability, please do so at [HackerOne](https://hackerone.com/nokogiri) following the process detailed in [`SECURITY.md`](https://nokogiri.org/SECURITY.html). Do not report it through GitHub.
-->
**Please describe the bug... | [feature] using "of <complex-selector-list>" for `:nth-child` and `:nth-last-child` | https://api.github.com/repos/sparklemotion/nokogiri/issues/3078/comments | 1 | 2023-12-26T20:51:09Z | 2023-12-27T21:06:16Z | https://github.com/sparklemotion/nokogiri/issues/3078 | 2,056,698,301 | 3,078 |
[
"sparklemotion",
"nokogiri"
] | **Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
- [x] Yes!
**What is the complete output of `gem install` or `bundle install`?**
<!-- Please make sure to escape the file contents with triple-backticks. -->
```
Building native exten... | [install] the function pointer is incompatible related to the function 'xmlSetSructuredErrorFunc' | https://api.github.com/repos/sparklemotion/nokogiri/issues/3071/comments | 4 | 2023-12-24T18:38:48Z | 2023-12-27T21:18:51Z | https://github.com/sparklemotion/nokogiri/issues/3071 | 2,055,185,516 | 3,071 |
[
"sparklemotion",
"nokogiri"
] | **Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
- [x] Yes!
**What is the complete output of `gem install` or `bundle install`?**
<!-- Please make sure to escape the file contents with triple-backticks. -->
```
the output goes here
```
**If i... | [install] | https://api.github.com/repos/sparklemotion/nokogiri/issues/3070/comments | 0 | 2023-12-24T10:20:06Z | 2023-12-24T19:52:31Z | https://github.com/sparklemotion/nokogiri/issues/3070 | 2,055,053,713 | 3,070 |
[
"sparklemotion",
"nokogiri"
] | **What problem are you trying to solve?**
<!--
A clear and concise description of what you're trying to do. Please try to describe the problem you're solving, rather than the solution you're implementing -- avoid the XY Problem! http://xyproblem.info/
-->
**Please show your code!**
<!--
If possible, please include w... | [help] | https://api.github.com/repos/sparklemotion/nokogiri/issues/3069/comments | 1 | 2023-12-21T23:25:53Z | 2023-12-24T19:50:22Z | https://github.com/sparklemotion/nokogiri/issues/3069 | 2,053,169,724 | 3,069 |
[
"sparklemotion",
"nokogiri"
] | **Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
- [ ] Yes!
**What is the complete output of `gem install` or `bundle install`?**
<!-- Please make sure to escape the file contents with triple-backticks. -->
```
the output goes here
```
**If i... | [install] | https://api.github.com/repos/sparklemotion/nokogiri/issues/3068/comments | 1 | 2023-12-21T23:25:45Z | 2023-12-22T14:58:45Z | https://github.com/sparklemotion/nokogiri/issues/3068 | 2,053,169,625 | 3,068 |
[
"sparklemotion",
"nokogiri"
] | <!--
**Do not report Security Vulnerabilities here**
If you intend to report a security vulnerability, please do so at [HackerOne](https://hackerone.com/nokogiri) following the process detailed in [`SECURITY.md`](https://nokogiri.org/SECURITY.html). Do not report it through GitHub.
-->
**Please describe the bug**
<!... | [bug] | https://api.github.com/repos/sparklemotion/nokogiri/issues/3067/comments | 0 | 2023-12-21T23:25:35Z | 2023-12-24T19:50:55Z | https://github.com/sparklemotion/nokogiri/issues/3067 | 2,053,169,520 | 3,067 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
I am working with xsd and I need to build a xml with the node "doc". Using the nokogiri builder I was expecting to use `xml.doc() { ... }` but it don't work. This uses method missing which has a name collision. I have added a demo script below. I couldn't find any solutions to this fro... | [bug] can't build a doc node (can with a monkypatch) | https://api.github.com/repos/sparklemotion/nokogiri/issues/3064/comments | 0 | 2023-12-18T14:54:44Z | 2023-12-18T22:30:33Z | https://github.com/sparklemotion/nokogiri/issues/3064 | 2,046,847,225 | 3,064 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
Nokogiri 1.15.5, Ruby 3.2.2, macOS Sonoma, MacBook Air M1
Let me know if this is relevant, and what parts of the crash logs to provide, if any.
```
^C
-- nokogiri-1.15.5-arm64-darwin/lib/nokogiri --
xml/document.rb:181:in `initialize': Interrupt
html5/document.rb:130:in `initial... | Non-reproducible crash when pressing Ctrl-C | https://api.github.com/repos/sparklemotion/nokogiri/issues/3052/comments | 1 | 2023-12-11T07:25:13Z | 2023-12-12T15:57:23Z | https://github.com/sparklemotion/nokogiri/issues/3052 | 2,034,999,507 | 3,052 |
[
"sparklemotion",
"nokogiri"
] | I used the benchmark from https://github.com/sparklemotion/nokogiri/issues/2722 with Ruby 3.2.2 and 2.7.2, and added Nokolexbor to the benchmark.
[Nokolexbor](https://github.com/serpapi/nokolexbor) is 2-12 times faster when parsing and 2-6 times faster when serializing than the Gumbo and Libxml2 backends.
```ruby... | Process HTML using Nokolexbor instead of Nokogumbo | https://api.github.com/repos/sparklemotion/nokogiri/issues/3043/comments | 0 | 2023-11-28T20:08:13Z | 2023-11-28T20:08:13Z | https://github.com/sparklemotion/nokogiri/issues/3043 | 2,015,216,594 | 3,043 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
I'm seeing a `stack level too deep (SystemStackError)` parsing with Nokogiri, but only inside of a [Fiber](https://docs.ruby-lang.org/en/master/Fiber.html) at a certain depth level
**Help us reproduce what you're seeing**
```ruby
require 'nokogiri'
# this outputs 1 to 500
(1..5... | [bug] stack level too deep (SystemStackError) in Fiber | https://api.github.com/repos/sparklemotion/nokogiri/issues/3034/comments | 2 | 2023-11-20T19:43:27Z | 2023-11-20T21:48:44Z | https://github.com/sparklemotion/nokogiri/issues/3034 | 2,002,879,103 | 3,034 |
[
"sparklemotion",
"nokogiri"
] | Release notes are at https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.0
I don't see any security-related changes, so I'm planning this for a Nokogiri v1.16.0 relesae that will coincide with Ruby 3.3 support.
I'm seeing some challenges with a naive upgrade, so I'm creating this issue to track the conversati... | Update to libxml 2.12.0 or later | https://api.github.com/repos/sparklemotion/nokogiri/issues/3031/comments | 3 | 2023-11-18T17:01:11Z | 2023-11-18T21:57:36Z | https://github.com/sparklemotion/nokogiri/issues/3031 | 2,000,499,292 | 3,031 |
[
"sparklemotion",
"nokogiri"
] | https://github.com/stimulusreflex/stimulus_reflex
cc @marcoroth
| Add downstream test coverage for stimulus reflex | https://api.github.com/repos/sparklemotion/nokogiri/issues/3024/comments | 0 | 2023-11-15T18:34:03Z | 2023-11-17T05:16:29Z | https://github.com/sparklemotion/nokogiri/issues/3024 | 1,995,315,670 | 3,024 |
[
"sparklemotion",
"nokogiri"
] |
**Please describe the bug**
```ruby
#!/usr/bin/env ruby
require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "nokogiri"
end
doc = <<~HTML
<html>
<body class="foo">
<div>hello</div>
</body>
</html>
HTML
puts Nokogiri::HTML4::DocumentFragment.parse(doc).to_html... | [bug] DocumentFragment parse behavior wrt `body` tag | https://api.github.com/repos/sparklemotion/nokogiri/issues/3023/comments | 6 | 2023-11-15T18:00:07Z | 2024-04-25T00:12:56Z | https://github.com/sparklemotion/nokogiri/issues/3023 | 1,995,269,290 | 3,023 |
[
"sparklemotion",
"nokogiri"
] | <!--
**Do not report Security Vulnerabilities here**
If you intend to report a security vulnerability, please do so at [HackerOne](https://hackerone.com/nokogiri) following the process detailed in [`SECURITY.md`](https://nokogiri.org/SECURITY.html). Do not report it through GitHub.
-->
**Please describe the bug**
<!... | [bug] | https://api.github.com/repos/sparklemotion/nokogiri/issues/3010/comments | 0 | 2023-10-21T23:02:57Z | 2023-10-22T14:24:15Z | https://github.com/sparklemotion/nokogiri/issues/3010 | 1,955,692,175 | 3,010 |
[
"sparklemotion",
"nokogiri"
] | **Please describe the bug**
Since 35cace6b in 2008, `DTD#attributes` has returned a `Hash<String => AttributeDecl>` where the key is the attribute name.
This doesn't make any sense, since the attribute name does not need to be unique, for example:
```ruby
doc = Nokogiri::XML::Document.parse(<<~XML)
<?xml v... | [bug] DTD#attributes should not be a hash, it should be an array | https://api.github.com/repos/sparklemotion/nokogiri/issues/2995/comments | 2 | 2023-09-24T18:42:08Z | 2024-12-16T17:21:29Z | https://github.com/sparklemotion/nokogiri/issues/2995 | 1,910,337,392 | 2,995 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.