- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Fri, 01 Apr 2011 20:16:54 -0400
- To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
- CC: public-webapps <public-webapps@w3.org>, Cameron McCormack <cam@mcc.id.au>
On 4/1/11 4:51 PM, Lachlan Hunt wrote: > [Supplemental] > interface Element { > Element querySelector(in DOMString selectors, in optional any > ... > } This adds another method to Element.prototype > [NoInterfaceObject] > interface NodeSelector { > Element querySelector(in DOMString selectors, in optional any > ... > }; > Element implements NodeSelector This adds a new interface called NodeSelector and says that any instance of Element must implement this interface. But it does not add to Element.prototype; the method goes on the mixin prototype object. See http://www.w3.org/TR/WebIDL/#host-object-mixin-prototype [NoInterfaceObject] just means there is no window.NodeSelector. -Boris
Received on Saturday, 2 April 2011 00:17:30 UTC