nokogiri 1.15.6-arm-linux → 1.15.7-arm-linux

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: 7942bc55b2a7191e4f6a769928397e2e9a59a354b4596c2a3c04b6ece0eb4ae1
4
- data.tar.gz: bbc8095e0be029a940f10e58136743570c5f22d745b5a88b27234dc6a53ec283
3
+ metadata.gz: 44dc0ee1d3631d89da1d906e9c44baf04200af30fa752a77fd069caa69ee4795
4
+ data.tar.gz: 42356c5ac838128e08a6646589c4d21d2790683600709b2c5a20bcf2ef29b23d
5
5
  SHA512:
6
- metadata.gz: 91dce70fdaa1f6db72e0760a329fc2ad4a706eb596aea14d802002834ab632bcf381b17c02ebef190295b5db741fdeb8169f32d65e862064bc71c8081ea86aaf
7
- data.tar.gz: c8fa266817a9c5f169732c2f56c331ebc7aa4d817cde79957cc0306701d5f0dbf25f5739d74ad0bc8b13c9da289d4eaf194799622f11983943e1d7235558dc7c
6
+ metadata.gz: 8fc94386f338499aeb1704410798e713ecdeb5f1eb55185f8c7fcc177f62d42e19836a2a89ab87bb093d51396e8a7ec44d160054671decbe2ddbce3313648534
7
+ data.tar.gz: 89548c4cb67dbc49947d2a3c83e82eab3acbd285fc47291eea5c0138aeaa0a3f8eb5b0b1ded84c6af132d6693271acfbb7ada8315b16478dff621156077c3c09
@@ -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
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.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: arm-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-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: 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