That produces the same thing as :autofocus => 'autofocus'. I was
wondering if there would be support for Haml to output it without a
value since it's unnecessary. I don't have a problem with using either
method--I'm just bringing it up since I came across this in the HTML5
spec.

On May 12, 12:14 pm, Nathan Weizenbaum <[email protected]> wrote:
> %input{:name => "search", :autofocus => true}
>
>
>
>
>
> On Wed, May 12, 2010 at 10:03 AM, geetarista <[email protected]> wrote:
> > HTML5 has several naked attributes that do not require a value. One
> > example is autofocus:
>
> > <input name="search" autofocus>
>
> > I know that for now I can work around this in Haml by using :autofocus
> > => 'autofocus', but it would be nice to use the preferred method of
> > using these attributes. Will there be support for this in future
> > versions?
>
> > --
> > 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.
>
> --
> 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 
> athttp://groups.google.com/group/haml?hl=en.

-- 
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