Skip to content

Instantly share code, notes, and snippets.

@dtulig
Created October 18, 2011 02:00
Show Gist options
  • Save dtulig/1294441 to your computer and use it in GitHub Desktop.
Save dtulig/1294441 to your computer and use it in GitHub Desktop.
>>> var ds = document.getElementById('gallery-image1').dataset;
>>> delete ds.authorName;
true
>>> document.getElementById('gallery-image1').dataset.authorName;
undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment