1
0
Fork 0
firefox/dom/bindings/test/file_dom_xrays.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

24 lines
826 B
HTML

<!DOCTYPE html>
<html>
<script>
document.expando = 42;
document.shadowedIframe = 42;
Object.setPrototypeOf(document, Object.create(HTMLDocument.prototype,
{
shadowedIframe: { value: 42 },
iframe: { value: 42 },
defaultView: { value: 42 },
addEventListener: { value: 42 },
toString: { value: 42 },
}));
document.documentElement.expando = 42;
Object.defineProperty(document.documentElement, "version", { value: 42 });
</script>
<div name="shadowedIframe" id="shadowedIframe"></div>
<div name="iframe" id="iframe"></div>
<div name="document" id="document"></div>
<div name="self" id="self"></div>
<div name="addEventListener" id="addEventListener"></div>
<div name="toString" id="toString"></div>
<div name="item" id="item"></div>
</html>