NEW 254655
event.relatedTarget is null in blur event handler when button is clicked
https://bugs.webkit.org/show_bug.cgi?id=254655
Summary event.relatedTarget is null in blur event handler when button is clicked
qwant94
Reported 2023-03-29 02:22:59 PDT
Created attachment 465657 [details] html file for demonstrate behavior event.relatedTarget doesn't set in correctly when blur event occures. Example of that behavior included in attachment index.html file. tested on browserstack 12.1 - 16.3 and in real 16.4
Attachments
html file for demonstrate behavior (974 bytes, text/html)
2023-03-29 02:22 PDT, qwant94
no flags
qwant94
Comment 1 2023-03-29 02:30:01 PDT
In Chrome 111 and Firefox 110 event.relatedTarget is not null (HTML Button Element in case of attachment)
Radar WebKit Bug Importer
Comment 2 2023-04-05 02:23:16 PDT
Ryosuke Niwa
Comment 3 2023-05-02 16:06:55 PDT
This is because button is not mouse focusable by default in Safari.
Note You need to log in before you can comment on or make changes to this bug.