| This tests that an inactive document cannot access a named element in a cross-origin active document. |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| Lookup named element whose name corresponds to an element in the initial about:blank document: |
| PASS elementAInDetachedWindowFunction() is elementAInInactiveDocument |
| |
| Lookup named element whose name does not correspond to an element in the initial about:blank document: |
| PASS elementBInDetachedWindowFunction() threw exception ReferenceError: Can't find variable: B. |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |