1
0
Fork 0
firefox/layout/base/tests/input-stoppropagation.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
524 B
HTML

<!doctype html>
<html>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<script>
function onLoad() {
let input2 = document.getElementById("input2");
input2.addEventListener("focus", e => {
e.stopImmediatePropagation();
});
document.getElementById("input1").focus();
synthesizeKey("KEY_Tab");
synthesizeKey("KEY_Tab", {shiftKey: true});
synthesizeKey("KEY_Tab");
}
</script>
<body onload="onLoad()">
<input type="text" id="input1"></input>
<input type="text" id="input2"></input>
</body>
</html>