Commit Graph

3 Commits

Author SHA1 Message Date
Robin North
d0d308191f More comments cleanup 2018-02-01 09:16:01 +00:00
darylteo
1d292a1a6e [FIX] #39 - events on top level
Events triggered on top level elements (such as window or document)
lead to a HierarchyRequestError due to a fix in IE browsers
where dispatchEvent does not fire if an element is not in the DOM.

The current test is simply to check for the existence of parentNode
However, this means top level elements get added to itself, causing
the error.

The proposed fix simply tests for top level elements in the test.
2016-01-04 22:30:00 +11:00
Maxime Thirouin
165532d43c Relocate all the things 2014-10-14 08:23:56 +02:00