Skip to content

feat(ssr): implement light DOM slotted content in default template#5240

Closed
wjhsf wants to merge 5 commits intomasterfrom
wjh/fallback-tmpl-light-slots
Closed

feat(ssr): implement light DOM slotted content in default template#5240
wjhsf wants to merge 5 commits intomasterfrom
wjh/fallback-tmpl-light-slots

Conversation

@wjhsf
Copy link
Contributor

@wjhsf wjhsf commented Feb 26, 2025

Details

This implementation is divergent behavior from engine-server. In slots-basic/implicit-no-template, we have a light DOM component with no template that receives slotted content. In engine-server, the content is not rendered. But with this change, it is rendered in ssr-compiler.

Note: this PR also reorders the parameters of generateMarkup so that I could more easily DRY the types.

Does this pull request introduce a breaking change?

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

Does this pull request introduce an observable change?

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

GUS work item

Comment on lines +53 to +55
static delegatesFocus?: boolean;
static formAssociated?: boolean;
static shadowSupportMode?: 'any' | 'reset' | 'native';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just bonus stuff from engine-core that I noticed was missing here.

@wjhsf
Copy link
Contributor Author

wjhsf commented Feb 26, 2025

Closing as we don't want to change this behavior.

@wjhsf wjhsf closed this Feb 26, 2025
@wjhsf wjhsf deleted the wjh/fallback-tmpl-light-slots branch March 25, 2025 17:01
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.

1 participant