According to the W3C Validator -- http://validator.w3.org/ -- self-
closing tags don't pass validation when the doctype is HTML 4.01
Strict, but they do pass when the doctype is HTML 4.01 Transitional.

The validator links to this article -- 
http://www.cs.tut.fi/~jkorpela/html/empty.html
-- which gives the following advice:

"If you start using XHTML features like <hr />, don't expect your
documents to validate against an HTML DOCTYPE. They need to be
converted to comply with XHTML requirements as a whole, including the
use of an XHTML DOCTYPE."


On Sep 11, 4:49 pm, "Gabe da Silveira" <[EMAIL PROTECTED]> wrote:
> On 9/11/07, Matthew Palmer <[EMAIL PROTECTED]> wrote:
>
>
>
> > Is the trailing-slash-to-auto-close output that we (are/were) discussing
> > invalid HTML 4?  I know it's something you don't often see anywhere except
> > in XML, but is it *actually* illegal in HTML?  It seems to me that, if the
> > slash is legal but just odd, we could leave the slash in an get XHTML
> > *and*
> > HTML compatibility in one hit.
>
> My impression is that it is NOT legal HTML, but I could be wrong about that.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to