/Antônio Gomes/:
Hmmm.... I don't think we support NodeIterator. We do support
TreeWalker.
That's bad :(. Hummm, what do you thing about getting start to implement
this support ? I mean, how hard would be implementing it ?
The TreeWalker state [1] is dependent only on its currentNode and it
could be implemented totally independent of the underlying DOM
implementation. NodeIterator state however is dependent on a
reference node [2] which could change while the underlying tree
changes which makes the NodeIterator implementation dependent on the
underlying DOM implementation, or at least the DOM should have
Mutation Events support (relying on which could be not as efficient
as using internal state control).
[1]
http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#TreeWalker-Robustness
[2]
http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Iterator-Robustness
--
Stanimir
_______________________________________________
mozilla-layout mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-layout