- From: Sebastian Markbåge <notifications@github.com>
- Date: Sun, 12 Jun 2016 11:15:33 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc:
Received on Sunday, 12 June 2016 18:16:00 UTC
FWIW React uses properties when it can. E.g. we don't want to first stringify a true/false value and pass the string 'checked' when we can just directly call .checked = true. The problem is that the ecosystem of DOM, as well as the ecosystem of custom elements, rely so heavily on attributes to do things that should also be available as properties. If I had my way, custom elements wouldn't support attributes directly but always translate them to property operations so that custom element authors are encouraged to use them - always. Same goes for events. There should always be a property that corresponds to the event. That is mostly true for the built-in DOM but not for things provided by the ecosystem. --- 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-225451886
Received on Sunday, 12 June 2016 18:16:00 UTC