|Summary:||Add a function to element to check whether it matches a CSS selector|
|Product:||WebKit||Reporter:||Sam Weinig <sam>|
|Severity:||Normal||CC:||diego.perini, gianni, john.david.dalton, kangax|
|Version:||528+ (Nightly build)|
|OS:||OS X 10.6|
Description Sam Weinig 2009-09-24 00:09:00 PDT
As is being discussed for v2 of the Selectors API, we should add a function to Element to check if it matches a selector (Element.webkitMatchesSelector). Mozilla is also working on this (https://bugzilla.mozilla.org/show_bug.cgi?id=518003).
Comment 1 Sam Weinig 2009-09-24 00:14:50 PDT
Created attachment 40048 [details] patch Implement Element.webkitMatchesSelector.
Comment 2 Sam Weinig 2009-09-24 10:48:15 PDT
Landed in r48723.
Comment 3 Sam Weinig 2009-09-24 15:41:21 PDT
Created attachment 40087 [details] modified version of jressig's test
Comment 4 Diego Perini 2009-10-05 08:34:07 PDT