Some html events only occurs at the window level. E.g.: message. It could prove useful to add EventListeners for these kind of events. At the moment, when the EventListener has no children, it attaches to document by default. A possible implementation could add a variable which would specify the kind of object to attach to by default.