ladybird/Tests/LibWeb/Text/input/HTML/ShadowRealm-DOM-event.html
Shannon Booth 218ac86b67 LibWeb: Use relevant principal settings for HighResolutionTime
Fixes a crash when setting the timestamps when creating a DOM event
within a ShadowRealm.
2024-11-30 11:55:11 +01:00

8 lines
242 B
HTML

<script src="../include.js"></script>
<script>
test(() => {
const shadowRealm = new ShadowRealm();
const result = shadowRealm.evaluate(`() => new Event("My DOM Event").type;`)();
println(result);
});
</script>