- From: Joseph Orbegoso Pea <notifications@github.com>
- Date: Sat, 10 Sep 2016 09:24:18 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Saturday, 10 September 2016 16:25:08 UTC
@matthewp @Zambonifofex I believe attributes should be on a per-custom-element basis, otherwise globally registered attributes will get *messy quickly*. Many custom elements may depend on values of attributes with the same name (I.e. name clashing can become a nasty problem). In native HTML, `style=""` is common across many elements, if not all. This type of thing should happen through extension. If my custom element has special behavior based on a `foo=""` attribute, and you extend it to make your own custom element, then your element will inherit that attribute behavior. Likewise, we can explain the `style` attribute the same way due to the fact that custom elements can inherit it from HTMLElement (I think that is where style behavior is defined?). -- 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/509#issuecomment-246120909
Received on Saturday, 10 September 2016 16:25:08 UTC