nokogiri 1.15.6-java → 1.15.7-java

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: 1ea963ed67f78f94b30757964c17ee423164e28772b5f2d04d32047f65efbff0
4
- data.tar.gz: a5cf600b00e65faaba3ce4d1c22e8c54a3bb8914be4d78c3e490e3beb0304b65
3
+ metadata.gz: 010e980be6c895a3d263cbfe2fa971e3c7d9fd2e470bc55dbc328106d62fef2d
4
+ data.tar.gz: b3fa0eabb5dcfd9f0cc526bc275ef1f317e6a30a21d596ac7babf11661548b8c
5
5
  SHA512:
6
- metadata.gz: 81be52a64da066610e09b6fa717d13c3fe2d4f88d2fab1cc0dbf05e8621b4640d0b586201f1da1ae4f72e49b286e757eb23544bebab4d116f3eb74185b722868
7
- data.tar.gz: 0a46e4f065368b98af7cb05e5d954a43da17fa62ac2d15b16c5fcf29f1f8fb101f324252f6577d9c0396889fe38656ad4de42f37723f5f3252b6435426404759
6
+ metadata.gz: 4d339a34ffa47797bb50479b47d3d7553f52089fae368478ea6244ed47f31196eca34fd0103c22cca3a91d1bd32d1055b00d497a8e5fc71e8e6e9fc3dd2715a1
7
+ data.tar.gz: 68e46a6cf1930112069b8a850cf635cbced63988d6040c49d59f36c68b26a58f471976b8b3a4f0648d33c4ec0eaff1ca9ee6097266b6230eef9ad4d54fd45fcd
@@ -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
@@ -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: java
6
6
  authors:
7
7
  - Mike Dalessio
@@ -20,15 +20,15 @@ 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
+ name: jar-dependencies
26
27
  requirement: !ruby/object:Gem::Requirement
27
28
  requirements:
28
29
  - - '='
29
30
  - !ruby/object:Gem::Version
30
31
  version: 0.4.1
31
- name: jar-dependencies
32
32
  type: :development
33
33
  prerelease: false
34
34
  version_requirements: !ruby/object:Gem::Requirement
@@ -37,13 +37,12 @@ dependencies:
37
37
  - !ruby/object:Gem::Version
38
38
  version: 0.4.1
39
39
  - !ruby/object:Gem::Dependency
40
- force_ruby_platform: false
40
+ name: racc
41
41
  requirement: !ruby/object:Gem::Requirement
42
42
  requirements:
43
43
  - - "~>"
44
44
  - !ruby/object:Gem::Version
45
45
  version: '1.4'
46
- name: racc
47
46
  type: :runtime
48
47
  prerelease: false
49
48
  version_requirements: !ruby/object:Gem::Requirement