W3C home > Mailing lists > Public > www-validator@w3.org > May 2004

Re: Valid XHTML Strict

From: David Dorward <david@dorward.me.uk>
Date: Sat, 29 May 2004 06:58:22 +0100
To: Geoffrey Sneddon <geoffers@geoffers.uni.cc>
Cc: www-validator@w3.org
Message-Id: <1085810302.7631.4.camel@localhost>

On Sat, 2004-05-29 at 01:24, Geoffrey Sneddon wrote:
> If you document is valid XHTML Strict, it gives you this code:

> Which wouldn't validate, this is stupid, you get code for your page 
> being valid, but the code you are given isn't...

There is nothing invalid about that fragment of code ...


... so presumably you are trying to put it somewhere where paragraphs
are not allowed (such as inside another paragraph).

Equally the same code with out the <p> and </p> tags would be a valid
fragment of XHTML - but if you put it as a child element of <body> it
wouldn't validate (because the <body> element accepts block elements as
its children) if you are using a Strict DTD.

David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
Received on Saturday, 29 May 2004 01:59:54 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:30:44 UTC