Re: [selectors-api] Summary of Feature Requests for v2

Mike Wilson wrote:
> My first priority would be "Matches Selector", and see to that
> it fulfills the needs for event delegation.

Is there any special functionality that would be needed to achieve this? 
  If I understand correctly, event delegation just needs to be able to 
check whether the event target element matches a given selector.  So it 
would be something like:

if (evt.target.matchesSelector(".foo>input.bar")) {
    ...
}

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/

Received on Wednesday, 23 September 2009 22:32:07 UTC