class Hpricot::Elem
def haml_attribute_pair(name, value, options)
def haml_attribute_pair(name, value, options) value = dynamic_attribute?(name, options) ? dynamic_attributes[name] : value.inspect if options[:html_style_attributes] "#{name}=#{value}" else name = name.index(/\W/) ? name.inspect : ":#{name}" "#{name} => #{value}" end end