docs(3.x): document <f-template> host attribute propagation in SSR page#7522
Merged
janechu merged 2 commits intoMay 20, 2026
Merged
Conversation
Adds a new "Host Attribute Propagation" section to the declarative
server-rendering page covering:
- The concept: attributes on the inner <template> of an <f-template>
are propagated onto the rendered host opening tag.
- Supported binding forms: static name="value", dynamic
name="{{expression}}", and boolean ?name="{{expression}}".
- Client-only skip list: @event, :property, f-ref, f-slotted,
f-children.
- Author-wins conflict resolution rule.
Documents behavior implemented on main in #7521 (will be picked up by
the next v3 sync.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
EOF
)
chrisdholt
approved these changes
May 20, 2026
…st-attribute-propagation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
📖 Description
Adds a new "Host Attribute Propagation" section to the 3.x declarative server-rendering documentation page (
sites/website/src/docs/3.x/declarative-templates/server-rendering.md) describing how attributes declared on the inner<template>of an<f-template>propagate onto the rendered host element opening tag during SSR.The new section covers:
primary-buttoncomponent withtabindex,role, andclassdeclared on its template).name="value", dynamicname="{{expression}}", and boolean?name="{{expression}}", including which values get stripped.@event,:property,f-ref,f-slotted,f-children).?namededupes against the barename).🎫 Issues
This documents the build-time renderer behavior implemented on
mainin microsoft/fast#7521. The feature will be picked up by the nextmain→releases/fast-element-v3sync; this docs PR can land independently so that the website reflects the upcoming behavior.👩💻 Reviewer Notes
@microsoft/fast-build, keeping the conceptual flow (rendering contract → hydration flow → state in → host attrs out → tooling).{% raw %}Nunjucks block so that{{ }}examples render literally on the site.📑 Test Plan
{% raw %}).npm run build -w @microsoft/fast-site(or the website's local dev preview) and open the renderedserver-renderingpage to confirm the new section displays as expected.✅ Checklist
General
$ npm run change⏭ Next Steps
When the next
main→releases/fast-element-v3sync lands, this docs page will accurately describe the behavior shipping in the v3 build pipeline. No further docs work is anticipated for this feature on the v3 track.