v5.1.0
Added
- Add a relativeSelector option to control whether selectors are relative to the passed context or can match parent elements outside of the context
- Added an option to disable relative selectors (#766) 1c1f7f2
- By default, selectors are relative to the passed
context, which means that no parent elements of the context will be matched. (Eg.a b cwith contextbwill never give any results.) If therelativeSelectoroption is set tofalse, selectors won't be absolutized and selectors can test for parent elements outside of thecontext. - See https://github.com/fb55/css-select/issues/709 for context.
- By default, selectors are relative to the passed