Skip to content
Advertisement

Tag: dom4

When to use NodeIterator

Benchmark compares QSA & .forEach vs a NodeIterator Now either NodeIterator’s suck or I’m doing it wrong. Question: When should I use a NodeIterator ? In case you don’t know, DOM4 specifies what NodeIterator is. Answer It’s slow for a variety of reasons. Most obviously is the fact that nobody uses it so quite simply far less time has been

Advertisement