W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: [webcomponents] Considering declarative event handlers

From: Glenn Adams <glenn@skynav.com>
Date: Wed, 8 Feb 2012 15:50:18 -0700
Message-ID: <CACQ=j+e_XKjnRd0VEg6RhKt78dfLyOZc+6eQc5z9Y2Eq=S557g@mail.gmail.com>
To: Dimitri Glazkov <dglazkov@chromium.org>
Cc: public-webapps <public-webapps@w3.org>
On Tue, Feb 7, 2012 at 12:41 PM, Dimitri Glazkov <dglazkov@chromium.org>wrote:

> To make Web Components more usable, I would like to consider providing
> a way to declare event handlers in markup. As I look over the use
> cases and try to implement them using the proposed syntax
> (http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html),
> a pattern emerges, where a bunch of event handlers is declared and
> registered early in the lifecycle of the custom elements
> (
> http://dvcs.w3.org/hg/webcomponents/raw-file/tip/samples/entry-helper.html
> ,
> http://dglazkov.github.com/Tabs/tabs-control.js as rough examples).
>

Is there a reason not to use (modifying as required) XML Events [1] for
this purpose?

[1] http://www.w3.org/TR/2003/REC-xml-events-20031014/
Received on Wednesday, 8 February 2012 22:51:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT