Actually, I just tried your line: haml_tag :div,
nil, :class=>'clearfloat'
but I got a haml error
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.collect
vendor/gems/haml-1.9.0/lib/haml/precompiler.rb:470:in
`build_attributes'
vendor/gems/haml-1.9.0/lib/haml/helpers.rb:295:in `haml_tag'
It's no big deal, I can go back to the other way, but if people are
trying to do this with 1.9 maybe there should be an option to use an
HTML self-closing tags list to check if the element should be self-
closed.