Intent to Prototype: CustomElementsGetName

111 views
Skip to first unread message

Keith Cirkel

unread,
Jun 15, 2023, 5:31:53 PM6/15/23
to blin...@chromium.org

Contact emails

keit...@github.com 

Explainer

https://github.com/WICG/webcomponents/issues/566#issuecomment-882359087 

Specification

https://github.com/whatwg/html/pull/9195 

Summary

customElements.getName() returns the tag name of the given custom element definition.



Blink component

Blink>HTML>CustomElements 

Motivation

Currently there is no way to get the local name of a custom element without instantiating the instance and checking the localName property. This new method allows querying the customElementRegistry to discover the localName of a definition without creating an instance.



Initial public proposal

https://github.com/WICG/webcomponents/issues/566

TAG review



TAG review status

Pending 

Risks



Interoperability and Compatibility



Gecko: No signal (https://github.com/mozilla/standards-positions/issues/785

WebKit: In development (https://bugs.webkit.org/show_bug.cgi?id=255778

Web developers: Positive 

Other signals

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?



Debuggability



Is this feature fully tested by web-platform-tests?

Yes 

Flag name



Requires code in //chrome?

False 

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1435389 

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5199783177748480

Links to previous Intent discussions



This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages