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.
When applying a new href to an amchor element, adding an extra whitre-space to the begining of the href will fix this bug.