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

fix(runtime): fix NotFoundError in addStyle function with referenceNode parent check #6107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hbeyan
Copy link
Contributor

@hbeyan hbeyan commented Jan 20, 2025

What is the current behavior?

addStyle function causes NotFoundError in for some components in our micro front end app.

GitHub Issue Number: 6106

What is the new behavior?

referenceNode's parentNode is checked to prevent insertBefore throwing NotFoundError method.
If the referenceNode is not a direct child of the element receiving the styleNode as the child, referenceNode is not used.

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

Other information

@hbeyan hbeyan requested a review from a team as a code owner January 20, 2025 18:23
@christian-bromann
Copy link
Member

@hbeyan thanks for raising the issue. Mind adding a WebdriverIO test for this to ensure we don't regress on this?

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