ladybird/Libraries/LibWeb
Aliaksandr Kalenik c0e90a2a68 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-21 16:11:03 +01:00
..
Animations LibGfx: Clean up #include directives 2024-11-20 21:13:23 +01:00
ARIA
Bindings LibWeb: Make CallbackType take a realm instead of settings object 2024-11-20 18:01:21 -07: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
Crypto LibWeb: Implement ECDH.generateKey 2024-11-21 11:45:22 +01:00
CSS LibWeb: Allow custom properties in getPropertyPriority() 2024-11-21 13:16:08 +01:00
DOM LibWeb: Make CallbackType take a realm instead of settings object 2024-11-20 18:01:21 -07: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 LibWeb/Fetch: Implement blob range section of scheme fetch specification 2024-11-21 00:26:58 +00: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: Make CallbackType take a realm instead of settings object 2024-11-20 18:01:21 -07:00
IndexedDB LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Infra
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
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-21 16:11:03 +01:00
Painting LibWeb: Dispatch "click" event on input control associated with <label> 2024-11-21 16:11:03 +01:00
PerformanceTimeline LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
PermissionsPolicy
Platform LibWebSocket: Clean up #include directives 2024-11-21 14:08:33 +01:00
ReferrerPolicy
RequestIdleCallback LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
ResizeObserver LibWeb: Make CallbackType take a realm instead of settings object 2024-11-20 18:01:21 -07:00
SecureContexts
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
StorageAPI LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Streams LibWeb: Make CallbackType take a realm instead of settings object 2024-11-20 18:01:21 -07: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: Make CallbackType take a realm instead of settings object 2024-11-20 18:01:21 -07: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
XHR LibWeb/XHR: Use normalized header value when validating contents 2024-11-21 00:26:58 +00:00
XLink
XML Revert "LibWeb: Set doctype node immediately while parsing XML document" 2024-11-20 19:11:56 -05: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
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
Namespace.cpp
Namespace.h
PixelUnits.cpp
PixelUnits.h
TraversalDecision.h
TraversalOrder.h
TreeNode.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00