3 <title>Test for making sure named getters don't override the unforgeable location on HTMLDocument
</title>
4 <script src=
"/resources/testharness.js"></script>
5 <script src=
"/resources/testharnessreport.js"></script>
9 /* global test, assert_equals */
11 assert_equals(document
.location
, window
.location
,
12 'The <img name="location"> should not override the location getter');
13 }, "document.location is the right thing");
15 var doc
= new DOMParser().parseFromString("<img name='location'>", "text/html");
16 assert_equals(doc
.location
, null,
17 'The <img name="location"> should not override the location getter on a data document');
18 }, "document.location is the right thing on non-rendered document");