Open Bug 1326905 Opened 9 years ago Updated 3 years ago

Triple-click selects all text in section (several lines) in some cases

Categories

(Core :: DOM: Selection, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: arni2033, Unassigned)

Details

(Keywords: parity-chrome)

>>> My Info: Win7_64, Nightly 49, 32bit, ID 20160526082509 STR_1: (original) 1. Open http://samlib.ru/c/carenko_t_p/podpiska.shtml 2. Triple-click on word "�����" AR: All text in section (~15 lines of text) becomes selected ER: Current line should be selected STR_2: (testcase) 1. Open url [1] 2. Triple-click on word "world" in line "hello world 2" AR: All text is selected ER: Current line should be selected ("hello world 2") > [1] data:text/html,<!DOCTYPE html><span> hello world 1</span><span style="position: relative;"> hello world 2<div style="position: absolute; width: 10px; height: 10px; background: red none repeat scroll 0% 0%; right: -200px; bottom: 2px;pointer-events:none;"></div></span><span> hello world 3</span><style>span:before{display: inline;white-space: pre;font-size: 1px;line-height: 0;content: "\A ";margin-inline-end: 40px;}</style>
Component: Untriaged → Selection
Product: Firefox → Core
No longer blocks: 1277113
Mass bug change to replace various 'parity' whiteboard flags with the new canonical keywords. (See bug 1443764 comment 13.)
Keywords: parity-chrome
Whiteboard: [parity-Chrome]
Actual result confirmed on Windows 10 (64-bit), Firefox Developer Edition 61.0b12 (64-Bit). In the quoted HTML, when I change <span> tags to <p> tags, only one line is selected. Since in the HTML <p>abc def<br>ghi jkl</p> only one line is selected on triple-click, performing a line break via the CSS .element:before { content: "\A"; white-space: pre; } should prorably result in the same behavior.

Just came across this, apparently it's still happening.

Went to the following page:
https://www.php.net/manual/en/function.password-hash.php

  1. Scroll down a bit to "Example #1 password_hash() example"
  2. In the box showing the PHP code, triple-click the line with "echo password_hash ... etc." to select just that line
  3. CMD-C or CTRL-C to copy the highlighted line.
  4. In a text-editor, CMD-V or CTRL-V to paste
  5. The pasted text will also include the code comments ("We just want to hash... etc.")

MacOS Catalina (10.15 (19A583)), Firefox 69.0.3 (64-bit)

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