nokogiri 1.16.7-x86_64-darwin → 1.16.8-x86_64-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: 62490e6e524ba1117d7e4213162c5750f0f25ce3615e2e1f809d1f48ded3b3ab
4
- data.tar.gz: 1bcd9a0b1c9069d0bd3f237b3e7c48872e422aed4055dd8acd53697ce4dd4575
3
+ metadata.gz: b86d13fa8d9e5af7340d5da3d829a6c64dec2fe3babdbf50d2ccae6cde130d51
4
+ data.tar.gz: 0dbd158b1a24093df3e11cb28ab60fa64ae9659f13154b98a41c2c8c572ef431
5
5
  SHA512:
6
- metadata.gz: 66d151afb95451232ab4c8bdc6896e081ab0d900dfcc5b45abe2cd7961309edf44e730d94741278a5cf7bd2a06e919bd518a3144f0cbc51ac79826d4de1f7ae2
7
- data.tar.gz: 9d352c695fbad6cf5cc860fa98bf644c26ea88eef50831ac02d453af5f280b0b0340b524c0114ea0d9d15f6d2ec73e9afceb9873eb7147f8172d9baff085f41b
6
+ metadata.gz: d16e3f03de6d5762a7b93d6dd94c6dc18592e79421aa8c05b9776431e1d6f695ee129eaad6a1224cc0bfb3cca9ba0fd1618f7d6790e2e1cfb52ade2b65ae17e6
7
+ data.tar.gz: d46d9d712e919e757144893217a97a65153d911165c433ad2b5c5928a1c771f20a65e74a61ca35eca06fab98c8d53e18da3539aec7848d3d62cc6407fb587c0b
@@ -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: x86_64-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