1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 18:04:59 +00:00
serenity/Tests/LibWeb/Text/input/HTML/Window-named-properties-iframe.html
Andrew Kaster 64899dba44 LibWeb: Implement document-tree child navigable target name property set
This AO allows accessing child navigables by their name as named
properties on the WindowProxy object.
2023-09-22 19:55:59 -06:00

12 lines
391 B
HTML

<script src="../include.js"></script>
<iframe name="framey" src=""></iframe>
<iframe name=spices></iframe>
<script>
test(() => {
println(window.framey === window.frames[0]);
println(window.spices == window.frames[1]);
// FIXME: Test with cross-origin iframe?
// FIXME: Test with iframe that sets window.name -- this changes nothing atm
});
</script>