W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: Selectors API IDL Issues

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 01 Apr 2011 20:16:54 -0400
Message-ID: <4D966AF6.50602@mit.edu>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:44 GMT