Per HTML spec (but not what browsers do) activating accesskey ('a' in this test) should activate a link even when the element is removed from document tree.
So, activate accesskey 'a' and you should get an alert("link was activated"). Then try that again.