Bug 254655 - event.relatedTarget is null in blur event handler when button is clicked
Summary: event.relatedTarget is null in blur event handler when button is clicked
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 16
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-03-29 02:22 PDT by qwant94
Modified: 2023-05-02 16:07 PDT (History)
6 users (show)

See Also:


Attachments
html file for demonstrate behavior (974 bytes, text/html)
2023-03-29 02:22 PDT, qwant94
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description qwant94 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
Comment 1 qwant94 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)
Comment 2 Radar WebKit Bug Importer 2023-04-05 02:23:16 PDT
<rdar://problem/107650876>
Comment 3 Ryosuke Niwa 2023-05-02 16:06:55 PDT
This is because button is not mouse focusable by default in Safari.