adamh-sanitize 1.0.4.2 → 1.0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/sanitize.rb +1 -0
  2. metadata +1 -1
data/lib/sanitize.rb CHANGED
@@ -104,6 +104,7 @@ class Sanitize
104
104
  next
105
105
  end
106
106
 
107
+ node.raw_attributes ||= {}
107
108
  if @config[:attributes].has_key?(name)
108
109
  # Delete any attribute that isn't in the whitelist for this element.
109
110
  node.raw_attributes.delete_if do |key, value|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adamh-sanitize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4.2
4
+ version: 1.0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Grove