Comment Comment by lovelearning I think you just have to select the right ancestor element. news.ycombinator.com##.athing:has(a[href="user?id=example"]) seems to work. parent lovelearning 4 years ago