nokogiri 1.15.6 → 1.15.7

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: 7a85f82fee42ee0bbf6c9c15fedaff96d260c6837772d3f65e26dafd692b137e
4
- data.tar.gz: 5f811dcc08cb6b7e03aa2fbd3e8c66373394a0f0ecbd496cd065d53144375f63
3
+ metadata.gz: a72ad4b4ad23ae883ca2943d3be69958299a4e02500452efe4717a096dadaf20
4
+ data.tar.gz: 7243d71ca052e429837cee6f7c5f36fb056815e287aa74c17292443f7ddafc33
5
5
  SHA512:
6
- metadata.gz: 3a0acf4d167ae8c107358807df704bc7ada3f2a6d788c47ddc7bde2f142ccf5e2669bb872457e38dc218e682bb60c7f4aa5e7a5b60a566300cb7c3ffa527f028
7
- data.tar.gz: ca335d87dd71b2692daf4f6118cd4862a2e885f69200324ac17551fc113889fadb5adc7cc4a0bb686129214fbf3fad2bcd9c1f750a630112e0b9c27dd8afe810
6
+ metadata.gz: d322d5eb360f309c4711fdb2c60ebfd9430f8fd8959f9c9dbab15847df0d27ca53ef17890dedebc2afcdfedd1482152879260b7e84ccb8dd019952619b237449
7
+ data.tar.gz: e9d279e044ab827172901f8147c1751eed9a6e3ecd51088613802e1523bf68ede46a2b06b516258f6d989139268ee098b5b2446dba0d9bf71d7ee2ab24224df9
@@ -1853,13 +1853,19 @@ is_one_of(xmlNodePtr node, char const *const *tagnames, size_t num_tagnames)
1853
1853
  if (name == NULL) { // fragments don't have a name
1854
1854
  return false;
1855
1855
  }
1856
+
1857
+ if (node->ns != NULL) {
1858
+ // if the node has a namespace, it's in a foreign context and is not one of the HTML tags we're
1859
+ // matching against.
1860
+ return false;
1861
+ }
1862
+
1856
1863
  for (size_t idx = 0; idx < num_tagnames; ++idx) {
1857
1864
  if (!strcmp(name, tagnames[idx])) {
1858
1865
  return true;
1859
1866
  }
1860
1867
  }
1861
1868
  return false;
1862
-
1863
1869
  }
1864
1870
 
1865
1871
  static void
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nokogiri
4
4
  # The version of Nokogiri you are using
5
- VERSION = "1.15.6"
5
+ VERSION = "1.15.7"
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.15.6
4
+ version: 1.15.7
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-03-16 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
@@ -301,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
299
  - !ruby/object:Gem::Version
302
300
  version: '0'
303
301
  requirements: []
304
- rubygems_version: 3.4.19
302
+ rubygems_version: 3.5.22
305
303
  signing_key:
306
304
  specification_version: 4
307
305
  summary: Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.