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

Rewrite ID caching for correctness and maybe speed #3668

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

domenic
Copy link
Member

@domenic domenic commented Jan 21, 2024

document.getElementById() now properly returns the first element with the given ID in tree order.

document.getElementById() now properly returns the first element with the given ID in tree order.
@domenic
Copy link
Member Author

domenic commented Jan 21, 2024

I believe this is a performance regression at the moment because of the additional root node lookup that becomes necessary. I'm investigating caching root nodes, although maybe there's a way to avoid that sort of thing entirely...

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

Successfully merging this pull request may close these issues.

None yet

1 participant