nokogiri 1.16.7-x86_64-linux → 1.16.8-x86_64-linux

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: f61e19cf47d597c34583b04902c841e069a6aaa42febc14371cf4e4ce096d11c
4
- data.tar.gz: d229dd683f6c9b6e734bb2f2e60d31e6499dc279a3133ebd1ed639990a9f34bb
3
+ metadata.gz: fc337c97324686cd7f8234ef88b3be594642527eb7f2d72074a4d532cc71e598
4
+ data.tar.gz: 78bb2a4f4abbe803f9d3b1e40921db755d0c439c24cf2ca506db72477b9f51b0
5
5
  SHA512:
6
- metadata.gz: fd5de7c3cbac1d3daf1c4a4722ab1a11c14eafe3e1788b3f3bef805fd14e83e94dcb040df5171a71f505723be6712172a1dd9a8e810b2c4395c7a01ce41161c7
7
- data.tar.gz: ed8e2f49a402268ae1b89579ed4ead4fdf1d83bdf98c8e4716cfc384f0b540dc8385e4bea68910699ebd166ff225ebc679627fd6765ea3ad2f8df6d8971dd2df
6
+ metadata.gz: db53fe47f258adfc809f3f82a4872a8b2ff98b4a3b2e9ae0409441457c5b71e4e1af50317b8edab87ce19f5fd6fb473802e864169984c2bcce65c5f248b1f783
7
+ data.tar.gz: 041efcd71d6a3fd820126101f30cdc49db3a86725eac21fcfea8f4d7fefc30fc1d117b29dc1dc6a353fc6fcf242305fd15a9227fffffe7d4cfbd9d21a61fb01e
@@ -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-linux
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