Skip to content

feat: add scoped custom elements to FASTElement #7100

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
janechu opened this issue Apr 4, 2025 · 0 comments
Open

feat: add scoped custom elements to FASTElement #7100

janechu opened this issue Apr 4, 2025 · 0 comments
Assignees
Labels
area:fast-element Pertains to fast-element browser:safari An issue specifically related to the Safari browser. feature A new feature

Comments

@janechu
Copy link
Collaborator

janechu commented Apr 4, 2025

🙋 Feature Request

The scoped custom elements are now in Safari Tech Preview and are due to be rolled out in other browsers. They should be supported in FASTElement going forward.

💁 Possible Solution

const registry = new CustomElementRegistry;

FASTElement.define({
    name: "my-element",
    shadowOptions: {
        customElements: registry
    }
});

🔦 Context

whatwg/html#10854

@janechu janechu added the status:triage New Issue - needs triage label Apr 4, 2025
@janechu janechu self-assigned this Apr 4, 2025
@janechu janechu added feature A new feature area:fast-element Pertains to fast-element browser:safari An issue specifically related to the Safari browser. and removed status:triage New Issue - needs triage labels Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:fast-element Pertains to fast-element browser:safari An issue specifically related to the Safari browser. feature A new feature
Projects
Status: Triage
Development

No branches or pull requests

1 participant