contenteditable="plaintext-only" changes selection behavior
Categories
(Core :: DOM: Selection, defect)
Tracking
()
People
(Reporter: bsder, Unassigned)
References
(Depends on 1 open bug)
Details
Attachments
(1 file)
189 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0
Steps to reproduce:
I have a table with contenteditable="true". When I select a cell and then press "Ctrl-A" all the cells of the table get selected. This is what I consider to be correct behavior.
If, however, I use contenteditable="plaintext-only", I select a cell, press "Ctrl-A", and a bunch of stuff outside the table also becomes selected. I believe this is incorrect.
Note that Chrome does not behave like this.
Actual results:
More text than the table entries got selected.
Expected results:
Only table cell entries should have been selected.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Selection' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•1 year ago
|
Updated•1 year ago
|
Reporter | ||
Comment 3•1 year ago
|
||
This bug gets even weirder.
Even if you manually select the cells correctly, paste behavior still fails.
Comment 4•7 months ago
|
||
(In reply to Sean Feng [:sefeng] from comment #2)
Created attachment 9352052 [details]
testcase.htmlYeah I can repo, NI myself to take a look
https://bugzilla.mozilla.org/show_bug.cgi?id=1291467 is still open.
Comment 5•7 months ago
|
||
Setting the bug dependency, so when bug 1291467 is done, we remember to verify this.
Comment 6•12 days ago
|
||
Fixed in the Nightly channel.
Updated•12 days ago
|
Description
•