1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:57:44 +00:00

LibWeb: Move onfoo attribute handling to EventTarget

This logic was kept in the GlobalEventHandlers mixing for sharing
between Document and HTMLElement, but there are other interfaces who
need to support `onfoo` attribute event listeners as well.
This commit is contained in:
Andreas Kling 2021-09-19 01:38:14 +02:00
parent ae59d8a728
commit 824be02cb0
4 changed files with 55 additions and 55 deletions

View file

@ -53,6 +53,9 @@ public:
Function<void()> legacy_pre_activation_behavior;
Function<void()> legacy_cancelled_activation_behavior;
HTML::EventHandler event_handler_attribute(FlyString const& name);
void set_event_handler_attribute(FlyString const& name, HTML::EventHandler);
protected:
explicit EventTarget(Bindings::ScriptExecutionContext&);