W3C home > Mailing lists > Public > www-html@w3.org > November 2004

Re: Identifying (X)HTML without MIME

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Mon, 08 Nov 2004 19:53:24 +0100
Message-ID: <418FC0A4.1040900@annevankesteren.nl>
To: James Cerra <jfcst24_public@yahoo.com>
CC: www-html@w3.org

> Now HTML was origionally designed for transport over
> the web via HTTP and identification via MIME types. 
> However, there are cases where (X)HTML may be
> transmitted with no MIME type information available. 
> e.g. Reading a file from a FAT disk or though standard
> io.  I'm writing a program where this type of
> situation may come up.  The specs are silent on the
> issue, so: What are the recommendations for
> identifying the document's type when MIME or HTTP is 
> not available?

Mozilla uses the file extension. '.xhtml' (and maybe '.xht') means XHTML 
  and '.html', '.htm' means HTML.

I guess that is the only safe way to do such a thing.

  Anne van Kesteren
Received on Monday, 8 November 2004 18:53:42 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:09 UTC