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)

x86
Windows 95
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 3140

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.
Please ignore the first attachment (http://bugzilla.mozilla.org/showattachment.cgi?attach_id=29141). I uploaded the wrong file.
Reassigning to joki, I think this is a dup...
Assignee: jst → joki
Component: DOM HTML → DOM Events
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
VERIFIED dup
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: