W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2009

[whatwg] document.contentType

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 03 Jun 2009 19:49:21 -0400
Message-ID: <4A270C01.4090908@mit.edu>
Jo?o Eiras wrote:
> I think the major advantage of document.contentType is to know the value 
> of the Content-Type header (without charset) sent by the server.

That's not what document.contentType returns in Gecko, though... 
(especially if the server-sent value was empty, or didn't parse as a 
valid content-type header).  What's the use case for knowing what the 
server sent, as opposed to what the UA is treating the page as?

-Boris
Received on Wednesday, 3 June 2009 16:49:21 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:12 UTC