[Bug 6449] Document Type detection from VERSION attribute

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 UTC