[whatwg] document.contentType
Boris Zbarsky
bzbarsky at MIT.EDU
Wed Jun 3 16:49:21 PDT 2009
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
More information about the whatwg
mailing list