Skip to content

Firefox 144 added ShadowRoot.referenceTarget behind pref#29261

Open
hamishwillee wants to merge 3 commits intomdn:mainfrom
hamishwillee:ff144_shadow_reference_target
Open

Firefox 144 added ShadowRoot.referenceTarget behind pref#29261
hamishwillee wants to merge 3 commits intomdn:mainfrom
hamishwillee:ff144_shadow_reference_target

Conversation

@hamishwillee
Copy link
Copy Markdown
Contributor

@hamishwillee hamishwillee commented Mar 16, 2026

FF144 made a bunch of changes to support ShadowRoot.referenceTarget, HTMLTemplateElement.shadowRootReferenceTarget and 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 and HTMLTemplateElement.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

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML size:l [PR only] 101-1000 LoC changed labels Mar 16, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 16, 2026

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@caugner caugner changed the title FF144 referenceTarget updates Firefox 144 added ShadowRoot.referenceTarget behind pref Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML size:l [PR only] 101-1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants