Skip to content

Commit ed74568

Browse files
Merge pull request #3744 from MicrosoftDocs/user/pabrosse/scer-146
Add "Scoped custom element registries" in 146 RelNotes
1 parent 71040b4 commit ed74568

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

  • microsoft-edge/web-platform/release-notes

microsoft-edge/web-platform/release-notes/146.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ To stay up-to-date and get the latest web platform features, download a preview
2323
* [`trigger-scope`](#trigger-scope)
2424
* [`meta name="text-scale"` element](#meta-nametext-scale-element)
2525
* [Web APIs](#web-apis)
26-
* [LCP: match spec'd behavior for emitting candidates](#lcp-match-specd-behavior-for-emitting-candidates)
27-
* [Navigation API: add post-commit handler from precommit](#navigation-api-add-post-commit-handler-from-precommit)
26+
* [Scoped custom element registries](#scoped-custom-element-registries)
27+
* [LCP matches spec'd behavior for emitting candidates](#lcp-matches-specd-behavior-for-emitting-candidates)
28+
* [Navigation API: Add post-commit handler from precommit](#navigation-api-add-post-commit-handler-from-precommit)
2829
* [Selective Permissions Intervention](#selective-permissions-intervention)
2930
* [MIME type parameters are preserved in data URLs](#mime-type-parameters-are-preserved-in-data-urls)
3031
* [`Intl.Locale.prototype.variants`](#intllocaleprototypevariants)
@@ -123,7 +124,20 @@ The following new Web API features are included in Microsoft Edge.
123124

124125

125126
<!-- ------------------------------ -->
126-
#### LCP: match spec'd behavior for emitting candidates
127+
#### Scoped custom element registries
128+
129+
You can now create custom element registries that are separate from the global `window.customElements` registry, by using the `CustomElementRegistry()` constructor.
130+
131+
Creating custom registries is useful for allowing the coexistence of multiple custom elements that have the same tag name.
132+
133+
For example, if you have two different versions of a library that both define a `<my-button>` custom element, you can create separate registries for each version of the library, to avoid naming conflicts.
134+
135+
See also:
136+
* [CustomElementRegistry: CustomElementRegistry() constructor](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/CustomElementRegistry) at MDN.
137+
138+
139+
<!-- ------------------------------ -->
140+
#### LCP matches spec'd behavior for emitting candidates
127141

128142
The Largest Contentful Paint (LCP) algorithm now emits candidates based on painted content. This aligns the algorithm with the latest behavior per the specification.
129143

@@ -134,7 +148,7 @@ See also:
134148

135149

136150
<!-- ------------------------------ -->
137-
#### Navigation API: add post-commit handler from precommit
151+
#### Navigation API: Add post-commit handler from precommit
138152

139153
When handling a `navigate` event, you can now register post-commit work while executing precommit logic.
140154

0 commit comments

Comments
 (0)