3 ms·
> .someclass[[ancestor::.mainEntry .headline:empty]] > or maybe you would prefer > .mainEntry[[.headline:empty]] .someclass I don't really know xpath but isn
by Izkata 6mo ago
> .someclass[[ancestor::.mainEntry .headline:empty]]
> or maybe you would prefer
> .mainEntry[[.headline:empty]] .someclass
I don't really know xpath but isn't that this?
.mainEntry:has(.headline:empty) .someClass
- bryanrasmussen 6mo agoD'oh! right, got lost in trying to think up a situation nowadays where you can't really do a meaningful query that takes all DOM context into account. Not sure if all edge cases are not actually handled by has and is, actually.