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

Re: [webcomponents] Considering declarative event handlers

From: Dimitri Glazkov <dglazkov@chromium.org>
Date: Tue, 7 Feb 2012 12:26:02 -0800
Message-ID: <CADh5Ky1fOEvLrAfxk6zds7qU6Ow-g3Sy6MQYj4bp5Dg74kDprA@mail.gmail.com>
To: Erik Arvidsson <arv@google.com>
Cc: public-webapps <public-webapps@w3.org>
On Tue, Feb 7, 2012 at 12:04 PM, Erik Arvidsson <arv@google.com> wrote:
> On Tue Feb 07 11:41:24 GMT-800 2012, Dimitri Glazkov <dglazkov@chromium.org>
> wrote:
>>
>> The pros are:
>> * It's declarative and intuitively logical
>
>
> I think this is a cons. Now you need both markup and code where you only had
> code before.
>
> This also does not scale very well and it brings us down the XBL/HTC path:
>
> <script event="click">
> ...
> </script>
> <script event="mouseover">
> ...
> </script>
> <script event="mouseout">
> ...
> </script>
> <script event="mousedown">
> ...
> </script>
> <script event="mouseup">
> ...
> </script>
> <script event="mousemove">
> ...
> </script>
>
> All these interleaving code-markup  blocks makes the code harder to read and
> maintain.

That's a good point.

:DG<

>
Received on Tuesday, 7 February 2012 20:30:19 GMT

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