Open Bug 731982 Opened 13 years ago Updated 3 years ago

Clicking button before alert from onchange appears does not show alert from the button's onclick

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

10 Branch
x86_64
All
defect

Tracking

()

UNCONFIRMED

People

(Reporter: nagyi, Unassigned)

Details

Attachments

(2 files)

Attached file simple example.html
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7 Steps to reproduce: I have two input field: a text field with onchange action and a button field with onclick. Write something in the text field then immediatly press the button! Actual results: the text field onchange function calling but the button field onclick doesn't Expected results: both functions should be called
It works if remove alert();
Attachment #601940 - Attachment mime type: text/plain → text/html
2013-11-14-03-02-04-mozilla-central-firefox-28.0a1.en-US.linux-x86_64 With example2.html, both indications of events appear. With example.html, only one alert appears (the button can be clicked, as is evident from it looking pressed when hovered over).
Component: Untriaged → Event Handling
OS: Windows 7 → All
Product: Firefox → Core
Could bug 343351 be related somehow?
Summary: after onchange missing onclick → Clicking button before alert from onchange appears does not show alert from the button's onclick
Bug 440659 might be related too.
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: