Closed
Bug 73940
Opened 24 years ago
Closed 24 years ago
this object in BODY click handler is not document.body and not an HTMLBodyElement
Categories
(Core :: DOM: Events, defect)
Tracking
()
People
(Reporter: martin.honnen, Assigned: joki)
Details
Attachments
(2 files)
With M0.8.1 I get strange results with
<body onclick="alert('this == document.body: ' + (this == document.body) + ';
this.nodeName: ' + this.nodeName + '; this.constructor: ' + this.constructor +
'; this.innerHTML: ' + this.innerHTML);">
When I click the body the alert shows that
this == document.body
is
false
that
this.nodeName
is
undefined
that
this.constructor
is
Object
and not
HTMLBodyElement
and that innerHTML is undefined.
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
Please ignore the first attachment
(http://bugzilla.mozilla.org/showattachment.cgi?attach_id=29141). I uploaded the
wrong file.
Reporter | ||
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
Reassigning to joki, I think this is a dup...
Assignee: jst → joki
Component: DOM HTML → DOM Events
Assignee | ||
Comment 5•24 years ago
|
||
Yes, a dupe for a while. The object in question that's being hit is the window,
which until 6.0 was always analogous with the body.
*** This bug has been marked as a duplicate of 3140 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•