diff --git a/rubygem-loofah.spec b/rubygem-loofah.spec
index bd02cdf..5b6aa02 100644
--- a/rubygem-loofah.spec
+++ b/rubygem-loofah.spec
@@ -2,7 +2,7 @@
Name: rubygem-%{gem_name}
Version: 2.18.0
-Release: 1
+Release: 2
Summary: Manipulate and transform HTML/XML documents and fragments
License: MIT
URL: https://github.com/flavorjones/loofah
@@ -10,6 +10,7 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone https://github.com/flavorjones/loofah.git && cd loofah
# git archive -v -o loofah-2.10.0-test.tar.gz v2.10.0 test/
Source1: https://github.com/flavorjones/loofah/archive/refs/tags/v2.18.0.tar.gz
+Patch0: support-libxml2-2.10.4-backported.patch
BuildRequires: ruby(release) rubygems-devel rubygem(nokogiri) >= 1.6.6.2 rubygem(minitest)
BuildRequires: rubygem(crass) rubygem(rr) ruby
BuildArch: noarch
@@ -30,6 +31,7 @@ Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version} -b1
+%patch0 -p1
%build
gem build ../%{gem_name}-%{version}.gemspec
@@ -60,6 +62,9 @@ popd
%doc %{gem_instdir}/SECURITY.md
%changelog
+* Mon Aug 14 2023 zouzhimin Foo BOLD Foo BOLD
Foo BOLD
", whitewashed.xpath("/html/body/*").to_s + else + assert_equal "Foo BOLD
", whitewashed.xpath("/html/body/*").to_s +diff --git a/test/integration/test_scrubbers.rb b/test/integration/test_scrubbers.rb +index c8636a3..ed86b1b 100644 +--- a/test/integration/test_scrubbers.rb ++++ b/test/integration/test_scrubbers.rb +@@ -69,7 +69,7 @@ class IntegrationTestScrubbers < Loofah::TestCase + doc = Loofah::HTML::Document.parse "#{WHITEWASH_FRAGMENT}" + result = doc.scrub! :whitewash + +- ww_result = Nokogiri.uses_libxml?("<2.9.11") ? WHITEWASH_RESULT : WHITEWASH_RESULT_LIBXML2911 ++ ww_result = (Nokogiri.uses_libxml?("<2.9.11") || Nokogiri.uses_libxml?(">=2.10.4")) ? WHITEWASH_RESULT : WHITEWASH_RESULT_LIBXML2911 + assert_equal ww_result, doc.xpath("/html/body").inner_html + assert_equal doc, result + end +@@ -248,7 +248,7 @@ class IntegrationTestScrubbers < Loofah::TestCase + doc = Loofah::HTML::DocumentFragment.parse "