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>


--- 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:

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.


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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:35 UTC