nokogiri 1.16.7-arm64-darwin → 1.16.8-arm64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3a6c9b7cef169d6f7bd008ac20fe6646ad603f3fbf35fe0a703e611418693f4
4
- data.tar.gz: af94405c87ebc4d33ab2433b11882f6e83e473a9e87cdbc23833324656faa911
3
+ metadata.gz: 28aba9d50ac5d7244f9c63819395d0f60e83c047a2fdaa0b0c0bbbcc5f92e4cb
4
+ data.tar.gz: fa906036a457a793129ca95758dfd9b38672f044328c62160a28f46642cd67e2
5
5
  SHA512:
6
- metadata.gz: 79e8ee7c0c1f5a62603f6c736914ffd5b8ef1123a7503610a7cd491f8b6dd28aff5bfdc1f15fdeb3351fd8007f78b1ec63fee1d73d2c671c60fb544e618f4669
7
- data.tar.gz: 1c90cda0a76f9b73954f2efbb1cc6fc0261efceeb7fd2f52becde3975500137ec4e5c585c564e295c35ffdb4eebd6c1dfbf070f66e2202d60cb21fe32b73557f
6
+ metadata.gz: 00d3739b4b099b39c57d57dd26b703f44d576a4f55b577404865312583cb9e81d8ed7b9d3e1633115bf96e2bf105ab9f6c2ac1f55b04a0cc7ff907504674eb38
7
+ data.tar.gz: d214801e63cfbee1f5a8e732d11bd7fed0358aa43bc7cf64b216c48f85bc855119b17b3663f654fb83cc5507aa3e85b35c638897584305d0ac63294a6b82ee50
@@ -1849,13 +1849,19 @@ is_one_of(xmlNodePtr node, char const *const *tagnames, size_t num_tagnames)
1849
1849
  if (name == NULL) { // fragments don't have a name
1850
1850
  return false;
1851
1851
  }
1852
+
1853
+ if (node->ns != NULL) {
1854
+ // if the node has a namespace, it's in a foreign context and is not one of the HTML tags we're
1855
+ // matching against.
1856
+ return false;
1857
+ }
1858
+
1852
1859
  for (size_t idx = 0; idx < num_tagnames; ++idx) {
1853
1860
  if (!strcmp(name, tagnames[idx])) {
1854
1861
  return true;
1855
1862
  }
1856
1863
  }
1857
1864
  return false;
1858
-
1859
1865
  }
1860
1866
 
1861
1867
  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.16.7"
5
+ VERSION = "1.16.8"
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.16.7
4
+ version: 1.16.8
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-07-27 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