[jQuery] attr() does not return undefined in IE8
I've just discovered a slight compatibility issue with the IE8 beta
when running in the default standards mode. The following code should
return undefined, but it actually returns an empty string:
<html>
<div>hello</div>
<script type="text/javascript" src="jquery-1.2.6.js"></script>
<script type="text/javascript">
alert($("div").attr("doesnotexist"));
</script>
</html>
It works correctly when running in IE7 emulation mode.