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
Last Resolved: 18 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.