fb55/domutils

What's the difference between find and findAll?

thorn0 opened this issue · 2 comments

Seems like findAll does the same thing as find called with recurse=true and limit=Infinity, but it has a separate implementation. Both are deep-first. Am I missing something and are they supposed to do different things?

fb55 commented

findAll is supposed to be a bit faster than find.

Also findAll' finds only tags while find` can be used to find nodes of any type.