ladybird/Userland/Libraries/LibWeb/CodeGenerators
Andreas Kling a59b1825ce LibWeb: Basic implementation of global event handlers :^)
Document and HTMLElement now inherit from HTML::GlobalEventHandlers
which allows them to support "onfoo" event handler attributes.

These are assignable both via IDL attributes and content attributes.

Event listeners constructed this way get a special "attribute" flag
on them so we know which one to replace if you reassign them.
This also allows them to coexist with EventTarget.addEventListener().

This is all a bit sloppy, but it works decently for a first cut.
The Window object should also inherit GlobalEventHandlers, but since
we don't generate it from IDL, I haven't taken that step here.

Also this would be a lot nicer if we supported IDL mixins.
2021-02-03 23:03:05 +01:00
..
CMakeLists.txt Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Generate_CSS_PropertyID_cpp.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Generate_CSS_PropertyID_h.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Generate_CSS_ValueID_cpp.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Generate_CSS_ValueID_h.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
WrapperGenerator.cpp LibWeb: Basic implementation of global event handlers :^) 2021-02-03 23:03:05 +01:00