[whatwg] document.contentType

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