Re: [dom] Add EventListenerOptions and passive event listeners (#82)

>  method, when invoked, must run these steps:
>  
>  <ol>
>   <li><p>If <var>callback</var> is null, terminate these steps.
>  
> + <li>If <var>options</var> is of type boolean, let <var>capture</var> be
> + <var>options</var> and let <var>passive</var> be false.  Otherwise let
> + <var>capture</var> and <var>passive</var> be the corresponding values in the
> + <var>options</var> {{EventListenerOptions}} dictionary.

Well, they have to be defined in the algorithm anyway. Since the dictionary is not guaranteed. So the IDL has no meaningful effect. I'd be okay with comments in the IDL saying what it effectively comes down to.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/82/files#r47895665

Received on Thursday, 17 December 2015 11:32:17 UTC