- From: <bugzilla@jessica.w3.org>
- Date: Sat, 20 Sep 2014 01:13:17 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26863 --- Comment #3 from Boris Zbarsky <bzbarsky@mit.edu> --- No, implementations take an instance of the NodeFilter callback interface, which always has an acceptNode method. This is a single-operation callback interface, which means you can pass in a function as an implementation of it in the ECMAScript binding. Then when acceptNode is called you end up at http://heycam.github.io/webidl/#es-user-objects step 1 substep 3, discover that IsCallable(O) is true, and set X to O. Then in step 1 substep 11 subsubstep 1 the [[Call]] of X is invoked, which calls the function in question. So in particular, in the case of comment 0 the filter will return FILTER_ACCEPT, and this is perfectly well specified by Web IDL as long as the DOM spec says to call the acceptNode method on the callback interface object. -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Saturday, 20 September 2014 01:13:18 UTC