Bug 1929040 - [wpt-sync] Update web-platform-tests to d4fb35c4980b6581ce0535b2dac71cb...
[gecko.git] / dom / bindings / test / file_dom_xrays.html
blob3a71a3d836cdfe5a5ad5b496fc8ab676f362b4d7
1 <!DOCTYPE html>
2 <html>
3 <script>
4 document.expando = 42;
5 document.shadowedIframe = 42;
6 Object.setPrototypeOf(document, Object.create(HTMLDocument.prototype,
8 shadowedIframe: { value: 42 },
9 iframe: { value: 42 },
10 defaultView: { value: 42 },
11 addEventListener: { value: 42 },
12 toString: { value: 42 },
13 }));
14 document.documentElement.expando = 42;
15 Object.defineProperty(document.documentElement, "version", { value: 42 });
16 </script>
17 <iframe name="shadowedIframe" id="shadowedIframe"></iframe>
18 <iframe name="iframe" id="iframe"></iframe>
19 <iframe name="document" id="document"></iframe>
20 <iframe name="self" id="self"></iframe>
21 <iframe name="addEventListener" id="addEventListener"></iframe>
22 <iframe name="toString" id="toString"></iframe>
23 <iframe name="item" id="item"></iframe>
24 </html>