code
7

Code: hasAttribute for IE

Believe it or not, this actually works. Kind of.

Element.Methods.Simulated.hasAttribute = function(element, attr) {
  return element.outerHTML.match(/^<[^>]*>/)[0].indexOf(" " + attr + "=") > -1;
};

Comments