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(compiler): fix noframes rendering #4571

Merged
merged 2 commits into from
Sep 24, 2024
Merged

fix(compiler): fix noframes rendering #4571

merged 2 commits into from
Sep 24, 2024

Conversation

nolanlawson
Copy link
Contributor

Details

See context.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

GUS work item

W-16784305

Verified

This commit was signed with the committer’s verified signature.
nolanlawson Nolan Lawson
@nolanlawson nolanlawson requested a review from a team as a code owner September 23, 2024 20:58
Comment on lines +15 to +21
expect(childNodes[0].tagName).toBe('SECTION');
expect(childNodes[0].childNodes.length).toBe(1);
expect(childNodes[0].childNodes[0].tagName).toBe('NOFRAMES');
expect(childNodes[0].childNodes[0].childNodes.length).toBe(1);
expect(childNodes[0].childNodes[0].childNodes[0].tagName).toBe('DIV');
expect(childNodes[0].childNodes[0].childNodes[0].childNodes.length).toBe(0);
expect(childNodes[0].childNodes[0].childNodes[0].getAttribute('class')).toBe(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Gross.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Avoiding innerHTML/outerHTML because it doesn't work properly in synthetic shadow DOM.

Verified

This commit was signed with the committer’s verified signature.
nolanlawson Nolan Lawson
@nolanlawson nolanlawson merged commit 27195d2 into master Sep 24, 2024
11 checks passed
@nolanlawson nolanlawson deleted the nolan/noframes branch September 24, 2024 19:49
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.

None yet

3 participants