Hassan Schroeder wrote: [...] > So make it all valid XHTML and be happy, regardless of whether > you're ultimately serving it as text/html or application/xhtml+xml :-)
Not quite. Validate to a DOCTYPE that matches the MIME type that the browser will use to parse the document -- that is, validate to XHTML if you will serve as application/xhtml+xml, or as HTML if you'll serve as text/html. Rails unfortunately generates XHTML and serves as text/html, which seems to be kind of the worst of both worlds, since it yields inconsistent results. > -- > Hassan Schroeder Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

