W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] DOCTYPE shouldn't be optional (fwd)

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 9 Jul 2004 13:39:41 +0000 (UTC)
Message-ID: <Pine.LNX.4.58.0407091337330.11240@dhalsim.dreamhost.com>
On Wed, 7 Jul 2004, Malcolm Rowe wrote:
>
> Erk, yes, good point. We should still note somewhere that WF2 documents
> *can't* be 'strictly conforming', according to the definitions in the
> XHTML1.0/1.1 specs.
>
> How about:
> These XML documents may contain a DOCTYPE if desired, but this is not
> required. Note that these XML documents cannot be considered 'strictly
> conforming XHTML documents' as defined by the XHTML specification [XHTML1],
> as they contain content not defined by the XHTML specification..

Ok, merging everything everyone proposed, the spec now says:

HTML documents that use the new features described in this specification
and that are served over HTTP must be sent as text/html and must use the
following DOCTYPE: <!DOCTYPE html PUBLIC "-//WHATWG//NONSGML HTML5//EN">.

XML documents using elements from the XHTML namespace that use the new
features described in this specification and that are served over HTTP
must be sent using an XML MIME type such as application/xml or
application/xhtml+xml and must not be served as text/html. [RFC3023]

These XML documents may contain a DOCTYPE if desired, but this is not
required.

Note: Documents that use the new features described in this specification
cannot be strictly conforming XHTML or HTML4 documents, since they contain
features not defined in those specifications.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 9 July 2004 06:39:41 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC