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

Re: [webcomponents] Considering declarative event handlers

From: Erik Arvidsson <arv@google.com>
Date: Tue, 7 Feb 2012 12:04:59 -0800 (PST)
Message-ID: <1472064410.2822.1328645099717.JavaMail.mtrx@pacur6>
To: Dimitri Glazkov <dglazkov@chromium.org>
Cc: public-webapps <public-webapps@w3.org>
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.
Received on Wednesday, 8 February 2012 22:10:53 GMT

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