You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pro Tip:
Like for XPath, query() supports a variable number of CSS queries.
In addition, XPaths and CSS Selectors can be mixed in the same query.
$food('//title', 'chapters > chapter');
The supported CSS selectors are:
#id
.class
E[attr="val"]
*
:root
namespace|E
E E
E > E
E + E
E ~ E
E , E
Note:
Remember that CSS selectors are translated internally to XPath and this operation adds some overhead. If you need the best performances possible, go with XPath.