Re: Identifying (X)HTML without MIME

> 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
  <http://annevankesteren.nl/>

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