blob: dc32bcc30213cae1bc454209b79482b1d3e7c5bf [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../../resources/js-test.js"></script>
<iframe id="testFrame"></iframe>
<script>
description("Tests that looking up a frame by id returns the iframe element and not its contentWindow.");
onload = function() {
shouldBe("testFrame", "document.getElementById('testFrame')");
shouldBeEqualToString("testFrame.name", "");
shouldBeEqualToString("testFrame.id", "testFrame");
}
</script>
</body>
</html>