Created
December 11, 2013 19:12
-
-
Save stephenmathieson/7916531 to your computer and use it in GitHub Desktop.
IE8 incorrectly reports `Object#hasOwnProperty(<table>, ':')` as true
This file contains 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
// 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