Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement the TreeWalker API #35

Open
Hunam6 opened this issue Feb 22, 2021 · 5 comments
Open

feat: Implement the TreeWalker API #35

Hunam6 opened this issue Feb 22, 2021 · 5 comments

Comments

@Hunam6
Copy link
Contributor

Hunam6 commented Feb 22, 2021

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

@b-fuze
Copy link
Owner

b-fuze commented Feb 23, 2021

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

@Danny-Engelman
Copy link

Danny-Engelman commented Feb 23, 2021

@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

@b-fuze
Copy link
Owner

b-fuze commented Feb 26, 2021

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

@0xAozora
Copy link

#37

@chances
Copy link

chances commented Aug 9, 2024

This issue is blocking my integration of lit-html in a project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants