On Mon, Nov 23, 2009 at 10:00 PM, Eric Meyer <[email protected]> wrote:
> Self-closing tags aren't "required" in HTML5, but I always thought > they made more sense. I keep them in all my HTML5 code (most of what I > do these days), and it isn't because I have to validate as XML - it is > because it makes the document more readable. That's because you're used to doing XHTML. Which is fine. But seriously, <meta content="en-us" http-equiv="Content-Language" /> is barely visually different from: <meta content="en-us" http-equiv="Content-Language"> and the number of tags which self-close in XHTML is so small that if you know what they mean, you can keep them in your head. If you know HTML well, this code should look ridiculous to you: <br>content here</br> So why do you need the trailing slash to tell you not to expect nested content after a <br>? You don't - it was never included for readability, it was included for compatibility with XML. I would go so far as to say it was included *despite* the fact that it made documents uglier and less readable. But I started working with HTML 3.0 so I guess that's my bias. :) In any event, this is a solved problem in the latest Haml, if you want HTML5 self-closing tags just use Haml's default settings and "!!! 5" for your doctype. --Norman -- 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.
