Firefox considers just unselected node when window.getSelection() is called
Categories
(Core :: DOM: Selection, defect)
Tracking
()
People
(Reporter: littleendu, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Steps to reproduce:
Using this document:
<html>
<body>
<span>Foo</span>
<span>Foo</span>
</body>
</html>
Select both spans then, without releasing left click, move to unselect one of the spans. Your selection should look like " Foo" or "Foo ".
Now calling window.getSelection()
will have both the anchorNode
and focusNode
be one of the <span>
s
Actual results:
Incorrect window.getSelection()
result
Expected results:
window.getSelection()
returns the #text
node as anchorNode
/focusNode
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Win32' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•4 years ago
|
||
The severity field is not set for this bug.
:jimm, could you have a look please?
For more information, please visit auto_nag documentation.
![]() |
||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Description
•