What’s New

css-select v5.1.0

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 c with context b will never give any results.) If the relativeSelector option is set to false, selectors won't be absolutized and selectors can test for parent elements outside of the context.
    • See https://github.com/fb55/css-select/issues/709 for context.

https://github.com/fb55/css-select/compare/v5.0.1...v5.1.0

View original