Bug 6020 - using "ondblclick" event in a table with 2+ <td>'s shouldn't cause text selection
Summary: using "ondblclick" event in a table with 2+ <td>'s shouldn't cause text selec...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2005-12-08 23:58 PST by Erick Tryzelaar
Modified: 2022-07-01 12:03 PDT (History)
8 users (show)

See Also:


Attachments
html page demonstrating the selection issue (505 bytes, text/html)
2005-12-08 23:59 PST, Erick Tryzelaar
no flags Details
Doubleclick issue also without tables (133 bytes, text/html)
2008-06-02 02:59 PDT, Jan Boeijink
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erick Tryzelaar 2005-12-08 23:58:06 PST
I'm trying to make a very simple page where you click on a <td> in order to change the color. However, I 
find that if I handle the "ondblclick", a bunch of the td is selected as what normally happens when you 
double click on a line. However, this breaks the expected functionality that I'm looking for, since my 
<td>s don't have any text in them to select. Oddly though, if I only have one <td> in a table, it works as 
expected.

-e
Comment 1 Erick Tryzelaar 2005-12-08 23:59:19 PST
Created attachment 5008 [details]
html page demonstrating the selection issue
Comment 2 Joost de Valk (AlthA) 2005-12-09 00:02:38 PST
I can reproduce this, good testcase.
Comment 3 Alexey Proskuryakov 2006-05-22 05:45:33 PDT
(In reply to comment #0)
> my <td>s don't have any text in them to select.

The attached test case has nbsp's there, but I could still reproduce this issue after removing them.

Moving to HTML Editing component (selection-related).
Comment 4 Jan Boeijink 2008-06-02 02:53:40 PDT
Very annoying. Basically you can use Ondblclick without selecting the text. I'll add a even more basic example.

In my case, I have a dynamically filled unordered list where clicking on the list-items selects parts of the body. Unfortunately, I couldn't reproduce this behaviour in a simple example yet. This works fine in Firefox.
Comment 5 Jan Boeijink 2008-06-02 02:55:16 PDT
Sorry... Basically you CAN'T use Ondblclick without selecting the text.
Comment 6 Jan Boeijink 2008-06-02 02:59:05 PDT
Created attachment 21457 [details]
Doubleclick issue also without tables
Comment 7 Brent Fulgham 2022-07-01 10:34:52 PDT
This still seems to be an issue!
Comment 8 Radar WebKit Bug Importer 2022-07-01 10:34:52 PDT
<rdar://problem/96301537>