ladybird/Libraries/LibWeb
Aliaksandr Kalenik 226259dd7c LibWeb: Dispatch "click" event on input control associated with <label>
For example, in the following HTML:
```html
<label>
    <input type="radio" name="fruit" value="apple" id="radio1">
    <span class="box"></span>
</label>
```

When any descendant of a <label> element is clicked, a "click" event
must be dispatched on the <input> element nested within the <label>, in
addition to the "click" event dispatched on the clicked descendant.

Previously, this behavior was implemented only for text node descendants
by "overriding" the mouse event target using `mouse_event_target()` in
the TextPaintable. This approach was incorrect because it was limited to
text nodes, whereas the behavior should apply to any box. Moreover, the
"click" event for the input control must be dispatched *in addition* to
the event on the clicked element, rather than redirecting it.
2024-11-20 21:31:13 +01:00
..
Animations LibGfx: Clean up #include directives 2024-11-20 21:13:23 +01:00
ARIA Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Bindings LibWeb: Add MediaSourceExtensions events 2024-11-18 10:58:21 +00:00
Clipboard LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Compression LibCompress: Don't assume zlib header is available right away 2024-11-18 19:55:46 -05:00
Cookie Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Crypto LibWeb: Update spec implementation for SubtleCrypto.deriveKey() 2024-11-15 18:51:15 +01:00
CSS LibWeb: Plumbing for svg stroke-dashoffset 2024-11-20 15:57:37 +01:00
DOM LibWeb: Make default document readiness be "complete" 2024-11-20 16:20:28 +01:00
DOMParsing LibWeb: Make Node::is_text() return true for CDATASection nodes 2024-11-19 19:24:37 +00:00
DOMURL LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Encoding LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
EntriesAPI LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
EventTiming LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Fetch LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
FileAPI LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Geometry LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
HighResolutionTime LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
HTML LibWeb: Mark image elements for layout before firing their load event 2024-11-20 19:04:37 +01:00
IndexedDB LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Infra Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Internals LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
IntersectionObserver LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Layout LibGfx: Clean up #include directives 2024-11-20 21:13:23 +01:00
Loader LibWeb: Properly escape URL on error page 2024-11-17 22:14:14 +01:00
MathML LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
MediaCapabilitiesAPI LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
MediaSourceExtensions LibWeb: Add MediaSourceExtensions events 2024-11-18 10:58:21 +00:00
MimeSniff Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
MixedContent LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
NavigationTiming LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Page LibWeb: Dispatch "click" event on input control associated with <label> 2024-11-20 21:31:13 +01:00
Painting LibWeb: Dispatch "click" event on input control associated with <label> 2024-11-20 21:31:13 +01:00
PerformanceTimeline LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
PermissionsPolicy Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Platform LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
ReferrerPolicy Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
RequestIdleCallback LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
ResizeObserver LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
SecureContexts Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Selection LibWeb: Make Selection APIs throw on DocumentType node inputs 2024-11-16 14:39:55 +01:00
ServiceWorker LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
SRI Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
StorageAPI LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Streams LibWeb: Add the IDL for the GenericTransformStream mixin 2024-11-17 22:37:45 +01:00
SVG LibWeb: Plumbing for svg stroke-dashoffset 2024-11-20 15:57:37 +01:00
UIEvents LibWeb: Use WindowProxy instead of Window in UI Events IDL 2024-11-17 23:47:24 +01:00
UserTiming LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
WebAssembly LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
WebAudio LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
WebDriver LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
WebGL LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
WebIDL LibWeb: Add a couple ad-hoc BufferSource AOs 2024-11-17 22:37:45 +01:00
WebSockets LibWeb: Add WebSocket task source 2024-11-15 23:18:10 +01:00
WebVTT LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Worker Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
XHR LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
XLink Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
XML LibWeb: Set doctype node immediately while parsing XML document 2024-11-20 16:10:57 +01:00
CMakeLists.txt LibWeb: Add layout objects for fieldset and legend 2024-11-19 14:31:03 +01:00
Dump.cpp LibWeb/CSS: Make :has() take a <relative-selector-list> 2024-11-14 19:51:45 +01:00
Dump.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Forward.h LibWeb: Add layout objects for fieldset and legend 2024-11-19 14:31:03 +01:00
idl_files.cmake LibWeb: Implement the DecompressionStream interface 2024-11-17 22:37:45 +01:00
InvalidateDisplayList.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Namespace.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Namespace.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
PixelUnits.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
PixelUnits.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
TraversalDecision.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
TraversalOrder.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
TreeNode.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00