Re: DTD after cleanup without URL ? is it a bug ?

Bjoern Hoehrmann <[email protected]> Thu, 23 Jun 2005 00:43:04 +0200
Newsgroups gmane.comp.web.html-tidy.devel
Message-ID <[email protected]>
* Marc Gueury wrote:
>I got  a question from a tidy user saying this.
>
>After cleaning up a page, tidy add a DOCTYPE at the top that is not listed
>here : http://www.w3.org/QA/2002/04/valid-dtd-list.html
>
>For example :
> From tidy output:
>
><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
>
> From the doc above:
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>   "http://www.w3.org/TR/html4/loose.dtd">
>
>I must say that I have no idea at all if it is the URL to the dtd is
>mandatory at all. I looked in the HTML spec but did not found anything about it.
>I tried also to find this in a SGML documentation but could not find it.
>
>Should I log a bug about it ?

The system identifier is considered optional. Tidy has some logic to
determine whether it should specify one but I do not have the details
handy. http://www.w3.org/QA/2002/04/valid-dtd-list.html should probably
be clarified that the list is "incomplete" and informative.
-- 
Björn Höhrmann · mailto:[email protected] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click