Open
Bug 516774
Opened 16 years ago
Updated 3 years ago
Invalid onclick event handler execution order when BODY is involved.
Categories
(Core :: DOM: Events, defect, P5)
Tracking
()
UNCONFIRMED
People
(Reporter: ninzya, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
See the URL i have attached.
Reproducible: Always
Steps to Reproduce:
1. Open the URL i have attached.
2. Click the "Click me" link.
3. See the result.
Actual Results:
[onclick] A
[onclick] B
[onclick] STRONG
[onclick] DIV
[onclick] HTML
[onclick] undefined
> executing default
Expected Results:
[onclick] A
[onclick] B
[onclick] STRONG
[onclick] DIV
[onclick] BODY
[onclick] HTML
> executing default
Updated•16 years ago
|
Component: General → DOM: Events
Product: Firefox → Core
QA Contact: general → events
Comment 1•16 years ago
|
||
I confirm the bug/error on
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; it; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
output following the url
------------------------
[onclick] A
[onclick] B
[onclick] STRONG
[onclick] DIV
[onclick] HTML
[onclick] undefined
> executing default
Comment 2•16 years ago
|
||
In Gecko onfoo listeners on <body> are added to window.
And I believe that happens in some cases also in other browsers.
At least onload should be added to window.
HTML5 draft specifies some parts of this, but not quite sure if it still needs
some clarifications.
http://www.whatwg.org/specs/web-apps/current-work/#the-body-element-0
Comment 3•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•