mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
226259dd7c
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. |
||
---|---|---|
.. | ||
AK | ||
ClangPlugins | ||
LibCompress | ||
LibCore | ||
LibCrypto | ||
LibDiff | ||
LibGC | ||
LibGfx | ||
LibJS | ||
LibMedia | ||
LibRegex | ||
LibTest | ||
LibTextCodec | ||
LibThreading | ||
LibTLS | ||
LibUnicode | ||
LibURL | ||
LibWasm | ||
LibWeb | ||
LibWebView | ||
LibXML | ||
Resources | ||
CMakeLists.txt |