ladybird/Tests/LibWeb/Text/input/link-element-onload-attribute.html

15 lines
442 B
HTML
Raw Normal View History

2025-03-18 19:28:35 +01:00
<!DOCTYPE html>
<script src="include.js"></script>
<script>
asyncTest(done => {
globalThis.done = done;
let link = document.createElement("link");
link.setAttribute("rel", "preload");
link.setAttribute("href", "valid.css");
link.setAttribute("as", "style");
link.setAttribute("onload", "println('link element onload'); done();");
document.head.appendChild(link);
});
</script>