blob: 0718ad5d19f81f1c05cc4bf82bf59600883b11ec [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 elementAInActiveDocumentFunction() is frame.contentDocument.getElementById('A')
Lookup named element whose name does not correspond to an element in the initial about:blank document:
PASS elementBInActiveDocumentFunction() is frame.contentDocument.getElementById('B')
PASS successfullyParsed is true
TEST COMPLETE