about summary refs log tree commit diff
path: root/spec/lib
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-07-01 00:06:22 +0200
committerThibG <thib@sitedethib.com>2020-07-01 01:02:27 +0200
commitf186e0c91cd378b9024c71a501d2217111ac5e3d (patch)
tree8ff4cf80232183e2f9edf15f874c7e3889cb76cc /spec/lib
parent814d3f343f8caae3366410900eec0b90b9bbbb7b (diff)
Add support for “start” and “reversed” attributes to ol element
Fixes #1367
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/sanitize_config_spec.rb4
1 files changed, 4 insertions, 0 deletions
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('<p>Check out:</p><ul><li>Foo</li><li>Bar</li></ul>', subject)).to eq '<p>Check out:</p><ul><li>Foo</li><li>Bar</li></ul>'
     end
 
+    it 'keeps start and reversed attributes of ol' do
+      expect(Sanitize.fragment('<p>Check out:</p><ol start="3" reversed=""><li>Foo</li><li>Bar</li></ol>', subject)).to eq '<p>Check out:</p><ol start="3" reversed=""><li>Foo</li><li>Bar</li></ol>'
+    end
+
     it 'removes a without href' do
       expect(Sanitize.fragment('<a>Test</a>', subject)).to eq 'Test'
     end