mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
LibWeb: Make FormAssociatedElement inherit from HTMLElement
The new event target implementation requires us to downcast an EventTarget to a FormAssociatedElement to check if the current Element EventTarget has a form owner to setup a with scope for the form owner. This also makes all form associated elements inherit from FormAssociatedElement where it was previously missing. https://html.spec.whatwg.org/#form-associated-element
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 03:20:18 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/3bb5c6207f Pull-request: https://github.com/SerenityOS/serenity/pull/12308 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/davidot Reviewed-by: https://github.com/linusg ✅
@@ -20,7 +20,7 @@
|
||||
namespace Web::HTML {
|
||||
|
||||
HTMLInputElement::HTMLInputElement(DOM::Document& document, QualifiedName qualified_name)
|
||||
: HTMLElement(document, move(qualified_name))
|
||||
: FormAssociatedElement(document, move(qualified_name))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user