| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @MAC-ALLOW:AXSubrole=* | 2 @MAC-ALLOW:AXSubrole=* |
| 3 --> | 3 --> |
| 4 <html> | 4 <html> |
| 5 <body> | 5 <body> |
| 6 Test for modal dialog closed in an iframe. | 6 Test for modal dialog closed in an iframe. |
| 7 <iframe scrolling="no"></iframe> | 7 <iframe scrolling="no"></iframe> |
| 8 <script> | 8 <script> |
| 9 var frameCode = | 9 var frameCode = |
| 10 '<dialog>Text in the dialog.</dialog>\n' + | 10 '<dialog>Text in the dialog.</dialog>\n' + |
| 11 '<button>I am a non-inert button!</button>\n'; | 11 '<button>I am a non-inert button!</button>\n'; |
| 12 | 12 |
| 13 var iframeDoc = document.querySelector('iframe').contentDocument; | 13 var iframeDoc = document.querySelector('iframe').contentDocument; |
| 14 iframeDoc.open(); | 14 iframeDoc.open(); |
| 15 iframeDoc.write(frameCode); | 15 iframeDoc.write(frameCode); |
| 16 iframeDoc.close(); | 16 iframeDoc.close(); |
| 17 | 17 |
| 18 var dialog = iframeDoc.querySelector('dialog'); | 18 var dialog = iframeDoc.querySelector('dialog'); |
| 19 dialog.showModal(); | 19 dialog.showModal(); |
| 20 dialog.close(); | 20 dialog.close(); |
| 21 </script> | 21 </script> |
| 22 </body> | 22 </body> |
| 23 </html> | 23 </html> |
| OLD | NEW |