Skip to content

Frame jumping breaks instanceOf#166

Merged
adamchaboryk merged 4 commits into
ryersondmp:dev-5.0.8from
itmaybejj:master
Jun 15, 2026
Merged

Frame jumping breaks instanceOf#166
adamchaboryk merged 4 commits into
ryersondmp:dev-5.0.8from
itmaybejj:master

Conversation

@itmaybejj

Copy link
Copy Markdown
Contributor

This is specific to live editing using fixedRoots across iframes: anything that checks against instanceOf returns false because the inner DOM nodes are not instances of anything in the wrapper page.

OMG debugging this stumped both me and Opus for hours. Stuff would just randomly not get detected in the iframe, even with identical DOM.

Comment thread src/js/utils/find.js Outdated
if (State.option.fixedRoots) {
root.push(State.option.fixedRoots);
// fixedRoots are an array of objects with a fixedRoot and a positioner.
root.push(State.option.fixedRoots.map((entry) => entry?.fixedRoot).filter(Boolean));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change if anybody else is using fixedRoots.

@adamchaboryk
adamchaboryk changed the base branch from master to dev-5.0.8 June 15, 2026 15:05
@adamchaboryk
adamchaboryk merged commit decc8c3 into ryersondmp:dev-5.0.8 Jun 15, 2026
3 checks passed
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.

2 participants