summaryrefslogtreecommitdiffstats
path: root/content/test/data/accessibility/modal-dialog-in-iframe-opened.html
blob: 25dabeb8581160e4d13870501e013e287adab80b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!--
@MAC-ALLOW:AXSubrole=*
-->
<html>
<body>
Test for modal dialog opened in an iframe.
<iframe scrolling="no"></iframe>
<script>
var frameCode =
    '<dialog>Text in the dialog.</dialog>\n' +
    '<button>I should not be in the AT tree.</button>\n';

var iframeDoc = document.querySelector('iframe').contentDocument;
iframeDoc.open();
iframeDoc.write(frameCode);
iframeDoc.close();

var dialog = iframeDoc.querySelector('dialog');
dialog.showModal();
</script>
</body>
</html>