Does JSoup selector select elements from right-to-left or left-to-right?
Take the 2 as example: #id .class1
and #id > .class1
Does JSoup selector select elements from right-to-left or left-to-right?
Take the 2 as example: #id .class1
and #id > .class1
Looking at the Documentation on the website, I see:
Elements resultLinks = doc.select("h3.r > a"); // direct a after h3
It seems like it must work from left to right, so it first selects every h3
and then it selects those h3
which have an a
after them.
Looking at the code seems to confirm this.