choojs / nanomorph

🚅 - Hyper fast diffing algorithm for real DOM nodes
MIT License
726 stars 58 forks source link

document.createTreeWalker #68

Open indus opened 7 years ago

indus commented 7 years ago

Have you considered to use document.createTreeWalker or document.createNodeIterator for DOM traversal? I like the API but it is hardly ever used and I just wonder why.

yoshuawuyts commented 7 years ago

Oh, I didn't know about those! Sounds like they might save us a bunch of code if they work well. Think the trickiest part would be to make sure iteration keeps working when reordering nodes. Would be cool to see a patch experimenting with these methods :D

On Wed, May 31, 2017, 10:18 Stefan Keim notifications@github.com wrote:

Have you considered to use document.createTreeWalker or document.createNodeIterator for DOM traversal? I like the API but it is hardly ever used and I just wonder why.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yoshuawuyts/nanomorph/issues/68, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWlegHa186lL9M2zemcj1P7GReBZnjdks5r_SJngaJpZM4NrTqj .