W3C home > Mailing lists > Public > public-webapps-bugzilla@w3.org > August 2012

[Bug 18547] Add [ImplicitThis] to EventTarget?

From: <bugzilla@jessica.w3.org>
Date: Tue, 14 Aug 2012 07:59:20 +0000
Message-Id: <E1T1C24-00043U-TP@jessica.w3.org>
To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18547

--- Comment #1 from Cameron McCormack <cam@mcc.id.au> 2012-08-14 07:59:20 UTC ---
In ES3, Function.prototype.call would treat a first argument value of undefined
or null as the global object instead, which would make the call you wrote work.
 ES5 removed this:

  http://people.mozilla.org/~jorendorff/es5.html#sec-15.3.4.4

[LenientThis] is for if you need to work around that.  But I'd like to know if
it's really needed before adding it to addEventListener.  Or if we could even
remove [LenientThis] from the spec.  It used to be used somewhere in HTML but I
can't see it in use now.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 14 August 2012 07:59:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 14 August 2012 07:59:24 GMT