Does JSoup selector select right to left or left to right?

Does the JSoup selector select items from right to left or left to right?

Take 2 as an example: #id .class1

and#id > .class1

+3


source to share


1 answer


Looking at the Documentation on the website I see:

Elements resultLinks = doc.select("h3.r > a"); // direct a after h3

      



It seems to work from left to right, so it first selects each h3

and then selects the ones h3

that have after them a

.

Looking at the code seems to confirm this.

0


source







All Articles