It would be nice if it could be put into a polyfill, preferably with the check only being done if we already know it is oldIE. The bug involves <code>.getAttribute( "href" )</code> returning the wrong value. It is supposed to return the exact href attribute value but in IE7 it instead returns the fully qualified URL. A possible check would be the following:

```js
var a = document.getElementsByTagName( "a" )[ 0 ];
return a.getAttribute( "href" ) === a.href; // returns true if has href bug
```

The resulting fix could be:

```js
a.getAttribute( "href" ).replace( window.location.href, "" );
```

Any suggestions for how to turn this into a polyfill?