deno-dom icon indicating copy to clipboard operation
deno-dom copied to clipboard

feat: Implement the TreeWalker API

Open Hunam6 opened this issue 4 years ago • 5 comments

Ref: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker

Hunam6 avatar Feb 22 '21 20:02 Hunam6

Yeah, it's on the list of things to implement when I get some time.

b-fuze avatar Feb 23 '21 02:02 b-fuze

@b-fuze , I presume you also didn't do https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator ?

TreeWalker is the faster way to walk the DOM, NodeIterator only slightly slower

Traversing is SLOW

https://www.measurethat.net/Benchmarks/Show/5581/2/traverse-function-vs-nodeiterator-vs-treewalker#latest_results_block

Danny-Engelman avatar Feb 23 '21 09:02 Danny-Engelman

@Danny-Engelman no, I didn't do either of them. But TreeWalker is on the plan to to do list.

b-fuze avatar Feb 26 '21 16:02 b-fuze

#37

0xAozora avatar Apr 10 '21 18:04 0xAozora