- From: Zambonifofex <notifications@github.com>
- Date: Sat, 10 Sep 2016 10:06:32 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Saturday, 10 September 2016 17:06:59 UTC
@trusktr What about being able to define both global attributes and attributes on specific elements? ```Javascript customAttributes.define("foo-bar", HTMLElement, FooBarAttr); // Global attribute customAttributes.define("foo-baz", MyElement, FooBazAttr); // Element‐specific attribute ``` Still, I like to encourage the practice of pseudo‐namespaces. That is, when writing a library, named, say, “my library”, instead of having a `fancy-button` element, have a `my_library-fancy_button` element. Similar thing with attributes. -- 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-246123126
Received on Saturday, 10 September 2016 17:06:59 UTC