The behavior of host objects
is due to ECMA262 implementation dependent and set attribute by setAttribute()
method may fail.
I see two solutions:
soft: element.data = "http://www.google.com";
hard: remove object from DOM tree and create new one with changed data attribute.