by androceium · 5y ago · 0 comments
Looks like that psuedo-class has not been implemented in the kuchiki library that htmlq uses though.
# Find all elements li and select the parent element for each
//li/..
# Find all element nodes with a child element named li
//*[li]
# Non-abbreviated queries
/descendant::li/parent::*
/descendant::*[child::li]
# CSS using :has
:has(> li)