Created
May 14, 2014 15:17
-
-
Save grayghostvisuals/7f3d268ab42f72c408d0 to your computer and use it in GitHub Desktop.
Detection Method for Classlist Support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if('classList' in document.createElement('p')) { | |
console.log('classlist supported'); | |
} else { | |
console.log('classlist not supported'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment