This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23744 - Use the WebIDL callback logic in the setTimeout prose
Summary: Use the WebIDL callback logic in the setTimeout prose
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
: 19211 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-06 22:49 UTC by contributor
Modified: 2015-01-15 20:52 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2013-11-06 22:49:34 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#timers
Complete: http://www.whatwg.org/c#timers
Referrer: 

Comment:
"Call the Function. Use the third and subsequent method arguments (if any) as
the arguments for invoking the Function. Use method context proxy as the
thisArg for invoking the Function."  — we should instead stash away the
callback and use WebIDL's "invoke a callback" logic.

Posted from: 2620:0:1000:167c:70ad:5201:ebd7:23de by ian@hixie.ch
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1685.0 Safari/537.36
Comment 1 Ian 'Hixie' Hickson 2013-11-11 18:43:32 UTC
heycam, can you point me to the right place in WebIDL for this?
Comment 2 Ian 'Hixie' Hickson 2013-11-11 18:45:10 UTC
Note to self: I need to change "In this step, invoke means to run the jump to a code entry-point algorithm." in the event handler section to call into WebIDL as well, in case someone sets an event handler to a non-script.
Comment 3 Ian 'Hixie' Hickson 2013-11-11 18:46:08 UTC
*** Bug 19211 has been marked as a duplicate of this bug. ***
Comment 4 Ian 'Hixie' Hickson 2013-11-20 03:31:29 UTC
Note to self: see bug 19211 for other things to change.
Comment 5 Ian 'Hixie' Hickson 2014-08-01 20:29:33 UTC
This is currently blocked on getting changes to ES6. See:
   http://esdiscuss.org/topic/the-initialization-steps-for-web-browsers#content-32
Comment 6 Ian 'Hixie' Hickson 2014-09-08 23:55:21 UTC
https://bugs.ecmascript.org/show_bug.cgi?id=3139 "post ES6"
Comment 7 Ian 'Hixie' Hickson 2015-01-15 20:52:41 UTC
I got tired of waiting for ES to be fixed, so I've updated event handlers to call Web IDL, and we'll fix the parsing of event handlers when ES catches up.
Comment 8 contributor 2015-01-15 20:52:56 UTC
Checked in as WHATWG revision r8880.
Check-in comment: Fix callback logic to reference Web IDL and use the right conventions.
https://html5.org/tools/web-apps-tracker?from=8879&to=8880