diff options
author | Josh Matthews <josh@joshmatthews.net> | 2014-10-04 10:31:47 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2014-11-13 11:27:15 -0500 |
commit | 84bc17e7ad99d11ff416f2126acb2031b680dc19 (patch) | |
tree | 079ce73016a83dc75176aa8c98de3131821c2295 /tests/html/test_focus.html | |
parent | 329ba56fca3bd3808a37aae6bc3ed3c5a5d23524 (diff) | |
download | servo-84bc17e7ad99d11ff416f2126acb2031b680dc19.tar.gz servo-84bc17e7ad99d11ff416f2126acb2031b680dc19.zip |
Implement document focus context and hook it up to click events.
Diffstat (limited to 'tests/html/test_focus.html')
-rw-r--r-- | tests/html/test_focus.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/html/test_focus.html b/tests/html/test_focus.html new file mode 100644 index 00000000000..967030b2a78 --- /dev/null +++ b/tests/html/test_focus.html @@ -0,0 +1,7 @@ +<body> +<input id="focused"> +<script> + document.body.addEventListener('keydown', function() { alert("body"); }, false); + document.getElementById('focused').addEventListener('keydown', function() { alert("input"); }, false); +</script> +</body> |