If, on css we have:
#divitis>*
So I believe, it (the browser) will start reading all elements and then, check the #divitis element, so, it will go from right to left.
cf. Why do browsers match CSS selectors from right to left?
My question is:
Does anyone knows if the children()
jquery function works similarly, when we do:
$('#divitis').children()
Will it work from right to left:
- Check all elements child of the child of the child;
- Check all elements that are child of the child;
- Check all elements that are child;
- Grab the first children of #divitis;
OR, from left to right:
- Scan all elements and search from #divitis;
- Scan the first children of divitis;
Thanks in advance.