W3C home > Mailing lists > Public > www-validator-cvs@w3.org > January 2009

[Bug 6449] Document Type detection from VERSION attribute

From: <bugzilla@wiggum.w3.org>
Date: Fri, 23 Jan 2009 11:13:11 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LQJyJ-00054n-Rk@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6449





--- Comment #3 from Olivier Thereaux <ot@w3.org>  2009-01-23 11:13:11 ---
(In reply to comment #2)
> > is this used anywhere? Standardized anywhere?
> 
> The DTDs for many versions of HTML, including all four flavors of HTML 2.0,
> HTML 3.2, HTML 4.01, and XHTML 1.1 all include this attribute for the HTML
> element.  

Indeed, didn't know about that one. I just checked the spec for HTML4.01, which
specifies that the VERSION attribute is deprecated as it duplicates the info
present in the DOCTYPE declaration:
http://www.w3.org/TR/html401/struct/global.html#h-7.3

So maybe what we can do is:

* if there is a DOCTYPE declaration (or override), use that
* else
    + if there is a html VERSION attribute, 
        use that as a fallback and output a warning stating that 
        DOCTYPE declaration are the prefered identification method
    + else use the default fallback document type

Will have to ping the HTML WG to check that this is sound, but I guess this is
feasible indeed.

thanks!


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 23 January 2009 11:13:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:06 GMT