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

Re: [webcomponents] Considering declarative event handlers

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 07 Feb 2012 15:32:33 -0500
Message-ID: <4F318A61.6040702@mit.edu>
To: public-webapps@w3.org
On 2/7/12 3:25 PM, Dimitri Glazkov wrote:
> Oh, like<script scoped>  or something?

No opinions on the syntax, or even on whether the element should be 
called <script>.

>>   this.onclick = function() { .... }
>> I think.  The only thing the UA would have to do there is syntax-check the
>> function, which I think is desirable to do anyway for error reporting
>> purposes.
> I am pretty sure we'd have to run script there.

You'd have to run the script that sets the onclick handler, but not the 
script that's inside the function.

And in the other setup you'd have to run some browser-internal code that 
sets up a click handler...  it's not clear why one is better than the other.

Received on Tuesday, 7 February 2012 20:36:21 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:38 UTC