frameElement.sub.html

TIMEOUTExpected1 of 4 subtests pass10,720 ms

Details

Test
/html/browsers/windows/nested-browsing-contexts/frameElement.sub.html
Harness
TIMEOUT

Subtests

StatusSubtestMessage
PASSThe window's frameElement attribute must return null if it is not a nested browsing context
FAILThe window's frameElement attribute must return its container element if it is a nested browsing context
Cannot read properties of undefined (reading 'frameElement')
Cannot read properties of undefined (reading 'frameElement')
FAILThe SecurityError must be thrown if the window accesses to frameElement attribute of a Window which does not have the same effective script origin
assert_throws_dom: The SecurityError exception should be thrown. function "function() { frames["iframe_2"].frameElement; }" did not throw
assert_throws_dom: The SecurityError exception should be thrown. function "function() { frames["iframe_2"].frameElement; }" did not throw
NOTRUNThe window's frameElement attribute must return null if the container's document does not have the same effective script origin