Skip to content

Add customized built-ins via elementInternals #2784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
anaskim opened this issue Mar 18, 2025 · 1 comment
Open

Add customized built-ins via elementInternals #2784

anaskim opened this issue Mar 18, 2025 · 1 comment
Labels
feature definition Creating or defining new features or groups of features.

Comments

@anaskim
Copy link

anaskim commented Mar 18, 2025

Specification

WHATWG issue: whatwg/html#11061
OpenUI issue tracking initial discussions and WHATWG resolution to accept elementInternals.type: openui/open-ui#1088

Description

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.

Documentation

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

Browser support

Starting to prototype in Chromium. Feature: https://chromestatus.com/feature/5111079237320704

@anaskim anaskim added the feature definition Creating or defining new features or groups of features. label Mar 18, 2025
@captainbrosset
Copy link
Contributor

We'll have to think about how to handle this together with the existing customized-built-in-elements feature. This new proposal, based on elementInternals is a new approach to do customized built-in elements. The previous approach, which isn't in Safari, and will never be according to their position, is based on the is attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature definition Creating or defining new features or groups of features.
Projects
None yet
Development

No branches or pull requests

2 participants