1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
content / test / data / accessibility / html / modal-dialog-and-iframes.html [blame]
<!DOCTYPE html>
<html>
<body>
<p>Text outside the dialog.</p>
<dialog>
<p>Text in the dialog.</p>
<iframe srcdoc="
<p>Text in normal iframe</p>
<iframe srcdoc='<p>Text in nested normal iframe</p>'></iframe>
"></iframe>
</dialog>
<iframe srcdoc="
<p>Text in inert iframe</p>
<iframe srcdoc='<p>Text in nested inert iframe</p>'></iframe>
"></iframe>
<script>
document.querySelector('dialog').showModal();
</script>
</body>
</html>