W3C home > Mailing lists > Public > public-html@w3.org > January 2010

polyglot XHTML/HTML and <!DOCTYPE html about:legacy-compat>

From: Larry Masinter <masinter@adobe.com>
Date: Sat, 2 Jan 2010 10:51:21 -0800
To: "Henry S. Thompson" <ht@inf.ed.ac.uk>, Jirka Kosek <jirka@kosek.cz>, Toby Inkster <tai@g5n.co.uk>, David Carlisle <davidc@nag.co.uk>, "julian.reschke@gmx.de" <julian.reschke@gmx.de>
CC: "public-html@w3.org" <public-html@w3.org>
Message-ID: <C68CB012D9182D408CED7B884F441D4D30908F@nambxv01a.corp.adobe.com>
I'm working on addressing comments on my change proposal for ISSUE-56 versioning, and  I'm puzzled about the functionality

<!DOCTYPE html SYSTEM "about:legacy-compat">

which my change proposal had left in as recommended; would like some advice here. If one wanted to use a generic XML tool chain to develop and deploy such things in polyglot (both XHTML and text/html valid) documents, wouldn't the tools hiccup if the URI isn't actually resolvable?  If this was discussed before, I can't find it in the (extensive) mail archives.

 I've browsed through XML editors and found many discussions of the use of DOCTYPE in their application to editing (X)HTML, e.g.:


My reading of these is that, if there is a SYSTEM identifier, many of these editors will attempt to fetch a DTD from that URI. Am I misunderstanding?

I know about:legacy-compat was introduced for the XSLT use case, but what about the XML-editor-producing-XHTML  case? Since there is a "legacy compatibility" issue, aren't these also legacy compatibility use cases?

Letting the SYSTEM identifier in valid HTML documents actually be something which _could_ be fetched seems like the simplest fix, giving the XML editor use case as a rationale.   There is no DTD for HTML5 and no plans to produce one. There is a good explanation for why a DTD is insufficient for conformance checking for HTML5. However, allowing editors to use and define and carry DTDs and refer to them in valid documents.... is there a reason why doing that would be harmful?

(I think the change proposal needs to reference The "initial" insertion mode which gives a long list of DOCTYPEs to avoid.)

Received on Saturday, 2 January 2010 18:52:28 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:06 UTC