![]() |
|
![]() |
||
![]() |
![]() |
|
[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date] 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 <http://annevankesteren.nl/ >Received on Monday, 8 November 2004 18:53:42 GMT |
|
||||||||||||||||