Skip to content

Add api.HTMLElement* constructor data #30380

Open

Description

@Elchi3

What type of issue is this?

Missing compatibility data

What information was incorrect, unhelpful, or incomplete?

In #30349 we decided to not record HTMLElement* constructor data for now. We should add this data all at once, if we want to record it. It is a separate project, not a drive-by task.

The HTML specification added these HTML element constructors ca. 2016 to make them sub-classable for custom elements.

What browsers does this problem apply to, if applicable?

No response

What did you expect to see?

HTML element constructor keys.

Did you test this? If so, how?

Didn't test, the collector tests need to be fixed so we could collect this data all at once.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

MDN content needs to decide if it wants content pages. Maybe mentioning the constructor in HTMLElement* interface pages is enough.

Do you have anything more you want to share?

No response

MDN URL

No response

MDN metadata

No response

Activity

  1. added
    needs triageIssue that has not yet been reviewed.
    data:apiCompatibility data for Web API features. https://developer.mozilla.org/docs/Web/API
    and removed
    needs triageIssue that has not yet been reviewed.
    on Sep 1, 2026
  2. ddbeck commented on Sep 1, 2026

    @ddbeck
    Contributor

    Because the builtin element constructors are not direct callable (they throw an "illegal constructor" error), the test for this data is something along the lines of:

    1. Subclass a builtin-element.
    2. Call the constructor on the subclass (implicitly calling the builtin constructor).
    3. Confirm that no error was thrown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:apiCompatibility data for Web API features. https://developer.mozilla.org/docs/Web/API

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions