Closed Bug 1829335 Opened 2 years ago Closed 1 year ago

Add customElements.getName method

Categories

(Core :: DOM: Core & HTML, enhancement)

Firefox 112
x86_64
Linux
enhancement

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: mozilla, Assigned: mozilla)

Details

Attachments

(1 file)

Steps to reproduce:

I'm not sure if this is the right issue template, but I am trying to file implementer issues to get customElements.getName() defined. As a result of the WCCG F2F, the CG is interested in pursuing a method to get the name of a defined element. This is the result of that meeting. See https://github.com/WICG/webcomponents/issues/566 and https://github.com/whatwg/html/pull/9195 for more.

Component: Untriaged → DOM: Core & HTML
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → x86_64

Thank you for submitting this report.
Setting this as NEW in order to involve the development team and get an opinion on this.

Status: UNCONFIRMED → NEW
Ever confirmed: true

I've tried formulating a patch for this but I'm a little stuck because I believe I'll need JSContext* aCx but I can't seem to figure out what the IDL or definition should look like for Codegen.py to generate the correct bindings

This adds the new customElements.getName method which takes a constructor
and returns string if the definition has been registered, otherwise null.

Assignee: nobody → keithamus
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: