I have some JavaScript code that defines a function getElementsByAttribute as follows:
getElementsByAttribute
Object.prototype.getElementsByAttribute = function(attr)
IE DOM elements aren't normal Javascript objects and do not inherit prototypes as you would expect.
http://perfectionkills.com/whats-wrong-with-extending-the-dom/