W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2011

Re: HTML5 spec. seems to unnecessarily ban strict mode event handlers

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Thu, 3 Feb 2011 16:09:28 -0800
Message-ID: <AANLkTinOLfm4uV4rjJDzwpNAm2v0_S5KxymnGp1QUrH0@mail.gmail.com>
To: Allen Wirfs-Brock <allen@wirfs-brock.com>
Cc: EcmaScript <es-discuss@mozilla.org>, public-script-coord@w3.org
On 2/3/11, Allen Wirfs-Brock <allen@wirfs-brock.com> wrote:
> Regarding the call language, it would probably be best if it was described
> in terms of invoking the [[Call]] internal method of the handler's function
> object.  However, that might be unnecessary if if the WebIDL ECMASCript
> binding makes it clear that the effect of invoking the call method of the
> Function interface is defined in terms of [[Call]].
But browsers don't call the `call` property of the function object.

It's easy to test that: Create a function and give it an own "call"
property on a function or by replacing Function.prototype.call.

function x() {
x.call = function() {

> We may have clashing spec. terminology here but I think the intent seems
> clear enough.
Uh uh.
Received on Friday, 4 February 2011 00:10:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:02 UTC