selector-css2-debug.js revision 93e7d06d2c6eca3a7b6910ad473b09e9dcc0a15c
21c6ea459a2245c14e71f85b7cd3d160f75ff19eSatyen Desai * The selector module provides helper methods allowing CSS2 Selectors to be used with DOM elements.
21c6ea459a2245c14e71f85b7cd3d160f75ff19eSatyen Desai * @module dom
21c6ea459a2245c14e71f85b7cd3d160f75ff19eSatyen Desai * @submodule selector-css2
SelectorCSS2 = {
_reRegExpTokens: /([\^\$\?\[\]\*\+\-\.\(\)\|\\])/,
SORT_RESULTS: true,
_re: {
attr: /(\[[^\]]*\])/g,
operators: {
'': function(node, attr) { return Y.DOM.getAttribute(node, attr) !== ''; }, // Just test for existence of attribute
pseudos: {
var ret = [],
nodes = [],
id,
if (token) {
} else if (className) {
while (child) {
return ret;
result = [],
path,
pass,
test;
path = null;
if (j && !pass) {
while (tmpNode &&
continue testLoop;
path = null;
if (firstOnly) {
return result;
return result;
combinators: {
direct: true
direct: true
_parsers: [
test;
re: /^\s*([>+~]|\s)\s*/,
if (Y.Selector.useNative && Y.config.doc.querySelector) {