NEW 6020
using "ondblclick" event in a table with 2+ <td>'s shouldn't cause text selection
https://bugs.webkit.org/show_bug.cgi?id=6020
Summary using "ondblclick" event in a table with 2+ <td>'s shouldn't cause text selec...
Erick Tryzelaar
Reported 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
Attachments
html page demonstrating the selection issue (505 bytes, text/html)
2005-12-08 23:59 PST, Erick Tryzelaar
no flags
Doubleclick issue also without tables (133 bytes, text/html)
2008-06-02 02:59 PDT, Jan Boeijink
no flags
Erick Tryzelaar
Comment 1 2005-12-08 23:59:19 PST
Created attachment 5008 [details] html page demonstrating the selection issue
Joost de Valk (AlthA)
Comment 2 2005-12-09 00:02:38 PST
I can reproduce this, good testcase.
Alexey Proskuryakov
Comment 3 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).
Jan Boeijink
Comment 4 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.
Jan Boeijink
Comment 5 2008-06-02 02:55:16 PDT
Sorry... Basically you CAN'T use Ondblclick without selecting the text.
Jan Boeijink
Comment 6 2008-06-02 02:59:05 PDT
Created attachment 21457 [details] Doubleclick issue also without tables
Brent Fulgham
Comment 7 2022-07-01 10:34:52 PDT
This still seems to be an issue!
Radar WebKit Bug Importer
Comment 8 2022-07-01 10:34:52 PDT
Note You need to log in before you can comment on or make changes to this bug.