← Back to release summary

Customized built-in elements via elementInternals.type

Category
DOM
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

elementInternals.type supports the creation of custom elements that inherit the behaviors and properties of native HTML elements. When elementInternals.type is set to string values that represent native element types, custom elements can leverage the built-in functionality of standard elements while extending their capabilities to meet specific needs.

Motivation

Web component authors often want to create custom elements that inherit the behaviors and properties of native HTML elements. By customizing built-in elements, custom elements can leverage the built-in functionality of standard elements and extend their capabilities to meet specific needs. While this can be partially achieved by using 'extends' and 'is', they are not on a path to full interoperability due to their limitations, such as the inability to attach shadow trees to most customized built-in elements.

Standards & signals

Ecosystem

Docs: https://docs.google.com/document/d/1mEAHpBRvqWGxorJB_PIG346gc4U3I5A5SL3q9vYImxc/edit?usp=sharing

Explainers: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/ElementInternalsType/explainer.md

View on chromestatus.com