Skip to content

Commit f33a25f

Browse files
committed
dep: remove patch from #3112 which has been released upstream
- fix is in libxml 2.12.5 - also update test to not rely on the presence of the patch
1 parent e994168 commit f33a25f

File tree

2 files changed

+3
-37
lines changed

2 files changed

+3
-37
lines changed

patches/libxml2/0012-parser-Fix-crash-in-xmlParseInNodeContext-with-HTML.patch

-33
This file was deleted.

test/html5/test_api.rb

+3-4
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,11 @@ def test_node_wrap_uses_parent_node_as_parsing_context_node
239239
end
240240

241241
def test_parse_in_context_of_foreign_namespace
242-
if Nokogiri.uses_libxml?("~> 2.12.0")
243-
skip_unless_libxml2_patch("0012-parser-Fix-crash-in-xmlParseInNodeContext-with-HTML.patch")
244-
end
245-
246242
# https://github.com/sparklemotion/nokogiri/issues/3112
247243
# https://gitlab.gnome.org/GNOME/libxml2/-/issues/672
244+
# released upstream in v2.12.5
245+
skip if Nokogiri.uses_libxml?(["~> 2.12.0", "< 2.12.5"])
246+
248247
doc = Nokogiri::HTML5::Document.parse("<html><body><math>")
249248
math = doc.at_css("math")
250249

0 commit comments

Comments
 (0)