nokogiri 1.16.7-x86-mingw32 → 1.16.8-x86-mingw32

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: 69eb2f1a47c89407eb2f5c2d94d8568a7f80ba0f9ec0768539e87c34b49ce5bd
4
- data.tar.gz: 38031be805ebd50af8fea5d684d962b9c9a1ac4ce050cc77258d0acebf6526a2
3
+ metadata.gz: f1cc4b07e434f28cf9ac83ba706e7373d654f0c23bd4c4bc2f8ea5f1dc086a2e
4
+ data.tar.gz: b18361070a76a2d2bc9c74cb8055e630174cfbb0a4de102b698a021ee89efac0
5
5
  SHA512:
6
- metadata.gz: 3b4ee7358c61b0ba47e5c011f26f48ce1f1a55d5a111509e6ed8025af5c0d3284379f1ea50601ebac2cf22c77bca8179083d26c30565c9504270aa27bb67590f
7
- data.tar.gz: 513da52bbc97e2297268f166f33eb46475be8ba0124cda49971192048c3175005183b2446f99102a408f81f1eac487611882ac26ce3840a7fc6ca0a4d7d56377
6
+ metadata.gz: dc145562bbbda9ad95f55223eccbccdf1cfda6d66f1d344c478fa2c138d0c17c862cc06fd247707c22d0b7c4fd10b8e95844624d81cb7e08f1d0847dec021165
7
+ data.tar.gz: 838c42f1dcf5ecc15d6069de80a9e7f88794a4335325559d991a415521bc25e637e6a764da766b3cd4b15395ad9a9ebe9582ae0f221359268ce926e5ecd5bd01
@@ -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-mingw32
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