Not probably, searching through plaintext (which they seem to be doing) VS iterating on the DOM have vastly different amount of work behind them in terms of resources used and performance that "probably" is way underselling the difference :)
But I think it's moot, parsing HTML is not very expensive if you don't have to actually render it.