Created
June 9, 2011 20:23
-
-
Save searls/1017637 to your computer and use it in GitHub Desktop.
What to do when you can't edit the markup, but the markup doesn't have a doctype defined, and you don't want IE7/8 to enable quirks mode.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if($.browser.msie && document.compatMode === 'BackCompat') { | |
document.write('<!DOCTYPE html>'+document.documentElement.outerHTML); | |
history.go(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment