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

Fuse this, this.root and this.element #57

Open
danieldietrich opened this issue Feb 20, 2022 · 0 comments
Open

Fuse this, this.root and this.element #57

danieldietrich opened this issue Feb 20, 2022 · 0 comments
Labels
🚀 enhancement New feature or request ⇧ high-priority This needs to be solved first

Comments

@danieldietrich
Copy link
Owner

danieldietrich commented Feb 20, 2022

Motivation: the user must not think about

  • where to store information
  • where to query information

Status quo:

  • If no shadow root exists this.root = this.element + this[__ctx]
  • I a shadow root exists this.root = this.element.shadowRoot + this[__ctx]

Goal:

  • replace this[__ctx] with this => the previous this.element is now this
  • remove this.root. if the user uses mode='open' or mode='closed', then this.shadowRoot is the root, otherwise this (the user needs to take care of it, the default is no shadow root, so it should be transparent)
@danieldietrich danieldietrich added 🚀 enhancement New feature or request ⇧ high-priority This needs to be solved first labels Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request ⇧ high-priority This needs to be solved first
Projects
None yet
Development

No branches or pull requests

1 participant