Skip to content

Support extends key in custom elements (aka built-in custom elements) in Salesforce Lightning platform with Lightning Web Security enabled #3560

Open
@gjyalpha

Description

@gjyalpha

Is your feature request related to a problem? Please describe.
It seems the LWC solution monkey-patches the customElements.define() and some other functions to get LWC working. But it doesn't expose a way to for regular Web Component solutions to use all the native Web Components API.

Describe the solution you'd like
LWC should provides a way for regular Web Component solutions to get access to the native Web Components APIs and just keep those regular Web Components working.

Describe alternatives you've considered
Or LWC could ensure the monkey-patched customElements APIs are fully compatible with the native customElements API. We ran into this NotSupportedError: "extends" key in customElements.define() options is not supported error, but couldn't figure out a way to workaround it.

Additional context
It seems #2983 is a related issue, but it got closed without a clear description what alternatives are available to workaround this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions