Re: [webcomponents] Considering declarative event handlers

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 UTC