You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to request support for the subsequent-sibling combinator (~).
It's similar to the next sibling combinator (+), except it selects all of the sibling elements that match the right side and come after the left side match, not just the first sibling after a left-side match.
For example, if you have:
<p>one</p><imgsrc="foo"><p>two</p><p>three</p>
The selector img + p would match the "two" paragraph (I believe CssXPath already handles this correctly).
Then the selector img ~ p would match the "two" and "three" paragraphs. (Currently CssXPath fails to match anything.)
I'd like to use this in FreshRSS to filter out a bunch of junk that gets shoved into the end of every article in one of my feeds.
(I'd really like support for the :contains("Your ad here!") pseudoclass, but I figured this one was an actual standard, so it'd be a better request to start with :)
Activity
Implement ~ Subsequent-sibling
Alkarex commentedon Oct 22, 2025
@nfriedly Tests welcome #231
Implement ~ Subsequent-sibling (#231)