hasAttribute IE <=7 Fix