W3C home > Mailing lists > Public > www-validator@w3.org > March 2001

RE: Minimized P valid XHTML?

From: Thanasis Kinias <tkinias@asu.edu>
Date: Thu, 29 Mar 2001 12:01:15 -0700
To: "'Osmo Saarikumpu'" <sendosmo@hotmail.com>, shane@aptest.com, derhoermi@gmx.net
Cc: www-validator@w3.org
Message-id: <A021872EC2BDD411AB3600902746A05501604805@mainex4.asu.edu>
Osmo Saarikumpu wrote:

> Is the following document then perfectly valid, as the validator says, or
> it invalid, as it would seem to me (according to my understanding of the
> wording of the Reformulation of HTML 4 in XML 1.0):
> <h1 />Hello world!
> <q />Hello again!
> <p />Have a nice day!

That's equivalent to:

| <h1></h1>Hello world!
| <q></q>Hello again!
| <p></p>Have a nice day!

Transitional will allow the latter, since "naked" text is allowed.  Strict
will not, because text cannot be the direct child of <body>.

I'm not sure if it's legit to use the shorthand <br />-style closure on
non-empty elements, although I'm loathe to argue with the validator.  I am
pretty sure, though, that if it is legit, it doesn't mean what you intend.

Thanasis Kinias
Information Dissemination Team, Information Technology
Arizona State University
Tempe, Ariz., U.S.A.

Qui nos rodunt confundantur
et cum iustis non scribantur.
Received on Thursday, 29 March 2001 14:01:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:20 UTC