File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -125,8 +125,8 @@ module WhiteList
125
125
border-bottom-color border-collapse border-color border-left-color
126
126
border-right-color border-top-color clear color cursor direction
127
127
display elevation float font font-family font-size font-style
128
- font-variant font-weight height letter-spacing line-height overflow
129
- pause pause-after pause-before pitch pitch-range richness speak
128
+ font-variant font-weight height letter-spacing line-height list-style-type
129
+ overflow pause pause-after pause-before pitch pitch-range richness speak
130
130
speak-header speak-numeral speak-punctuation speech-rate stress
131
131
text-align text-decoration text-indent unicode-bidi vertical-align
132
132
voice-family volume white-space width ]
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ def test_should_allow_multi_word_data_attributes
136
136
check_sanitization ( input , output , output , output )
137
137
end
138
138
end
139
-
139
+
140
140
HTML5 ::WhiteList ::ALLOWED_URI_DATA_MEDIATYPES . each do |data_uri_type |
141
141
define_method "test_should_allow_data_#{ data_uri_type } _uris" do
142
142
input = %(<a href="data:#{ data_uri_type } ">foo</a>)
@@ -291,6 +291,12 @@ def test_css_function_sanitization_leaves_whitelisted_functions_rgb
291
291
assert_match %r/rgb\( 255, 0, 0\) / , sane . inner_html
292
292
end
293
293
294
+ def test_css_function_sanitization_leaves_whitelisted_list_style_type
295
+ html = "<ol style='list-style-type:lower-greek;'></ol>"
296
+ sane = Nokogiri ::HTML ( Loofah . scrub_fragment ( html , :strip ) . to_html )
297
+ assert_match %r/list-style-type:lower-greek/ , sane . inner_html
298
+ end
299
+
294
300
def test_css_function_sanitization_strips_style_attributes_with_unsafe_functions
295
301
html = "<span style=\" width:attr(data-evil-attr)\" >"
296
302
sane = Nokogiri ::HTML ( Loofah . scrub_fragment ( html , :strip ) . to_html )
You can’t perform that action at this time.
0 commit comments