Open Bug 1323985 Opened 8 years ago Updated 2 years ago

Double-click multi-line string selects only the line, not whole string

Categories

(Core :: DOM: Selection, defect)

50 Branch
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: msvitek, Unassigned)

Details

Attachments

(1 file)

Attached image afterdoubleclick.jpg
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 Build ID: 20161201181357 Steps to reproduce: Have a textarea element and add a long string to it without spaces or special chars so it goes on multiple lines. For example: <textarea style="width=10px;">ffffffffffffffffffffffffffffffffffffffffffffffffffff</textarea> Try selecting the string by double clicking it. It happens on both Linux FF (50.0.2) and Windows 10 FF Actual results: Double click on multi-line string selects only the actual line on which you are clicking. See the attached screenshot. Expected results: It should have selected the whole string spanning multiple lines.
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Component: Untriaged → Selection
Product: Firefox → Core

I can confirm this for firefox version 76.0 (64-bit) Linux.

I can confirm this for firefox version 76.0 (64-bit) Linux.

This has to do with the break-word setting.

Reproduce:

  1. https://www.w3schools.com/cssref/tryit.asp?filename=trycss3_word-wrap
  2. double click on "thisisaveryveryveryveryveryverylongword" broken spread over multiple lines: only the line that was double-clicked is selected.

Expected result: the whole word is selected.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: