nokogiri 1.15.6-arm64-darwin → 1.15.7-arm64-darwin

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of nokogiri might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83c187bf1e279f0d557c2eb79b8100f964809246a639e86e4f0eb6c26260d711
4
- data.tar.gz: 07d4cfc110e80a8bd1d5f0d81a373ebbc5d35f85f4947e3a681dc67f9e052d98
3
+ metadata.gz: 703b894c23d9c84be8f777686ff597307b29f5742d7cfa36fcfe1c7e747ac06f
4
+ data.tar.gz: 5f0962182e73df2cb8026785457c1e61e361669846e7cbc99035cfe12c840101
5
5
  SHA512:
6
- metadata.gz: 86191c38a61209d5e58c3c690f3736e5924bde3dc488de1a0215cc85c4d29f6feff456c15ac720f443a5defa4af47ab1c37ead3c8d97e5cdb3f448c4dabfa4bc
7
- data.tar.gz: 1ce94447c23ce2568ba5b8e3b16d6783f5fcc93dba2a46f4145b1bfd83ffdfcd2bc81573314aa374b93aa040832bd90356f5425e66085830cfeb69d8fc4b8768
6
+ metadata.gz: e48b8edefcffab50f7f04011338154674ad206d4b89f5d43510d455e4f949b6416abd1a181229df01c68f2a9ab23cd826b6563289a4c47aba43e6363ee643897
7
+ data.tar.gz: 5738d7d4f5a210dc67f4171c8167927bab76d936ed4d3a3bd7ce11da5112e8819adea0edae26b57031afd2fca01d3ff02c2b3a264420876ca28e1ead4a8e2383
@@ -1853,13 +1853,19 @@ is_one_of(xmlNodePtr node, char const *const *tagnames, size_t num_tagnames)
1853
1853
  if (name == NULL) { // fragments don't have a name
1854
1854
  return false;
1855
1855
  }
1856
+
1857
+ if (node->ns != NULL) {
1858
+ // if the node has a namespace, it's in a foreign context and is not one of the HTML tags we're
1859
+ // matching against.
1860
+ return false;
1861
+ }
1862
+
1856
1863
  for (size_t idx = 0; idx < num_tagnames; ++idx) {
1857
1864
  if (!strcmp(name, tagnames[idx])) {
1858
1865
  return true;
1859
1866
  }
1860
1867
  }
1861
1868
  return false;
1862
-
1863
1869
  }
1864
1870
 
1865
1871
  static void
Binary file
Binary file
Binary file
Binary file
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nokogiri
4
4
  # The version of Nokogiri you are using
5
- VERSION = "1.15.6"
5
+ VERSION = "1.15.7"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.6
4
+ version: 1.15.7
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Mike Dalessio
@@ -20,7 +20,7 @@ authors:
20
20
  autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
- date: 2024-03-16 00:00:00.000000000 Z
23
+ date: 2024-12-02 00:00:00.000000000 Z
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: racc
@@ -36,7 +36,6 @@ dependencies:
36
36
  - - "~>"
37
37
  - !ruby/object:Gem::Version
38
38
  version: '1.4'
39
- force_ruby_platform: false
40
39
  description: |
41
40
  Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby. It provides a
42
41
  sensible, easy-to-understand API for reading, writing, modifying, and querying documents. It is