Open
Bug 241622
Opened 21 years ago
Updated 2 years ago
crossing boundary between link's children makes click not follow link
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Core
DOM: UI Events & Focus Handling
Tracking
()
NEW
People
(Reporter: jruderman, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
95 bytes,
text/html
|
Details |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a) Gecko/20040423
Firefox/0.8.0+
Steps to reproduce:
1. Go to http://www.google.com/search?q=qwt
2. Mouse down on a link just to the left of a bold area.
3. Move the cursor right 1-2 pixels.
4. Mouse up.
Expected: follow the link, since 1-2 pixels is below the drag threshold.
Result: nothing happens.
Reporter | ||
Comment 1•21 years ago
|
||
This testcase uses a background color to make the element boundary easier to
see.
![]() |
||
Comment 2•21 years ago
|
||
The issue here is simple. The mousedown happens on one node, the mouseup on
another. So there is no click event, since the two parts of the click happen on
different nodes. This is generally desirable, in fact.
Reporter | ||
Comment 3•17 years ago
|
||
It's not what you want for link clicks, though...
Why doesn't a mouse down on one element and a mouse up on another cause an onclick event to fire targeted at the nearest common ancestor?
OS: Windows XP → All
Hardware: PC → All
![]() |
||
Comment 4•17 years ago
|
||
Because generally you want to be able to cancel clicks by moving the mouse away before release... at least this is how most modern OSes behave.
Reporter | ||
Comment 5•17 years ago
|
||
My proposal would not cause "moving the mouse away before release" to send onclick events to links or buttons.
Similar problems occur in bug 324396, "Middle-click that crosses focus outline does not close tab".
Updated•16 years ago
|
Assignee: events → nobody
QA Contact: ian → events
Reporter | ||
Comment 6•15 years ago
|
||
I still see this bug on trunk.
Assignee | ||
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
Updated•2 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•