nokogiri 1.16.7-x64-mingw-ucrt → 1.16.8-x64-mingw-ucrt

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: 3ebcba6cfff545c51314315ed7aaa647056fdfef97873c37549af40914ffa232
4
- data.tar.gz: f4184aca4afc86f202fde4bd17a3c2ae13363072769be32e6c94922b9c573988
3
+ metadata.gz: 4ccd2150ffb1c6670c99951f892278ba8ba40a9d458018f023642b11083544ad
4
+ data.tar.gz: 8c633fbc86476e17594db79d62dbdbd1eddd3b015f42ff74a310731f2e9d7f7c
5
5
  SHA512:
6
- metadata.gz: 923aca8e5756c20624b826b604ef840fa138a038ee13e955a03973cf4ffc7171c0d8966db2db120f735a07dc1c357540c402a333d965e7b4a917dc68ada4fce9
7
- data.tar.gz: da867d6b36790dd2044215fffd353c6935b8d8510660601444e2dccfe8f8ece7333be4c82dca03383acc4c7f241d95bde846c5c6b5cc3ed3ca00b5a6f04a4221
6
+ metadata.gz: c152a40b07900b83614f7adc4674c7fe0cf9162ae78c55254b30c2f4bef51deb4d010772886e08e4ccfb7bc560e0bfea1bc09f8825d358ba3d7496f2d9570f81
7
+ data.tar.gz: ed5fd59e80b1b7a214b13d59529ba72f342d1cb9a03921cc78542b1692c56d15f0fa2fcbaf88f9000242cf9f0b323e7b1467a8f4a92ff4273bc5e936eecbc0c0
@@ -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
@@ -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: x64-mingw-ucrt
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