Skip to content

Instantly share code, notes, and snippets.

@sethdavis512
Created May 9, 2017 18:28
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 sethdavis512/7c36dd8fe8c139480dce6a4118a286cd to your computer and use it in GitHub Desktop.
Save sethdavis512/7c36dd8fe8c139480dce6a4118a286cd to your computer and use it in GitHub Desktop.
for (var i = 0, headings = $$('h1,h2,h3,h4,h5,h6');
i < headings.length; i++) {
console.log(headings[i].textContent.trim() + " " +
headings[i].tagName,
headings[i]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment