Internet Explorer might reset Anchor's innerHTML incorrectly when a new "href" is assigned

Bug Descriptions

This bug will appear on IE6 and IE7.

When assigning a new "href" to an Anchor Element, if this Anchor Element has no childNodes except textNodes which contain strings of URI (http://foo) or Email (foo@bar), then the innerHTML of the Anchor Elemen will change to its "href" when a new "href" is applied.

Test Cases

Apply an URL to Href

Apply an Email to Href

Quick Fix

When applying a new href to an amchor element, adding an extra whitre-space to the begining of the href will fix this bug.