[Javascript] detect application/xhtml+xml?

Steven Chipman sgchipman at gmail.com
Tue May 9 16:03:07 CDT 2006


On 5/9/06, Steve Clay <sclay at ufl.edu> wrote:
> Does anyone know of a way to detect via JS whether or not the document was
> served as "application/xhtml+xml"?

- You could do a HEAD request via XHR to the document and check the
content-type header.
- MSIE exposes it via document.contentType.


steve


--
SG Chipman
slayeroffice.com



More information about the Javascript mailing list