Add Element:hasAttribute() method