Skip to content

Instantly share code, notes, and snippets.

@stephenmathieson
Created December 11, 2013 19:12
Show Gist options
  • Save stephenmathieson/7916531 to your computer and use it in GitHub Desktop.
Save stephenmathieson/7916531 to your computer and use it in GitHub Desktop.
IE8 incorrectly reports `Object#hasOwnProperty(<table>, ':')` as true
// Element#hasOwnPropery doesn't exist in IE8
var has = Object.prototype.hasOwnProperty;
var table = document.createElement('table');
alert('this browser sucks: ' + has.call(table, ':'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment