<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<p>This test ensures that the focus ring is shown on the only anchor after tabbing out and inside the window.</p> | |
<a id="anchor" href="javascript:log('anchor was clicked')">Anchor</a> | |
<input id="input"> | |
<pre id="console"> | |
anchor was focused | |
anchor was blurred | |
input was focused | |
input was blurred | |
window was blurred | |
window was focused | |
anchor was focused | |
anchor was clicked | |
</pre> | |
<script> | |
var anchor = document.getElementById('anchor'); | |
anchor.focus(); | |
</script> | |
</body> | |
</html> |