NEW29205
Row of text gets selected even if mouse does not touch it
https://bugs.webkit.org/show_bug.cgi?id=29205
Summary Row of text gets selected even if mouse does not touch it
Morten Norby Larsen
Reported 2009-09-11 13:05:04 PDT
Created attachment 39468 [details] Reduced example to show the problem After a double click on a word in text content, dragging the mouse to the left on the same line of text makes the selection expand to the word under the mouse. However, in the example attached, it also expands to the previous line, even if the mouse has not been dragged over it. This happens when the components of the text are included in <span> tags, see attached file selection_trouble.html To reproduce: - Open file selection_trouble.html in WebKit.app - Double click on "www.example.com" - Drag the mouse toward the left to include the part "http". Make sure the mouse stays over the second line. Result: The selection expands to include the beginning of the line "http:", but also the previous line containing the word "Header". Expected result: The selection should only expand to include the part under the mouse, i.e., "http:" without "jumping" up to the first line.
Attachments
Reduced example to show the problem (274 bytes, text/html)
2009-09-11 13:05 PDT, Morten Norby Larsen
no flags
Ahmad Saleem
Comment 1 2022-11-17 06:06:00 PST
I am able to reproduce this bug in Safari 16.1 using attached testcase and the selection just include first line while Chrome Canary 110 does not suffer from same issue. Firefox Nightly 109 selection seems weird and does not extend to allow selecting http: part. Changing status to "New" and adding few to confirm my testing. Thanks!
Note You need to log in before you can comment on or make changes to this bug.