1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00
serenity/Userland/Libraries/LibWeb/DOM
Andreas Kling 51b33b5678 LibWeb: Implement basic retargeting of body/frameset event handlers
The HTML spec tells has some special rules for <body> and <frameset>
elements' onfoo event handler attributes. In some cases, the implicitly
generated event listeners should end up on the relevant global object
instead of the element itself.

This patch implements the first part of that behavior.
2021-09-19 13:08:30 +02:00
..
AbortController.cpp LibWeb: Add initial support for AbortController and AbortSignal 2021-09-02 09:12:17 +02:00
AbortController.h LibWeb: Rename DOM::Window::document() => associated_document() 2021-09-09 21:25:10 +02:00
AbortController.idl LibWeb: Add initial support for AbortController and AbortSignal 2021-09-02 09:12:17 +02:00
AbortSignal.cpp LibWeb: Add initial support for AbortController and AbortSignal 2021-09-02 09:12:17 +02:00
AbortSignal.h LibWeb: Rename DOM::Window::document() => associated_document() 2021-09-09 21:25:10 +02:00
AbortSignal.idl LibWeb: Add initial support for AbortController and AbortSignal 2021-09-02 09:12:17 +02:00
Attribute.h LibWeb: Move Attribute into the DOM namespace 2021-09-16 01:39:47 +02:00
CharacterData.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CharacterData.h LibWeb: Make Node.textContent more spec compliant 2021-09-06 02:36:04 +02:00
CharacterData.idl LibWeb: Add [LegacyNullToEmptyString] to CharacterData.data 2021-09-06 02:18:53 +02:00
Comment.cpp LibWeb: Rename DOM::Window::document() => associated_document() 2021-09-09 21:25:10 +02:00
Comment.h LibWeb: Add constructors for Text, DocumentFragment and Comment 2021-09-06 02:18:41 +02:00
Comment.idl LibWeb: Add constructors for Text, DocumentFragment and Comment 2021-09-06 02:18:41 +02:00
Document.cpp LibWeb: Add DOM::Document::is_active() 2021-09-19 13:08:30 +02:00
Document.h LibWeb: Add DOM::Document::is_active() 2021-09-19 13:08:30 +02:00
Document.idl LibWeb: Implement ParentNode.children 2021-09-14 02:09:18 +02:00
DocumentFragment.cpp LibWeb: Rename DOM::Window::document() => associated_document() 2021-09-09 21:25:10 +02:00
DocumentFragment.h LibWeb: Add constructors for Text, DocumentFragment and Comment 2021-09-06 02:18:41 +02:00
DocumentFragment.idl LibWeb: Implement ParentNode.children 2021-09-14 02:09:18 +02:00
DocumentType.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
DocumentType.h LibWeb: Add createDocument and createDocumentType for DOMImplementation 2021-05-04 22:59:15 +01:00
DocumentType.idl Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
DOMException.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
DOMException.idl LibWeb: Add support for optional default values and optional bools in IDL 2021-04-11 18:27:52 +02:00
DOMImplementation.cpp LibWeb: Add createDocument and createDocumentType for DOMImplementation 2021-05-04 22:59:15 +01:00
DOMImplementation.h LibWeb: Add createDocument and createDocumentType for DOMImplementation 2021-05-04 22:59:15 +01:00
DOMImplementation.idl LibWeb: Add createDocument and createDocumentType for DOMImplementation 2021-05-04 22:59:15 +01:00
Element.cpp LibWeb: Make StyleValue::to_color() take a Node instead of the Document 2021-09-17 23:06:45 +02:00
Element.h LibWeb: Make the innerHTML setter spec compliant 2021-09-14 02:09:18 +02:00
Element.idl LibWeb: Implement ParentNode.children 2021-09-14 02:09:18 +02:00
ElementFactory.cpp LibWeb: Add a bare-bones SVG <g> element 2021-09-18 01:39:59 +02:00
ElementFactory.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Event.cpp LibWeb: Remove unused header includes 2021-08-01 08:10:16 +02:00
Event.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
Event.idl LibWeb: Add Event.initEvent 2021-04-11 18:27:52 +02:00
EventDispatcher.cpp LibWeb: Rename DOM::Window::document() => associated_document() 2021-09-09 21:25:10 +02:00
EventDispatcher.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
EventListener.cpp LibJS: Rename Function => FunctionObject 2021-06-27 22:36:04 +02:00
EventListener.h LibJS: Rename Function => FunctionObject 2021-06-27 22:36:04 +02:00
EventTarget.cpp LibWeb: Implement basic retargeting of body/frameset event handlers 2021-09-19 13:08:30 +02:00
EventTarget.h LibWeb: Move onfoo attribute handling to EventTarget 2021-09-19 01:43:27 +02:00
EventTarget.idl LibWeb: Implement EventTarget.dispatchEvent 2021-05-04 23:41:44 +01:00
ExceptionOr.h LibWeb: Make ExceptionOr capable of holding all error types in the spec 2021-06-27 12:49:49 +01:00
HTMLCollection.cpp LibWeb: Implement a slow but functional HTMLCollection :^) 2021-04-22 21:21:46 +02:00
HTMLCollection.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
HTMLCollection.idl LibJS: Rewrite most of Object for spec compliance :^) 2021-07-04 22:07:36 +01:00
Node.cpp LibWeb: Implement HTML fragment serialisation and use it in innerHTML 2021-09-14 02:09:18 +02:00
Node.h LibWeb: Add fast_is<HTMLTemplateElement>() 2021-09-16 01:39:47 +02:00
Node.idl LibWeb: Implement Node.isEqualNode(Node? otherNode) 2021-09-13 12:54:24 +02:00
NonDocumentTypeChildNode.h LibWeb: Use default instead of an empty constructor/destructor 2021-09-16 17:17:13 +02:00
NonElementParentNode.h LibWeb: Use default instead of an empty constructor/destructor 2021-09-16 17:17:13 +02:00
ParentNode.cpp LibWeb: Implement ParentNode.children 2021-09-14 02:09:18 +02:00
ParentNode.h LibWeb: Implement ParentNode.children 2021-09-14 02:09:18 +02:00
Position.cpp LibWeb: Remove unnecessary DOM::Position destructor 2021-09-08 11:14:29 +02:00
Position.h LibWeb: Remove unnecessary DOM::Position destructor 2021-09-08 11:14:29 +02:00
ProcessingInstruction.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ProcessingInstruction.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ProcessingInstruction.idl LibWeb: Add ProcessingInstruction node 2021-04-06 21:42:00 +02:00
Range.cpp LibWeb: Rename DOM::Window::document() => associated_document() 2021-09-09 21:25:10 +02:00
Range.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Range.idl LibWeb: Add constructor to Range IDL interface 2021-02-17 23:45:07 +01:00
ShadowRoot.cpp LibWeb: Make the innerHTML setter spec compliant 2021-09-14 02:09:18 +02:00
ShadowRoot.h LibWeb: Make the innerHTML setter spec compliant 2021-09-14 02:09:18 +02:00
ShadowRoot.idl LibWeb: Make the innerHTML setter spec compliant 2021-09-14 02:09:18 +02:00
Text.cpp LibWeb: Rename DOM::Window::document() => associated_document() 2021-09-09 21:25:10 +02:00
Text.h LibWeb: Add constructors for Text, DocumentFragment and Comment 2021-09-06 02:18:41 +02:00
Text.idl LibWeb: Add constructors for Text, DocumentFragment and Comment 2021-09-06 02:18:41 +02:00
Timer.cpp LibJS: Rename Function => FunctionObject 2021-06-27 22:36:04 +02:00
Timer.h LibJS: Rename Function => FunctionObject 2021-06-27 22:36:04 +02:00
Window.cpp LibWeb: Make requestAnimationFrame() work in multi-process mode 2021-09-13 02:03:06 +02:00
Window.h LibWeb: Make requestAnimationFrame() work in multi-process mode 2021-09-13 02:03:06 +02:00