Element.Methods.Simulated

Element.Methods.Simulated allows simulating missing HTMLElement methods in non standard compliant browsers which you can then call on extended elements just as if the browser vendor had suddenly decided to implement them.

 

hasAttribute

 

hasAttribute(element, attribute) -> Boolean

 

Simulates the standard compliant DOM method hasAttribute for browsers missing it (Internet Explorer 6 and 7).

 


Prototype API 1.5.0 - prototypejs.org