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

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

--- Comment #12 from Boris Zbarsky <bzbarsky@mit.edu> ---
> 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.

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?

> This seems very similar to the isSameNode()

No, it's very different, because we know for a fact people use at least
window.event for browser detection, so implementing it in Gecko carries huge
compat risks which are not present with implementing isSameNode.

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

Received on Sunday, 21 December 2014 20:18:46 UTC