Unfortunately, those aren't the only differences. There are various sorts of annoying differences. In particular, as I understand it, HTML tags aren't regular - various tags have different rules for whether a closing tag is required, etc. HTML in general is a lot less regular than XML/XHTML in terms of what's valid and what's good style. Even if we could list all of the differences, I don't want to add that much special-case logic to Haml.
- Nathan ryan.sandridge wrote: > I am by far no expert at the differences in xhtml and html, so perhaps > I shouldn't be suggesting a patch for this functionality... but isn't > the primary difference between xhtml and html the self closing of > atomic tags, and the generated doctype's? > > See patch here: http://pastie.textmate.org/156722 > > Cheers, > Ryan > > On Jan 7, 11:48 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > >> No, Haml doesn't supportHTML, only XHTML.HTMLis actually really hard >> to generate, since it's so irregular - we'd have to add all sorts of >> special-case logic, which we don't want to do. >> >> - Nathan >> >> eric wrote: >> >>> hi, >>> I just converted soundcloud.com to haml. I love it, fantastic stuff. >>> Just one question: we'd actually prefer usinghtml4.01strict instead >>> of xhtml 1.0 strict. >>> How can I generate theHTML4.01doctype and also leave self-closed >>> tags (br, meta, etc) without a tailing / ? >>> >>> regards // eric (soundcloud.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 -~----------~----~----~----~------~----~------~--~---
