- From: Ville Skyttä <ville.skytta@iki.fi>
- Date: Thu, 03 Jun 2004 00:33:29 +0300
- To: "www-validator@w3.org" <www-validator@w3.org>
On Wed, 2004-06-02 at 23:59, Jens Brueckmann wrote: > >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > >> "http://www.w3.org/TR/REC-html40/loose.dtd"> > > > > Wrong DTD for HTML 4.01 Transitional, you're specifying HTML 4.0 > > Transitional; the right one is: > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > > "http://www.w3.org/TR/html4/loose.dtd"> > > > > With that doctype, the document is valid according to the validator. > > It is, but what puzzles me is that both DTDs contain exactly the same > attributes list for the FORM element, as far as I can see. Both http://www.w3.org/TR/REC-html40/loose.dtd and http://www.w3.org/TR/html4/loose.dtd currently point to the exact same file, the HTML 4.01 Transitional DTD. > So why should Ljoha's choice of HTML 4.0 Transitional return an error > while HTML 4.01 Transitional will not? The "real" HTML 4.0 Transitional DTD is at http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd ...no "name" attribute to <form> there. Validator prefers public identifiers over system ones, and looks up if it has a local copy of a DTD corresponding to a public identifier for efficiency reasons. It "knows" (among others) both HTML 4.01 and 4.0 public id's, and silently disregards the system id (which is the root of the confusion above: HTML 4.0 Transitional public id with a HTML 4.01 Transitional system id). See also http://www.w3.org/Bugs/Public/show_bug.cgi?id=739 and the list of bugs it blocks.
Received on Wednesday, 2 June 2004 17:33:31 UTC