这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@joe-watkins
Copy link

Here's a PR to support for older versions of IE.

  • Adding support for older versions of IE that don't support classList
  • Borrowed regex helper from classlist Polyfil
  • Cleaned up demo HTML

*/
function addFocusRingClass(el) {
if (el.classList.contains('focus-ring'))
if (el.className.indexOf(focusRingClass) != -1)
Copy link
Author

Choose a reason for hiding this comment

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

I'm thinking regex here would be better to match exact.

@robdodson
Copy link
Collaborator

Fixed by #27

@robdodson robdodson closed this Apr 10, 2017
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