Closed sjieg closed 7 years ago
Change :mode
to :match_all
. Does the result change?
That will cause the find to fail because it trying to look for an element that has all 3 of the selectors to be true,, which will be never.
According to the documentation :match_all
means that the elements found should match all the given selectors. :match_one
means that it should match any one of the given selectors. So the difference is in _all
where you expect all the elements to be given that match either one of the selectors.
Sidenote: If an element matches 2 of the 3 selectors, then it should be listed only once in the returned array.
Mhh, well, it's been a while. You'll make it work, I guess :)
multi_find_all() seems to stop looking for the other selectors once it has found a result. So if the first selector has zero results, then it will find_all for the second selector, and so on.