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

Exclude nodes without 'matches' (e.g. comment and text) from delegation tests #57

Merged
merged 1 commit into from
Oct 31, 2018

Conversation

bmomberger-bitovi
Copy link
Contributor

@bmomberger-bitovi bmomberger-bitovi commented Oct 31, 2018

This mostly applies to mutation events, which seem to fire on non-element nodes as well. Expecting HTMLElement.prototype.matches to exist on those nodes will fail when checking whether they're delegation targets. This is a quick fix to guard against that error.

@bmomberger-bitovi bmomberger-bitovi merged commit 2f81856 into master Oct 31, 2018
@bmomberger-bitovi bmomberger-bitovi deleted the text-comment-delegate-fix branch October 31, 2018 18:44
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.

None yet

1 participant