blob: a476f563ecac00daa4a71c4b65cd8672be99d133 [file] [log] [blame]
This tests that an inactive document can access a named element in a same-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 frame.contentDocument.getElementById('A') is not elementAInInactiveDocument
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