mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
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().
This commit is contained in:
parent
b97004ea4a
commit
c50ce2030d
Notes:
sideshowbarker
2024-07-17 02:35:27 +09:00
Author: https://github.com/awesomekling
Commit: c50ce2030d
Pull-request: https://github.com/SerenityOS/serenity/pull/19275
Reviewed-by: https://github.com/gmta ✅
3 changed files with 12 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
link element onload
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue