[Webkit-unassigned] [Bug 267449] `document.activeElement` for an `onclick` on a `<input type=checkbox>` returns HTMLBodyElement instead of HTMLInputElement
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 12 03:39:13 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=267449
--- Comment #2 from Karl Dubost <karlcow at apple.com> ---
https://html.spec.whatwg.org/multipage/interaction.html#dom-documentorshadowroot-activeelement-dev
Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
For the purposes of this API, when a child navigable is focused, its container is focused within its parent's active document. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240112/c9f6bbfc/attachment-0001.htm>
More information about the webkit-unassigned
mailing list