.hasAttribute() does not work on IE8 as expected, MKWS-309