Skip to content

Robust DOM traversal#685

Merged
feruzm merged 2 commits into
developfrom
seer/fix/dom-traversal-stability
Mar 3, 2026
Merged

Robust DOM traversal#685
feruzm merged 2 commits into
developfrom
seer/fix/dom-traversal-stability

Conversation

@sentry
Copy link
Copy Markdown
Contributor

@sentry sentry Bot commented Mar 1, 2026

Fixes ECENCY-NEXT-144C. The issue was that: Iframe element's parentNode becomes null during DOM traversal, causing TypeError when removeChild is called without null check.

  • Snapshot node.childNodes into a static array before iteration to prevent issues caused by live NodeList modifications during traversal.
  • Added a check for child.parentNode before recursing into a child node, ensuring that only attached nodes are processed and preventing errors if a handler detaches a node.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 838858

Not quite right? Click here to continue debugging with Seer.

@feruzm feruzm added the patch Bug fixes and patches (1.0.0 → 1.0.1), add this only if any packages/ have patch changes in PR label Mar 3, 2026
@feruzm feruzm merged commit cde95ff into develop Mar 3, 2026
@feruzm feruzm deleted the seer/fix/dom-traversal-stability branch March 3, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Bug fixes and patches (1.0.0 → 1.0.1), add this only if any packages/ have patch changes in PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant