This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html Multipage: http://www.whatwg.org/C#event-handler-attributes Complete: http://www.whatwg.org/c#event-handler-attributes Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/ Comment: Incorrect scope chain for window event handlers (should not include document) Posted from: 98.110.194.132 by bzbarsky@mit.edu User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:31.0) Gecko/20100101 Firefox/31.0
Created attachment 1456 [details] Testcase This interoperably alerts "Body load handler scope chain: window" in Safari, IE, Firefox, and Chrome, while per the spec as written right now it should be alerting "Body load handler scope chain: document". We need to fix the spec here. The scope chain for the handler always starts with the event target, which in this case is the window. Then if the event target is an element the scope chain includes the document and maybe the form.
Checked in as WHATWG revision r8595. Check-in comment: Try to make event handler scope chains more accurate. http://html5.org/tools/web-apps-tracker?from=8594&to=8595
Is the new text sufficient? I'm not sure I'm using the JS spec terminology right.
I don't know about that part either, offhand, but apart from that question looks good.
Marking fixed; anyone who sees a problem with the text should please feel free to reopen or file a new bug.