From f186e0c91cd378b9024c71a501d2217111ac5e3d Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Wed, 1 Jul 2020 00:06:22 +0200 Subject: Add support for “start” and “reversed” attributes to ol element MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #1367 --- spec/lib/sanitize_config_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/lib') diff --git a/spec/lib/sanitize_config_spec.rb b/spec/lib/sanitize_config_spec.rb index 28a548c49..da24f67d6 100644 --- a/spec/lib/sanitize_config_spec.rb +++ b/spec/lib/sanitize_config_spec.rb @@ -13,6 +13,10 @@ describe Sanitize::Config do expect(Sanitize.fragment('

Check out:

', subject)).to eq '

Check out:

' end + it 'keeps start and reversed attributes of ol' do + expect(Sanitize.fragment('

Check out:

  1. Foo
  2. Bar
', subject)).to eq '

Check out:

  1. Foo
  2. Bar
' + end + it 'removes a without href' do expect(Sanitize.fragment('Test', subject)).to eq 'Test' end -- cgit