W3C home > Mailing lists > Public > public-html@w3.org > April 2011

Re: How to get Content-Type?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 10 Apr 2011 09:53:43 -0700
Message-ID: <4DA1E097.7090003@mit.edu>
To: nathan@webr3.org
CC: HTML WG <public-html@w3.org>
On 4/10/11 4:02 AM, Nathan wrote:
> Is there any way to get the Content-Type for the document currently
> being presented? (text/plain, text/html, etc)

Gecko implements document.contentType for this purpose, for what it's worth.

-Boris
Received on Sunday, 10 April 2011 16:54:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:24 UTC