Closed
Bug 2012410
Opened 4 months ago
Closed 3 months ago
`<details>` element with wrong selection for copying
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
RESOLVED
DUPLICATE
of bug 1994763
People
(Reporter: mahlzahn, Unassigned)
Details
Attachments
(1 file)
|
125 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0
Steps to reproduce:
- create following file and open with Firefox (147.0, GNOME 49.2, Wayland, Manjaro Linux)
<body>
<details>
<summary>Summary</summary>
<div>If you want it, do</div>
<code>do this<br/>do that</code>
</details>
</body>
- select with pressed mouse button the code block starting from bottom to top, but continuing a bit above the top line, not yet marking parts of
If you want it, do - copy to clipboard (either primary selection or with Ctrl+C, etc.)
Actual results:
It copies the text with the whole <details element.
Expected results:
It should copy only the text inside a code block.
| Reporter | ||
Comment 1•4 months ago
|
||
Please find here a downstream bug report with a 5 second video attached, demonstrating the issue: https://codeberg.org/forgejo/forgejo/issues/10878.
Maybe related, but they seemed different to me: 1446675, 1809494.
Comment 2•4 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Updated•4 months ago
|
Component: Widget: Gtk → DOM: Core & HTML
Comment 3•4 months ago
|
||
I believe this is the same bug as bug 1994763. And I am working on it.
Comment 4•3 months ago
|
||
Comment 5•3 months ago
|
||
This is fixed now.
Status: UNCONFIRMED → RESOLVED
Closed: 3 months ago
Duplicate of bug: 1994763
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•