lib/sanitize/css.rb in sanitize-5.1.0 vs lib/sanitize/css.rb in sanitize-5.2.0

- old
+ new

@@ -173,11 +173,11 @@ prop = property!(node) preceded_by_property = !prop.nil? next prop when :semicolon - # Only preserve the semicolon if it was preceded by a whitelisted + # Only preserve the semicolon if it was preceded by an allowlisted # property. Otherwise, omit it in order to prevent redundant semicolons. if preceded_by_property preceded_by_property = false next node end @@ -294,10 +294,10 @@ prop end # Returns `true` if the given node (which may be of type `:url` or - # `:function`, since the CSS syntax can produce both) uses a whitelisted + # `:function`, since the CSS syntax can produce both) uses an allowlisted # protocol. def valid_url?(node) type = node[:node] if type == :function