[Webkit-unassigned] [Bug 258610] New: Clicking a link inside a contenteditable=false element sets the target of the focusin event to the contenteditable
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 27 23:58:43 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=258610
Bug ID: 258610
Summary: Clicking a link inside a contenteditable=false element
sets the target of the focusin event to the
contenteditable
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: brian at birchill.co.jp
Created attachment 466839
--> https://bugs.webkit.org/attachment.cgi?id=466839&action=review
Test case
The attached test case looks like the following:
```
<div id=div contenteditable=false tabindex=0>
<a href="#yer">Yer</a>
</div>
<script>
div.addEventListener('focusin', (evt) => {
console.log(evt.target);
});
</script>
```
Clicking the link in Firefox or Chrome triggers a `focusin` event with the target set to the <a> element.
In Safari 16.5 and TP, the `target` is set to the `<div>`.
Furthermore, without the `tabindex=0`, no focusin event is dispatched in Safari, although it is in Firefox and Chrome.
--
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/20230628/f7a3d7ef/attachment.htm>
More information about the webkit-unassigned
mailing list