nokogiri 1.16.7 → 1.16.8

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: ecac71fbec559a9b68c4009b18d8ecbc511fbfbfad6cebd462deda560134ecfc
4
- data.tar.gz: 9d513df3dbd9e4f676b1adb46bae239b6006483dbaf0734fcc4e39db8497a3a9
3
+ metadata.gz: eff0523bd350c2cd114bdd93486cd25f266ae4adc064571a108d1926776d6144
4
+ data.tar.gz: 7b9ecfc54d5f1ecc8e2b843bd17b404f8c2e5577749dde52678e0c9c1350f3b6
5
5
  SHA512:
6
- metadata.gz: eefac12f8f3ec311128199c8448a234a79bb691a76a165527fe8a66522407b0e994f87270ba6de1159fc9c561c2c67645f03ad4bbb1a3c8a38e2d353fdcbdea8
7
- data.tar.gz: 8b78cd520efbec6a0959d325f5326ae49c2e4a6cf1cbbcc67bbe7688ad8c90c7e2be412ae205734eb3cf8df54b8fac793a249cc5eaf2ad6033938d801eee15e9
6
+ metadata.gz: 11d6a2558416abb116410ac6b06015954287b593acdaa2c3cc2bc9daf2105d3bf197d380cce08978afc4102552450c5f7a1a9c85e41ad4307fb430cc56942dcc
7
+ data.tar.gz: 3b78a83da090e5f28d300a56c5f057a6e8b29bc3a0eadd95b55d80b228c5c68cd455c4534ef1adc14a2cdc0f3ad0271e461344efe7cca1a63c3d5713eb8038fe
@@ -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
@@ -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: ruby
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: mini_portile2
@@ -36,7 +36,6 @@ dependencies:
36
36
  - - "~>"
37
37
  - !ruby/object:Gem::Version
38
38
  version: 2.8.2
39
- force_ruby_platform: false
40
39
  - !ruby/object:Gem::Dependency
41
40
  name: racc
42
41
  requirement: !ruby/object:Gem::Requirement
@@ -51,7 +50,6 @@ dependencies:
51
50
  - - "~>"
52
51
  - !ruby/object:Gem::Version
53
52
  version: '1.4'
54
- force_ruby_platform: false
55
53
  description: |
56
54
  Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby. It provides a
57
55
  sensible, easy-to-understand API for reading, writing, modifying, and querying documents. It is