Re: [w3c/webcomponents] [idea] Ability to define Custom Element attributes (and optionally enable getters/setters for those attributes). (#517)

Sure, performance could degrade but what you want isn't possible without overriding `set/getAttribute` which would create another performance bottleneck, unless it were implemented natively, which I don't see happening anytime soon, if ever. Your performance issue is also hypothetical. For your use case, I would suggest you use properties for everything and don't have linked attributes. Properties are faster to set by a factor of about 3 on any element, anyways.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/517#issuecomment-225157160

Received on Friday, 10 June 2016 11:19:55 UTC