Closed
Bug 272148
Opened 20 years ago
Closed 17 years ago
Firefox 1.0PR doesn't always execute "onclick" code when mouse is over images or text
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: josh, Unassigned)
References
Details
Attachments
(1 file)
1.24 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0PR Firefox 1.0PR doesn't always execute "onclick" code when the mouse is over images or text. However, the "onmouseup" code ALWAYS executes. Basically what I'm doing is working on my menu software (WebDDM), and trying to do stuff with "onclick" of an item (a DIV element). The onclick code for the DIV element doesn't execute if the mouse is over text or images inside the DIV. Reproducible: Always Steps to Reproduce: 1. Make a DIV element with onmousedown, onmouseup, and onclick code 2. Put a table and one cell inside the DIV tag. The order should be: div, table, tbody, tr, td 3. Put text/images inside the TD cell 4. Click on the text/images Actual Results: The onmouseup code fires but the onclick code doesn't Expected Results: The onclick code should have been executed too
Sorry to clarify this before, but I just found this out - the innerHTML of the DIV element must change for this bug to take effect. If the innerHTML changes in the onmousedown code, the onmouseup code will execute but the onclick code will not. :)
You should only report bugs on the latest stable version (1.0) or the nightlies when reporting a bug. You can get the branch and trunk nightlies from: http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/ Don't forget to backup your profile. If you don't see this bug in new versions please resolve it as WorksForMe. Thanks. Oh, and "website" is for bugs in the firefox webpages, see https://bugzilla.mozilla.org/describecomponents.cgi?product=Firefox ;)
Component: Web Site → DOM: Events
Product: Firefox → Core
Version: unspecified → 1.0 Branch
moz@liebesgedichte.siteware.ch; please be sure to pick the right *Gecko* version when you send a bug to core (gecko1.7=ff1.0) and don't forget to click reassign by component.
Assignee: bugs → events
QA Contact: ian
Version: 1.0 Branch → 1.7 Branch
Comment 4•20 years ago
|
||
Josh, could you attach a webpage showing the problem to this bug using https://bugzilla.mozilla.org/attachment.cgi?bugid=272148&action=enter ?
Here is the requested attachment. In Firefox 1.0, everything works as described in the HTML source (instructions for testing are in an HTML comment).
Comment 6•20 years ago
|
||
Ah, ok. This is happening clicking away the "mouseup" alert triggers a mouseout, which removes the text that was moused on. Since it's no longer around, there is nothing to fire the click at, so the click event is never fired. Fixing bug 234455 would fix this.
Depends on: 234455
Whiteboard: DUPEME
Comment 7•19 years ago
|
||
FYI: in Firefox 1.0.2 (Windows), clicking on the text in the red DIV works (displays both alerts). Perhaps the OP needs to recheck this, it might have been fixed.
Comment 8•19 years ago
|
||
This is an automated message, with ID "auto-resolve01". This bug has had no comments for a long time. Statistically, we have found that bug reports that have not been confirmed by a second user after three months are highly unlikely to be the source of a fix to the code. While your input is very important to us, our resources are limited and so we are asking for your help in focussing our efforts. If you can still reproduce this problem in the latest version of the product (see below for how to obtain a copy) or, for feature requests, if it's not present in the latest version and you still believe we should implement it, please visit the URL of this bug (given at the top of this mail) and add a comment to that effect, giving more reproduction information if you have it. If it is not a problem any longer, you need take no action. If this bug is not changed in any way in the next two weeks, it will be automatically resolved. Thank you for your help in this matter. The latest beta releases can be obtained from: Firefox: http://www.mozilla.org/projects/firefox/ Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html Seamonkey: http://www.mozilla.org/projects/seamonkey/
Keeping bug alive so we don't forget to check this whenever bug 234455 is fixed.
Comment 10•19 years ago
|
||
(In reply to comment #7) > FYI: in Firefox 1.0.2 (Windows), clicking on the text in the red DIV works > (displays both alerts). Perhaps the OP needs to recheck this, it might have > been fixed. Problem definitely still exists on the trunk
Comment 11•17 years ago
|
||
When I try attachment 172295 [details] with Seamonkey 1.5a rv:1.9a4pre build 2007042309 or Firefox 2.0.0.3 rv:1.8.1.3 build 20070309 under XP Pro, I get both alerts (the mouseup and click alerts) when clicking on the text.
Resolving as WORKSFORME
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Updated•17 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•