ladybird/Tests/LibWeb/Text/input/link-element-onload-attribute.html
Andreas Kling c50ce2030d LibWeb: Allow event handler attributes on HTMLLinkElement
We were neglecting to set up event handlers for these due to a missing
call to the base class in HTMLLinkElement::parse_attribute().
2023-06-06 09:06:27 +02:00

9 lines
328 B
HTML

<script src="include.js"></script>
<script>
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')");
document.head.appendChild(link);
</script>