Open benjamingr opened 11 years ago
I'd planned to add L4 support sooner rather than later, though when I first read through the spec there were some selectors that did not fit the pattern of all L3 selectors (in terms of the ability to perform left>right evaluation as CsQuery does) and would have required some changes to the engine to support.
This one looks like it could be done easily though, this seems more or less like nicer syntax for the :has
jquery extension?
That basic example can be created using :has
.
Keep in mind, this can get quite complicated: div > !a > b
which could be dom["div"].find("a:has(b)")
. Generally, I think this is a very nice feature that would let us do interesting queries.
It would be nice if we could have support for the subject selector.
For example (from the spec):
Selects add
div
elements that have ap.warning
and all thep.warning
s themselves.