Double-clicking on a word can select two words
Categories
(Core :: DOM: Selection, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fix-optional |
People
(Reporter: vincent-moz, Unassigned)
References
Details
(Keywords: regression)
Attachments
(5 files)
Comment 1•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Comment 2•9 years ago
|
||
Comment 7•9 years ago
|
||
Reporter | ||
Comment 9•6 years ago
|
||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Removing the regression keyword since it regressed with Firefox 38 and at this point, this is no longer a regression but regular bug work.
Comment 11•2 years ago
|
||
I see an issue that may be due to the same cause or may be different. If I should create a new bug, please let me know.
I have a table with several rows, two columns each. where the second column has an absolutely-positioned BUTTON on the right. The BUTTON has no text, it relies on a background image. Here's example markup for the table:
<table>
<tbody>
<tr>
<th>Label one</th>
<td>Value one<button class="copy-value" tabindex="0"></button></td>
</tr>
<tr>
<th>Label two</th>
<td>Value two</td>
</tr>
</tbody>
</table>
Here's the CSS:
td, th {
border: 1px solid #888;
min-width: 6em;
padding-right: 24px;
position: relative;
}
.copy-value {
height: 16px;
position: absolute;
right: 2px;
top: 4px;
width: 16px;
}
Result:
Double-clicking the "one" in the "Value one" column selects that word as well as the first word in the first column of the next row, the word "Label" in "Label two".
Expected result:
Only the "one" in "Value one" selected.
If I remove the BUTTON element, or set it to "display: none", the selection issue goes away. If the BUTTON element does not have "position: absolute", that also avoids the issue.
Updated•2 years ago
|
Reporter | ||
Comment 12•2 years ago
|
||
I've attached this testcase, a bit simplified. I can reproduce the bug with Firefox 101.0.1 under Debian/unstable.
Updated•2 years ago
|
Reporter | ||
Comment 13•9 months ago
|
||
This issue is still present in FF 115.8.0esr, but I cannot reproduce it in FF 123.0.1 (using the double-click-3.html testcase attached in comment #12).
Comment 14•9 months ago
|
||
In FF 123.0.1 under Win11, I can no longer reproduce the issue with the symptoms I reported, ("I have a table with several rows, two columns each...").
Description
•