1 <p>Focusing on the bottom input should not trigger duplicate focus events for both inputs.</p>
2 <input type="text" id="x"><br>
3 <input type="text" id="y">
6 Bottom Input: Focus Event #1
7 Top Input: Focus Event #1
13 if (window.layoutTestController)
14 window.layoutTestController.dumpAsText();
17 document.getElementById('log').appendChild(document.createTextNode(s+"\n"));
20 var topInput = document.getElementById('x');
22 var bottomInput = document.getElementById('y');
23 var bottomCounter = 0;
25 topInput.addEventListener('focus', function() {
27 log("Top Input: Focus Event #" + topCounter);
30 bottomInput.addEventListener('focus', function() {
32 log("Bottom Input: Focus Event #" + bottomCounter);