Skip to content

Instantly share code, notes, and snippets.

@grayghostvisuals
Created May 14, 2014 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grayghostvisuals/7f3d268ab42f72c408d0 to your computer and use it in GitHub Desktop.
Save grayghostvisuals/7f3d268ab42f72c408d0 to your computer and use it in GitHub Desktop.
Detection Method for Classlist Support
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