[Webkit-unassigned] [Bug 27019] window.getSelection().focusNode is null with onfocus handler registered

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jul 30 10:22:36 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=27019

Ahmad Saleem <zlip.792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zlip.792 at gmail.com

--- Comment #5 from Ahmad Saleem <zlip.792 at gmail.com> ---
Latest test results across all browsers:

*** Safari 15.6 on macOS ***

> Clicking on 'Red' padding

window.getSelection():
window.getSelection().focusNode: null


> Clicking on 'Blue' padding

window.getSelection():
window.getSelection().focusNode: [object Text]
window.getSelection().focusNode.parentNode: [object HTMLDivElement]

*** Chrome Canary 106 *** [MATCH WITH SAFARI]

> Clicking on 'Red' padding

window.getSelection():
window.getSelection().focusNode: null


> Clicking on 'Blue' padding

window.getSelection():
window.getSelection().focusNode: [object Text]
window.getSelection().focusNode.parentNode: [object HTMLDivElement]

*** Firefox Nightly 105 ***

> Clicking on 'Red' padding

window.getSelection():
window.getSelection().focusNode: [object Text]
window.getSelection().focusNode.parentNode: [object HTMLDivElement]


> Clicking on 'Blue' padding

window.getSelection():
window.getSelection().focusNode: [object Text]
window.getSelection().focusNode.parentNode: [object HTMLDivElement]

___________

I am not sure on web-spec but just wanted to share latest results across all browsers using attached test case. Thanks!

-- 
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/20220730/34a07ff7/attachment-0001.htm>


More information about the webkit-unassigned mailing list