Fix test failures that occur when nokogiri is using system libxml: https://github.com/rgrove/sanitize/issues/198 Taken from upstream: https://github.com/rgrove/sanitize/commit/21da9b62baf9ea659811d92e6b574130aee57eba diff --git a/test/test_malicious_html.rb b/test/test_malicious_html.rb index 2c23074..0756de0 100644 --- a/test/test_malicious_html.rb +++ b/test/test_malicious_html.rb @@ -135,6 +135,8 @@ # The relevant libxml2 code is here: # describe 'unsafe libxml2 server-side includes in attributes' do + using_unpatched_libxml2 = Nokogiri::VersionInfo.instance.libxml2_using_system? + tag_configs = [ { tag_name: 'a', @@ -166,6 +168,8 @@ input = %[<#{tag_name} #{attr_name}='example.com'>foo] it 'should escape unsafe characters in attributes' do + skip "behavior should only exist in nokogiri's patched libxml" if using_unpatched_libxml2 + # This uses Nokogumbo's HTML-compliant serializer rather than # libxml2's. @s.fragment(input). @@ -191,6 +195,8 @@ input = %[<#{tag_name} #{attr_name}='example.com'>foo] it 'should not escape characters unnecessarily' do + skip "behavior should only exist in nokogiri's patched libxml" if using_unpatched_libxml2 + # This uses Nokogumbo's HTML-compliant serializer rather than # libxml2's. @s.fragment(input). ethod='get' action='/guix/log/gnu/packages/pretty-print.scm'>
path: root/gnu/packages/pretty-print.scm
AgeCommit message (Expand)Author
2023-09-07gnu: fmt-10: Update to 10.1.1....* gnu/packages/pretty-print.scm (fmt-10): Update to 10.1.1. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Greg Hogan
2023-09-05gnu: highlight: Update to 4.8....* gnu/packages/pretty-print.scm (highlight): Update to 4.8. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> gemmaro
2023-08-15gnu: highlight: Fix paths for Perl bindings....* gnu/packages/pretty-print.scm (highlight): Fix paths for Perl bindings. [arguments]<phases>: Set hl_data_dir and hl_conf_dir in install-perl-bindings phase. Signed-off-by: Ludovic Courtès <ludo@gnu.org> gemmaro
2023-08-15gnu: highlight: Add "gui" output....* gnu/packages/pretty-print.scm (highlight): Add gui output. [source]: Add patch for GUI data directory. [outputs]: Add gui. [arguments]<phases>{fix-search-for-lua}: Fix Lua package name for GUI. {build-gui}: Add phase to build GUI. {install}: Set PREFIX variable. {install-gui}: Add phase to install GUI. [inputs]: Add qtbase-5. * gnu/packages/patches/highlight-gui-data-dir.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Signed-off-by: Ludovic Courtès <ludo@gnu.org> gemmaro
2023-08-15gnu: highlight: Use new package style....* gnu/packages/pretty-print.scm (highlight) Use new package style. [arguments]: Use G-expression. Drop trailing #t from phases. [source, inputs, native-inputs, description]: Reformat with guix style. Signed-off-by: Ludovic Courtès <ludo@gnu.org> gemmaro
2023-08-15gnu: highlight: Update to 4.7....* gnu/packages/pretty-print.scm (highlight): Update to 4.7. Signed-off-by: Ludovic Courtès <ludo@gnu.org> gemmaro
2023-06-26gnu: a2ps: Update to 4.15.5....* gnu/packages/pretty-print.scm (a2ps): Update to 4.15.5. Signed-off-by: Christopher Baines <mail@cbaines.net> Andy Tai
2023-06-25gnu: fmt: Update to 10.0.0....* gnu/packages/pretty-print.scm (fmt-10): New variable. (fmt-9): Inherit from fmt-10. (fmt-8): Inherit from fmt-9. (fmt-8.0, fmt-7): Inherit from fmt-8. (fmt-6): Inherit from fmt-7. (fmt): New variable. Liliana Marie Prikler