W3C home > Mailing lists > Public > www-validator@w3.org > April 2003

RE: Validation issues

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Tue, 15 Apr 2003 08:47:55 +0300 (EEST)
To: www-validator@w3.org
Message-ID: <Pine.GSO.4.50.0304150838340.6288-100000@korppi.cs.tut.fi>

On Mon, 14 Apr 2003, Clark Alexander wrote:

> Ookey, fine. I guess you guys would know, thanks. I think I'll just
> adopt Karl's slogan and tell my students to "Be Strict To Be Cool." Or
> be semantically correct to get an A. Hmm, has less of a ring to it. :)

But what was it in your example

This is some text
<p></p>
And so is this <br />

that you expected to be reported as invalid?

The "loose" text (text not included into any container element) is
allowed in the Transitional version; it's one of the differences between
Transitional and Strict that are not directly related to presentational
elements and attributes but to an old principle of using container
elements for all text.

And <p></p> is an element with an empty string as content, and allowed by
the formal syntax, though frowned upon in the prose of specifications.
There's actually no way to disallow such a situation in the formal
syntax, if an element is allowed to contain character data directly.

The <br /> construct is an XHTML form of <br>, course, and allowed
directly as a constituent of a body element - in the Transitional version.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Tuesday, 15 April 2003 01:47:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:08 GMT