Using document.compatMode

To check the page rendering mode (quirks or standards).

Current rendering mode: [unknown].

Internet Explorer renders this page in quirksmode if there's anything but space BEFORE the doctype. Even comments.


Home - More stuff