| <p>Focusing on the bottom input should not trigger duplicate focus events for both inputs.</p> |
| <input type="text" id="x"><br> |
| <input type="text" id="y"> |
| Bottom Input: Focus Event #1 |
| Top Input: Focus Event #1 |
| window.testRunner.dumpAsText(); |
| document.getElementById('log').appendChild(document.createTextNode(s+"\n")); |
| var topInput = document.getElementById('x'); |
| var bottomInput = document.getElementById('y'); |
| topInput.addEventListener('focus', function() { |
| log("Top Input: Focus Event #" + topCounter); |
| bottomInput.addEventListener('focus', function() { |
| log("Bottom Input: Focus Event #" + bottomCounter); |