We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Cascadia seems to fail with the has psudo-class and a direct child selector
has
The following selector matches only elements that directly contain an child: a:has(> img)
a:has(> img)
var selectorTests = []selectorTest{ { `<html><a><img></img></a></html>`, "a:has(> img)", []string{ "<a><img></img></a>", }, }, ... }
selector_test.go:651: error compiling "a:has(> img)": expected identifier, found > instead
Is there any chance to get this implemented? Thanks!
Problem
Cascadia seems to fail with the
haspsudo-class and a direct child selectorFrom MDN
Cascadia test
Result
selector_test.go:651: error compiling "a:has(> img)": expected identifier, found > insteadIs there any chance to get this implemented?
Thanks!