diff --git a/lib/html2haml/html.rb b/lib/html2haml/html.rb
index <HASH>..<HASH> 100644
--- a/lib/html2haml/html.rb
+++ b/lib/html2haml/html.rb
@@ -387,14 +387,20 @@ module Haml
       def dynamic_attributes
         @dynamic_attributes ||= begin
           Hash[attr_hash.map do |name, value|
-            next if value == ""
-            full_match = nil
-            ruby_value = value.to_s.gsub(%r{<haml_loud>\s*(.+?)\s*</haml_loud>}) do
-              full_match = $`.empty? && $'.empty?
-              CGI.unescapeHTML(full_match ? $1: "\#{#{$1}}")
+            if value == ""
+              [nil, nil]
+            else
+              full_match = nil
+              ruby_value = value.to_s.gsub(%r{<haml_loud>\s*(.+?)\s*</haml_loud>}) do
+                full_match = $`.empty? && $'.empty?
+                CGI.unescapeHTML(full_match ? $1: "\#{#{$1}}")
+              end
+              if ruby_value == value
+                [nil, nil]
+              else
+                [name.to_s, full_match ? ruby_value : %("#{ruby_value}")]
+              end
             end
-            next if ruby_value == value
-            [name.to_s, full_match ? ruby_value : %("#{ruby_value}")]
           end]
         end
       end
Fixed ruby<I> Hash[nil] deprecated warinigs

In ruby <I>, Hash[nil] makes following warnings.

    dynamic.rb:3: warning: wrong element type nil at 0 (expected array)
    dynamic.rb:3: warning: ignoring wrong elements is deprecated, remove them explicitly
    dynamic.rb:3: warning: this causes ArgumentError in the next release

This commit fixes the warnings.