Skip to content

Commit

Permalink
dep: remove patch from #3112 which has been released upstream
Browse files Browse the repository at this point in the history
- fix is in libxml 2.12.5
- also update test to not rely on the presence of the patch
  • Loading branch information
flavorjones committed Feb 4, 2024
1 parent e994168 commit f33a25f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 37 deletions.

This file was deleted.

7 changes: 3 additions & 4 deletions test/html5/test_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,11 @@ def test_node_wrap_uses_parent_node_as_parsing_context_node
end

def test_parse_in_context_of_foreign_namespace
if Nokogiri.uses_libxml?("~> 2.12.0")
skip_unless_libxml2_patch("0012-parser-Fix-crash-in-xmlParseInNodeContext-with-HTML.patch")
end

# https://github.com/sparklemotion/nokogiri/issues/3112
# https://gitlab.gnome.org/GNOME/libxml2/-/issues/672
# released upstream in v2.12.5
skip if Nokogiri.uses_libxml?(["~> 2.12.0", "< 2.12.5"])

doc = Nokogiri::HTML5::Document.parse("<html><body><math>")
math = doc.at_css("math")

Expand Down

0 comments on commit f33a25f

Please sign in to comment.