Autonomous custom elementsBaseline · Widely available
Autonomous custom elements are HTML elements with a hyphenated tag name (like <example-element>) that have behaviors you define.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jan 15, 2020. Widely available since Jul 15, 2022.
Browser support
DesktopChrome
1–53Not supported
54+Supportedsince Oct 12, 2016
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
1–62Not supported
63+Supportedsince Oct 23, 2018
Current: 157Safari
1–10Not supported
10.1+Supportedsince Mar 27, 2017
Current: 27MobileChrome Android
18–53Not supported
54+Supportedsince Oct 19, 2016
Current: 155Firefox Android
4–62Not supported
63+Supportedsince Oct 23, 2018
Current: 157Safari iOS
1–10Not supported
10.3+Supportedsince Mar 27, 2017
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: CustomElementRegistry.
Feature detection
JS · check before using
if ("CustomElementRegistry" in globalThis) {
// CustomElementRegistry is available
} else {
// load a polyfill or use a fallback
}Sub-features
Support for each part of the feature (9). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| CustomElementRegistry | 54 | 79 | 63 | 10.1 | 54 | 63 | 10.3 |
| CustomElementRegistry.define | 54 | 79 | 63 | 10.1 | 54 | 63 | 10.3 |
| CustomElementRegistry.define.disabledFeatures_static_property | 77 | 79 | 92 | ✕ | 77 | 92 | ✕ |
| CustomElementRegistry.get | 54 | 79 | 63 | ✕ | 54 | 63 | ✕ |
| CustomElementRegistry.getName | 117 | 117 | 116 | ✕ | 117 | 116 | ✕ |
| CustomElementRegistry.upgrade | 68 | 79 | 63 | 12.1 | 68 | 63 | 12.2 |
| CustomElementRegistry.whenDefined | 54 | 79 | 63 | 10.1 | 54 | 63 | 10.3 |
| Window.customElements | 54 | 79 | 63 | 10.1 | 54 | 63 | 10.3 |
| defined | 54 | 79 | 63 | 10 | 54 | 63 | 10 |