-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Problem
Cascadia seems to fail with the has psudo-class and a direct child selector
From MDN
The following selector matches only elements that directly contain an
child:
a:has(> img)
Cascadia test
var selectorTests = []selectorTest{
{
`<html><a><img></img></a></html>`,
"a:has(> img)",
[]string{
"<a><img></img></a>",
},
},
...
}Result
selector_test.go:651: error compiling "a:has(> img)": expected identifier, found > instead
Is there any chance to get this implemented?
Thanks!
antifuchs
Metadata
Metadata
Assignees
Labels
No labels