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

Re: window.event and Event.srcElement

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 25 Mar 2013 10:29:33 -0400
Message-ID: <51505F4D.1000901@mit.edu>
To: public-webapps@w3.org
On 3/25/13 10:17 AM, Dave Methvin wrote:
> What content depends on them

Most typically, content that does this sort of thing:

     function something() {
   <div onclick="something()">Click me</div>

but also content that does this:

   <svg><rect onclick="alert(event.target);"></rect></svg>

A brief look at stackoverflow will show that this is something authors 
run into a lot.  And that's just the ones that are bothering to test in 
multiple browsers.

If you want specific site examples www.ocn.ne.jp (on "mobile" only, 
natch, thanks to only testing in WebKit) is the most recent one I came 

> and why cater to such code?

Because otherwise users get broken websites.

Received on Monday, 25 March 2013 14:30:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 13:55:56 UTC