Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:3819248
Created Oct 2, 2012

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" xmlns="" xml:lang="en" lang="en" xml:lang="en"><head><script type="text/javascript">
// check for ie5 mac
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
navigator.userAgent.indexOf('Mac') != -1
// check for W3CDOM compatibility
var W3CDOM = (!bugRiddenCrashPronePieceOfJunk &amp;&amp;
document.getElementsByTagName &amp;&amp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment