FWIW, an attribute like autofocus="autofocus" is perfectly valid HTML 5.
It's slightly more verbose than necessary, but it shouldn't throw any
validation errors. I don't think it's even set for deprecation.

:brad

On Thu, May 13, 2010 at 6:01 AM, Mislav Marohnić
<[email protected]>wrote:

> On Thu, May 13, 2010 at 07:28, Nathan Weizenbaum <[email protected]> wrote:
>
>> Form helpers are a completely separate thing from Haml tags. They're
>> provided by Rails and don't make any use of the Haml tag-rendering
>> infrastructure. So it's not that surprising that they don't support boolean
>> attributes.
>
>
> Also, it's worth noting that Rails 2.3 tag helpers always generate XHTML. I
> monkeypatched this in my Standardista plugin:
>
> http://github.com/mislav/standardista/blob/master/lib/standardista/rails_override.rb
>
>
> <http://github.com/mislav/standardista/blob/master/lib/standardista/rails_override.rb>I
> believe they handle some boolean tags like "checked" or "disabled", but it's
> a small whitelist and definitely doesn't support HTML5.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>



-- 
Bradley Grzesiak
co-founder, bendyworks llc
http://bendyworks.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to