esquery icon indicating copy to clipboard operation
esquery copied to clipboard

Broken selectors after exactNode

Open lukaw3d opened this issue 1 year ago • 1 comments

Add more tests for https://github.com/estools/esquery/pull/145 that show these selectors do not work correctly

  • :has(>BlockStatement>ExpressionStatement)
  • :has(>BlockStatement ExpressionStatement)

but there are workarounds:

  • :has(>BlockStatement:has(>ExpressionStatement))
  • :has(>BlockStatement:has(ExpressionStatement))

lukaw3d avatar Aug 03 '24 19:08 lukaw3d

An attempt to fix it: https://github.com/estools/esquery/pull/148

lukaw3d avatar Aug 06 '24 18:08 lukaw3d