Function hasAttr
Faster setAttribute, getAttribute
Further Specs