ladybird/Tests/LibWeb/Text/input/link-element-onload-attribute.html
2025-03-20 11:50:49 +01:00

14 lines
442 B
HTML

<!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>