HTMLElement in IE does NOT support hasAttribute(name) because IE does not play with DOM Level 2 methods. So, use getAttribute(name) != null instead of hasAttribute(name).
P.S. Similarly, use attributes.length > 0 instead of hasAttributes().
and she wants to . slow . down
HTMLElement in IE does NOT support hasAttribute(name) because IE does not play with DOM Level 2 methods. So, use getAttribute(name) != null instead of hasAttribute(name).
P.S. Similarly, use attributes.length > 0 instead of hasAttributes().