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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declarative properties #206

Open
snuggs opened this issue Feb 13, 2020 · 0 comments
Open

Declarative properties #206

snuggs opened this issue Feb 13, 2020 · 0 comments

Comments

@snuggs
Copy link
Member

snuggs commented Feb 13, 2020

Look up CE.attributesChangedCallback & CE.observedAttributes

Expected Behavior

<foo-bar baz=bat>
This is 馃憠 {baz}
</foo-bar>

<script>
Element `foo-bar`

(class extends HTMLElement {
  set baz () {
    // defaults to returning this.attributes.baz.nodeValue
    // defaults to being added to observedAttributes
  }
})
</script>
</foo-bar>

Current Behavior

Possible Solution

Steps to Reprod(uce)

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. PHP 5.4 on nginx 1.9.1):
  • Server type and version:
  • Operating System and version:
  • Link to your project:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant