nwsapi icon indicating copy to clipboard operation
nwsapi copied to clipboard

Some uses of `:has` throw "not a valid selector"

Open aayla-secura opened this issue 6 months ago • 2 comments

I found two particular use cases of the :has selector, which work fine in modern browsers but nwsapi throws an error:

  • div:has(>div) results in '>div' is not a valid selector (so having > at the start of the subselector string is treated as invalid)
  • :has(div) results in '' is not a valid selector (so having :has at the start of the selector string seems to result in it being parsed as empty)

I believe the selectors above are valid and should be supported, am I wrong?

I should say I'm using version 2.2.12

aayla-secura avatar Aug 22 '24 05:08 aayla-secura