Skip to content
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

Create ADR: Scoped components/ scoped elements #99

Open
Sander3003 opened this issue May 15, 2023 · 1 comment
Open

Create ADR: Scoped components/ scoped elements #99

Sander3003 opened this issue May 15, 2023 · 1 comment

Comments

@Sander3003
Copy link
Member

Sander3003 commented May 15, 2023

The browser as only one space (custom registry) to store tagnames. This could to lead to collision in the tagnames (the componts could have the same tagnames). This means that plug-ins cannot be independent (or risk of breakages). The problem arrises when their are multiple versions for the same tagname.

Current workaround: assumption that the API stays the same. This does not have to be true in the distributed architecture we are after

Shorttime solution:
Everybody uses the same MWC version (latest version)
Pro: works
Con: everybody should stick to the same version
We cannot backport the plug-ins to the current/old OpenSCD due to version conficts

Another solution:
Scope tagnames
Pro:
Con: a lot of work to migrate and

Long-term solution:
https://github.com/WICG/webcomponents/blob/gh-pages/proposals/Scoped-Custom-Element-Registries.md
https://chromestatus.com/feature/5090435261792256

Background information:
https://open-wc.org/docs/development/scoped-elements/
material-components/material-web#2010

Open questions:
How to handle MWC 3?

The solution could be converted into an ADR.

@Sander3003 Sander3003 converted this from a draft issue May 15, 2023
@Sander3003
Copy link
Member Author

No now, we are leaning towards fixing the MWC version (for now). @ca-d we would like to know your opinion.

@Sander3003 Sander3003 changed the title Scoped components/ scoped elements Create ADR: Scoped components/ scoped elements May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

1 participant