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

Work around IE11 contains() that does not recognize text nodes #72

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

bmomberger-bitovi
Copy link
Contributor

In IE11, HTMLElement.prototype.contains always returns false if the argument is a text node. The isConnected polyfill in can-dom-mutate already does some IE-specific polyfill on the presence of Node.prototype.contains for IE and can-vdom, so in this PR the polyfill is extended to look at the parent node instead if a text node is passed in.

@bmomberger-bitovi bmomberger-bitovi merged commit 83ab733 into master Jan 6, 2020
@bmomberger-bitovi bmomberger-bitovi deleted the contains-text-node branch January 6, 2020 18:27
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

2 participants