Provides support for using CSS selectors to query the DOM
ancestorelement
selector
testSelf
A convenience function to emulate Y.Node's aNode.ancestor(selector).
element
HTMLElement
An HTMLElement to start the query from.
selector
String
The CSS selector to test the node against.
testSelf
Boolean
optional Whether or not to include the element in the scan
queryselector
root
firstOnly
Retrieves a set of nodes based on a given CSS selector.
selector
String
The CSS Selector to test the node against.
root
HTMLElement
optional An HTMLElement to start the query from. Defaults to Y.config.doc
firstOnly
Boolean
optional Whether or not to return only the first match.