handle attributes for IE8