3 document.designMode = "on";
4 // Write out the link instead of putting it in the source. The changes necessary to make links accept a caret aren't made until a layout happens. This is a bug.
5 document.write("This is an <a id='link' href='http://www.google.com/'>editable link</a>.");
7 if (window.layoutTestController) {
8 var link = document.getElementById("link");
9 var x = link.offsetLeft + link.offsetParent.offsetLeft + link.offsetWidth / 2;
10 var y = link.offsetTop + link.offsetParent.offsetTop + link.offsetHeight / 2;
14 eventSender.mouseMoveTo(x, y);
15 eventSender.mouseDown();
16 eventSender.mouseUp();