Re: [webcomponents] Considering declarative event handlers

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 UTC