Closed
Bug 230356
Opened 21 years ago
Closed 17 years ago
Functions bound to focus or blur events not run when event occurs on text input elements
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: alex.murray, Unassigned)
References
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7a) Gecko/20040107 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7a) Gecko/20040107 Functions bound to the focus and blur events are not run when the events occur on text input elements - bound functions run as they should when the events occur on select elements (for example). Reproducible: Always Steps to Reproduce:
Reporter | ||
Comment 1•21 years ago
|
||
Passing focus to the Select object also seems to fire an extraneous blur event before the focus event. Not sure if this is a bug.
Comment 2•21 years ago
|
||
focus events just don't bubble from text inputs. Arguably, they should not bubble at all (per the spec, they shouldn't).
Depends on: 4033
Updated•19 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•19 years ago
|
||
*** Bug 286613 has been marked as a duplicate of this bug. ***
Comment 4•17 years ago
|
||
Sure this is a bug. Doing complex forms with all events bugs is impossible. It seems that "event code" has not been reviewed since a long time ago. Bug confirmed in FF 2.0.4
Comment 5•17 years ago
|
||
Per DOM Events recommendation focus and blur events don't bubble, so capturing event listeners should be used. This bug is INVALID. (It was a bug that focus and blur events did bubble in some cases.)
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•