W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2011

[whatwg] API design restrictions due to barewords in onxxx="" attributes

From: Yehuda Katz <wycats@gmail.com>
Date: Tue, 29 Nov 2011 19:27:05 -0800
Message-ID: <CAMFeDTVW1X8APaojDDdHAG==r3KK-gmJtyz-pWMMkh=Jg53t5Q@mail.gmail.com>
Yehuda Katz
(ph) 718.877.1325


On Sat, Nov 26, 2011 at 12:42 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> On 11/26/11 1:03 AM, Yehuda Katz wrote:
>
>> Honestly, before this discussion, I would have been surprised to hear
>> that this works at all. It also seems to me that the group of people who
>> know how to add an expando and the group of people who use onxxx= is
>> pretty small to begin with.
>>
>
> This isn't about people doing it on purpose.  It's about people doing it
> by accident via copy/paste programming, which is the common case of using
> barewords in on* attributes to start with: people who do it have no idea
> _why_ that code works, just that they copied it from somewhere and that it
> works.


Got it. Can we come up with a real-worldish example of someone using
expandos with barewords?


>
>
> -Boris
>
Received on Tuesday, 29 November 2011 19:27:05 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:38 UTC