Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] #39 - events on top level #49

Merged
merged 2 commits into from
Jan 5, 2016
Merged

[FIX] #39 - events on top level #49

merged 2 commits into from
Jan 5, 2016

Conversation

darylteo
Copy link
Collaborator

@darylteo darylteo commented Jan 4, 2016

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.

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.
@darylteo
Copy link
Collaborator Author

darylteo commented Jan 4, 2016

Unfortunately testling doesn't seem supported on OS X. I will try to figure it out at some stage, but if not then I won't be able to run tests.

@darylteo
Copy link
Collaborator Author

darylteo commented Jan 4, 2016

Will note that some other test is failing, not my changes.

@MoOx
Copy link
Owner

MoOx commented Jan 5, 2016

Looks good !

MoOx added a commit that referenced this pull request Jan 5, 2016
[FIX] #39 - events on top level
@MoOx MoOx merged commit 2f4bd76 into MoOx:master Jan 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants