Improve the way that attributes are parsed in IE