[Bug 27823] We should consider dropping [NoInterfaceObject] from XMLHttpRequestEventTarget

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

--- Comment #21 from Anne <annevk@annevk.nl> ---
Window and WebSocket are completely orthogonal classes. They are not expected
to share functionality. XMLHttpRequest and XMLHttpRequestUpload are both event
targets and share a whole bunch of events. I don't see why that is so different
from say Text and Comment sharing CharacterData.

Your argument is that on* is syntax, but that is not always the case as Olli
points out, so it's unclear whether we could ever make it so.

As for common functionality, a library could support an additional event of
sorts and want to expose an on* member on both classes.

If this should be a mixin, then lots of stuff in the DOM and especially
EventTarget should have been made a mixin too.

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

Received on Friday, 16 January 2015 08:39:35 UTC