mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-08-01 02:06:17 -04:00
Fixes 3 failing tests in WPT /dom/events/Event-dispatch-click.html (29/33 -> 32/33) and both tests in /dom/events/no-focus-events-at- clicking-editable-content-in-link.html (1/2 -> 2/2). - Only a MouseEvent click is an activation event. - The activation target is the nearest inclusive ancestor with activation behavior (ancestors only for bubbling events), shared by ActivationState and handleClick via findClickActivationTarget. - Clicks on editable content don't activate enclosing links; mousedown focuses the editing host (CDP and WebDriver paths). - Interactive submission of a disconnected form does nothing; the programmatic form.submit() stays exempt per HTML 'cannot navigate'. The remaining Event-dispatch-click.html failure needs javascript: URL navigation. Coverage: Event-dispatch-click.html 29/33 -> 32/33, no-focus-events-at-clicking-editable-content-in-link.html 1/2 -> 2/2. No regressions across /dom/events. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>