mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
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. |
||
---|---|---|
.. | ||
Attribute.h | ||
CharacterData.cpp | ||
CharacterData.h | ||
CharacterData.idl | ||
Comment.cpp | ||
Comment.h | ||
Comment.idl | ||
Document.cpp | ||
Document.h | ||
Document.idl | ||
DocumentFragment.cpp | ||
DocumentFragment.h | ||
DocumentFragment.idl | ||
DocumentType.cpp | ||
DocumentType.h | ||
DocumentType.idl | ||
DOMImplementation.cpp | ||
DOMImplementation.h | ||
DOMImplementation.idl | ||
Element.cpp | ||
Element.h | ||
Element.idl | ||
ElementFactory.cpp | ||
ElementFactory.h | ||
Event.cpp | ||
Event.h | ||
Event.idl | ||
EventDispatcher.cpp | ||
EventDispatcher.h | ||
EventListener.cpp | ||
EventListener.h | ||
EventTarget.cpp | ||
EventTarget.h | ||
EventTarget.idl | ||
Node.cpp | ||
Node.h | ||
Node.idl | ||
NonDocumentTypeChildNode.h | ||
NonElementParentNode.h | ||
ParentNode.cpp | ||
ParentNode.h | ||
Position.cpp | ||
Position.h | ||
Range.cpp | ||
Range.h | ||
Range.idl | ||
ShadowRoot.cpp | ||
ShadowRoot.h | ||
ShadowRoot.idl | ||
Text.cpp | ||
Text.h | ||
Text.idl | ||
Timer.cpp | ||
Timer.h | ||
Window.cpp | ||
Window.h |