[Bug 20713] Consider defining window.event and Event.srcElement

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20713

--- Comment #14 from Philip Jägenstedt <philipj@opera.com> ---
(In reply to Boris Zbarsky from comment #12)
> > So yes, that example should work.
> 
> Why would it?  It doesn't work in Gecko, and we have no evidence that the
> web depends on it.
> 
> I share Olli's concern about adding window.event.  I expect it's common for
> people to pull in other nonstandard stuff that IE had and WebKit copied if
> that's defined.

Which specific other IE-isms are you concerned about? We should either
standardize or remove them, and if deemed necessary due to entanglement they
could be done in a batch.

> I have some questions about the data here, though.
> 
> > Event.srcElement is around 20%:
> 
> How many of those are:
> 
>   var target = event.srcElement || event.target;
> 
> ?
>
> > Window.event is around 4% now:
> 
> Again, do we have any data on what the uses look like?

The use counter data can't answer either of these questions. My only idea for
answering questions like these would be to check how often Event.srcElement but
not Event.target is accessed in a script run (event handler, setTimeout, etc.)
Even that wouldn't be conclusive, so I haven't tried to add the scaffolding to
make it possible.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 22 December 2014 09:20:27 UTC