mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 01:46:46 +02:00
EventTarget stores event handler entries under bare event names like click and error, because those keys are also used in places that need the event type rather than the IDL/content-attribute spelling. That means we cannot only reuse the stored key when synthesizing the function source for inline handlers. To handle this, prefix the name with "on".
41 KiB
41 KiB