Skip to content

Conversation

@karlseguin
Copy link
Collaborator

This solves two issues. First, it's more correct, the indexers should be live. Second, it makes sure that anything with an HTMLCollection prototype, like HTMLOptionsCollection, also gets access to the index getters.

We could solve the 2nd issue by making postAttach work up the prototype chain, but since postAttach is wrong (not live), I prefer this solution.

This solves two issues. First, it's more correct, the indexers should be live.
Second, it makes sure that anything with an HTMLCollection prototype, like
HTMLOptionsCollection, also gets access to the index getters.

We could solve the 2nd issue by making `postAttach` work up the prototype
chain, but since postAttach is wrong (not live), I prefer this solution.
@karlseguin karlseguin merged commit 5eac1a1 into main Sep 29, 2025
10 checks passed
@karlseguin karlseguin deleted the html_collection_indexed_accessor branch September 29, 2025 07:17
@github-actions github-actions bot locked and limited conversation to collaborators Sep 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants