Rails 3 uses HTML5 by default, which does not include the closing "/>" in
self-closing tags. If you want to use XHTML, you must set the :format option
to :xhtml.

On Fri, Dec 17, 2010 at 1:00 PM, Raving Genius
<[email protected]<rg%[email protected]>
> wrote:

> I have a Rails 3 app, and I'm trying to generate the strictest markup
> possible. I have the following in my layout:
>
> @@@
> !!! 5
> %html
>  %head
>    %meta{ :charset => 'utf-8' }/
> @@@
>
> which generates:
>
> @@@
> <!DOCTYPE html>
> <html>
>  <head>
>    <meta charset='utf-8'>
> @@@
>
> How do I get the meta tag to self-close?
>
> --
> 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 at http://groups.google.com/group/haml?hl=en.

Reply via email to