blob: 2225ddf61ffea2de3d057253504ed1929ae5ca49 [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<script type="text/ecmascript">
<![CDATA[
function changeColor(evt) {
evt.target.setAttribute('fill', 'green');
evt.stopPropagation();
evt.preventDefault();
if (window.layoutTestController)
window.setTimeout("layoutTestController.notifyDone()", 0);
}
function sendClick() {
if (window.eventSender) {
eventSender.mouseMoveTo(50, 50);
eventSender.mouseDown();
eventSender.mouseUp();
}
}
if (window.layoutTestController)
layoutTestController.waitUntilDone();
window.setTimeout("sendClick()", 0);
]]>
</script>
</defs>
<a xlink:href="javascript:void(document.getElementById('rect').style.fill='red')">
<rect id='rect' onclick="changeColor(evt)" width='100' height='100' fill='orange' />
</a>
</svg>