W3C home > Mailing lists > Public > www-validator@w3.org > December 2005

Re: br within form passes XHTML 1.0 transitional validation but fails HTML 4.01 transitional

From: S.Hayles <sh23@leicester.ac.uk>
Date: Tue, 6 Dec 2005 15:00:09 +0000 (GMT)
To: David Dorward <david@dorward.me.uk>
cc: "Hayles, S." <sh23@leicester.ac.uk>, www-validator@w3.org
Message-ID: <Pine.LNX.4.62.0512061452310.2769@falcon.le.ac.uk>


On Tue, 6 Dec 2005, David Dorward wrote:

> On Tue, Dec 06, 2005 at 10:57:36AM -0000, Hayles, S. wrote:
>
>> If I read the documentation correctly <br> (or <br /> as appropriate)
>
> Which documentation? References are always helpful.
>
>> cannot be directly contained within a form element, but XHTML 1.0
>> transitional validation seems to think it's OK.
>
> It is allowed under the specification (for Transitional DTDs).

Sorry, I hadn't spotted that difference between Transitional and Strict 
DTDs.

Strict:
<!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form -->
http://www.w3.org/TR/html401/sgml/dtd.html

Transitional:
<!ELEMENT FORM - - (%flow;)* -(FORM)   -- interactive form -->
http://www.w3.org/TR/html401/sgml/loosedtd.html

In which case, HTML 4.01 transitional validation shouldn't be objecting.

Steven
Received on Tuesday, 6 December 2005 15:00:40 GMT

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