+1 on this patch. Presuming that developers will use a not-fully-supported doc type or else have invalid markup is not the way rails should behave. Besides, this is one of the least invasive patches I've ever seen. 80% of the people using rails will never notice it unless it's pointed out to them (but that 20% will get their valid markup if they so choose)
-Martin On 9/11/07, Geoff B <[EMAIL PROTECTED]> wrote: > > > > This all means that the trailing slash is not a part of HTML4 > specification, > > but is so widely understood by user agents that it can be used in HTML > > anytime. Why is it understood, I can't say. User agents were probably > made > > to be future-compatible to some extent. > > The article I linked to above gives the answer -- the slash actually > has a meaning in HTML that's different than the meaning in XHTML, but > browsers didn't bother to implement this behavior. > > If browsers had implemented HTML in complete compliance with the spec, > <hr/ and <hr> would be equivalent, and therefore <hr/> would be > equivalent to <hr>>. This is why pages will render fine, but fail > strict validation. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
