Re: [w3c/webcomponents] [idea] Allow HTML Element attributes to accept any type of value, not just strings. (#519)

Honestly, I think that’s a better job for frameworks to do rather than the platform.

Attributes are meant for simple string usage. If you want something more complex, you can simply have a property that is not bound to an attribute.

All I wanted is to have a certain pattern that HTML elements’ property names are guaranteed to never follow. (For example, I want a guarantee that HTML elements’ properties are never going to start with `data`, so I can safely define my own `dataFooBar` property/function on my custom elements, and know it will never collide with HTML’s properties). Of course not starting with `data` is a horrible pattern to follow. They are horrible enough, the  `data-` attributes we have today.

---
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/519#issuecomment-225437314

Received on Sunday, 12 June 2016 14:14:22 UTC