W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

Re: xdash name prefixes (was Re: Component Model Update)

From: Adam Barth <w3c@adambarth.com>
Date: Fri, 26 Aug 2011 11:18:02 -0700
Message-ID: <CAJE5ia_PxGWeCbknrvOa0EZCX7oBfOgpj2nY8UiPg3bBrR94-g@mail.gmail.com>
To: Roland Steiner <rolandsteiner@google.com>
Cc: Dominic Cooney <dominicc@google.com>, Dimitri Glazkov <dglazkov@chromium.org>, public-webapps <public-webapps@w3.org>, Maciej Stachowiak <mjs@apple.com>, Jonas Sicking <jonas@sicking.cc>, Boris Zbarsky <bzbarsky@mit.edu>
On Fri, Aug 26, 2011 at 1:07 AM, Roland Steiner
<rolandsteiner@google.com> wrote:
> On Thu, Aug 25, 2011 at 9:12 AM, Adam Barth <w3c@adambarth.com> wrote:
>> On the other hand, it seems likely that some of these xdash names will
>> come into multi-party use.  For example, the following use cases
>> involve xdash names chosen by one party and then used by another:
>> http://wiki.whatwg.org/wiki/Component_Model_Use_Cases#Widget_Mix-and-Match
>> http://wiki.whatwg.org/wiki/Component_Model_Use_Cases#Contacts_Widget
>> http://wiki.whatwg.org/wiki/Component_Model_Use_Cases#Like.2F.2B1_Button
> Since the components that are used on a page are under the control of the
> page's author, it should be possible to avoid clashes by separating a
> component's definition (potentially pulled from third party) from its tag
> registration (done by page author), e.g.
> // Importing component definition for Facebook "Like" button
> // Importing component definition for Google+ "+1" button
> // ... later:
> Element.register("x-fb", Facebook.LikeButton)
> Element.register("x-gg", GooglePlus.PlusOneButton)

Doesn't it seem more likely that the third-party will do the
registration in whatever script you include that implements the Like
button, or whatever?


>> That's something like 40% of the use cases...
>> I don't have much of a better suggestion.  You're running up against
>> all the usual distributed extensibility issues.
> We could use namespaces... *ducks and runs* :D
> Cheers,
> - Roland
Received on Friday, 26 August 2011 18:19:12 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:34 UTC