summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/focus/support/activeelement-after-immediately-focusing-same-site-iframe-inner-contentwindow.html
blob: 7d47e7ecb9b19364396c02365307bc7a08079651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Inner document</title>
</head>
<body>
<h1>Inner</h1>
<script>
document.body.onfocus = function() {
    // Commented out pending resolution of
    // https://github.com/whatwg/html/issues/6209
    // parent.postMessage("innerbodyfocus,", "*");
}
document.body.onblur = function() {
    parent.postMessage("innerbodyblur,", "*");
}
</script>
</body>
</html>