jsoup icon indicating copy to clipboard operation
jsoup copied to clipboard

why ":nth-of-type(n)" doesn't support ?

Open sarika34 opened this issue 7 years ago • 2 comments

HTML contents : jsoup

Here, I need to select "dl" tag with class=summary but it is present more than one time. I applied "dl:nth-of-type(1)[class=summary]" but it is selecting all dl tags with class value as summary. Is there any other way to select a specific one out of similar elemnets ? Thanks

sarika34 avatar Jul 26 '18 13:07 sarika34

I think it's been fixed. Are there any conditions that remain abnormal?

suarez12138 avatar May 10 '21 11:05 suarez12138

Hi, I just want to add an new method nthOfType for querying the n th elements so that user can query the n th matching elements easily.

ShaokangXie avatar Apr 24 '22 17:04 ShaokangXie

Sorry for the late review. Checked in 1.16.2, works correctly. See https://try.jsoup.org/~VQJmMVxTfwHp_IkIIxEvm0--bHA

Per @suarez12138, fixed some time ago.

jhy avatar Oct 30 '23 05:10 jhy