Skip to content

refactor: Simplify iterNodes implementation#1689

Merged
damyanpetev merged 6 commits intomasterfrom
rkaraivanov/iterNodes-refactoring
May 29, 2025
Merged

refactor: Simplify iterNodes implementation#1689
damyanpetev merged 6 commits intomasterfrom
rkaraivanov/iterNodes-refactoring

Conversation

@rkaraivanov
Copy link
Copy Markdown
Member

Moved the filter logic from the JS loop into the
native TreeWalker implementation. Aside from a
potential performance boost, the code is easier
to grok.

Dropped support for digging into open shadow roots which was a workaround for igc-radios created inside another ShadowDOM boundry. Radios will now try to
resolve their siblings based on their rootNode scope instead of the main document root.

Moved the filter logic from the JS loop into the
native TreeWalker implementation. Aside from a
potential performance boost, the code is easier
to grok.

Dropped support for digging into open shadow roots
which was a workaround for igc-radios created inside
another ShadowDOM boundry. Radios will now try to
resolve their siblings based on their rootNode scope
instead of the main document root.
@damyanpetev damyanpetev merged commit f9c2ba8 into master May 29, 2025
5 checks passed
@damyanpetev damyanpetev deleted the rkaraivanov/iterNodes-refactoring branch May 29, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants