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

test(dom): fix removeElClass test in Safari 10. #3768

Merged
merged 1 commit into from
Nov 9, 2016

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Nov 9, 2016

Safari 10 automatically dedupes duplicate class names in an element. So,
our test was failing because we had an extra "foo" in the check. This is
an unlikely scenario that has browser variations, so, better to just
remove it.

Safari 10 automatically dedupes duplicate class names in an element. So,
our test was failing because we had an extra "foo" in the check. This is
an unlikely scenario that has browser variations, so, better to just
remove it.
Copy link
Member

@misteroneill misteroneill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gkatsev gkatsev merged commit 9965077 into master Nov 9, 2016
@gkatsev gkatsev deleted the remove-el-class-safari branch November 9, 2016 21:06
@hartman
Copy link
Contributor

hartman commented Nov 10, 2016

Alternatively, you could have directly read back the .class value after setting it, and have had all subsequent asserts, depend on the browser having deduped itself.

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.

3 participants