Iterative traversal of DOM.
commita3d71fe606eba154b28874e725e95f102a06d0ff
authorMaxim Krizhanovsky <darhazer@gmail.com>
Wed, 19 Jan 2011 22:06:40 +0000 (19 22:06 +0000)
committerEdward Z. Yang <ezyang@mit.edu>
Wed, 19 Jan 2011 22:06:40 +0000 (19 22:06 +0000)
tree50d1a5296d94a0dad0e4d2e905d96f0d94440a00
parent77982bd61de16cca2caf16ef2b9a52f3b21695ba
Iterative traversal of DOM.

There are some deep DOMs you can hit the maximum nesting level
limit in tokenizeDOM (we've experienced this even with maximum nesting
level of 300). Here is an iterative version of the same function with
simple queue/dequeue approach.

Signed-off-by: Maxim Krizhanovsky <darhazer@gmail.com>
NEWS
library/HTMLPurifier/Lexer/DOMLex.php