Firefox 144 added ShadowRoot.referenceTarget behind pref#29261
Open
hamishwillee wants to merge 3 commits intomdn:mainfrom
Open
Firefox 144 added ShadowRoot.referenceTarget behind pref#29261hamishwillee wants to merge 3 commits intomdn:mainfrom
ShadowRoot.referenceTarget behind pref#29261hamishwillee wants to merge 3 commits intomdn:mainfrom
Conversation
Contributor
|
Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs). |
hamishwillee
commented
Mar 16, 2026
8 tasks
ShadowRoot.referenceTarget behind pref
caugner
approved these changes
Mar 27, 2026
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.
FF144 made a bunch of changes to support
ShadowRoot.referenceTarget,HTMLTemplateElement.shadowRootReferenceTargetand the corresponding attribute on the<template>element, and a new option to set this in `Element.attachShadow() in https://bugzilla.mozilla.org/show_bug.cgi?id=1981341.The spec changed slightly, and in FF149 it made the new additions nullable (which has no effect on a preferenced-only BCD feature).
The PR #28570 added some of these, but incorrectly indicated FF149 for FF support. It also missed the
attachShadow()option andHTMLTemplateElement.shadowRootReferenceTarget.Explainer for the thing here https://github.com/WICG/webcomponents/blob/gh-pages/proposals/reference-target-explainer.md
For FF I have updated to match the FF IDL. For Safari and Chrome I have copied the pattern of the features that were recorded - so exactly the same preferences and versions. I am making the assumption that these are implemented, because why wouldn't you.
FYI @meyerweb
Related docs work can be tracked in mdn/content#43453