[Webkit-unassigned] [Bug 26578] New: event.currentTarget for listener registered on window should point to the window object like in Firefox
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jun 20 18:13:32 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26578
Summary: event.currentTarget for listener registered on window
should point to the window object like in Firefox
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: shadow2531 at gmail.com
CC: ap at webkit.org, arv at chromium.org
Safari 4 530.17 with WebKit-r44837
When you register an event listener on the window object, event.currentTarget
and 'this' in the callback function should point to the window object. In
Firefox, this is true. In Safari, 'this' points to the window, but
event.currentTarget points to the document instead. In Opera, they both point
to the document.
Firefox's behavior makes the most sense to me.
I asked for clarification at
<http://lists.w3.org/Archives/Public/public-html/2009Jun/0566.html>.
This affect the 'input' and 'change' events for example.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list