blob: 0ea6c6e803ea9469f17dbb5887238293248659c5 [file] [log] [blame]
<html>
<head>
<script>
function test()
{
if (window.layoutTestController)
layoutTestController.dumpAsText();
log(document.activeElement);
document.getElementById('one').focus();
log(document.activeElement + " id: " + document.activeElement.id);
document.getElementById('two').focus();
log(document.activeElement + " id: " + document.activeElement.id);
document.getElementById('two').blur();
log(document.activeElement);
}
function log(msg)
{
document.getElementById("console").appendChild(document.createTextNode(msg + "\n"));
}
</script>
</head>
<body onload="test()">
<input id="one"><input id="two">
<br>
<pre id="console"></pre>
</body>
</html>