The end result I\'m after is a JavaScript array containing a list of tag names that are used in the HTML document eg:
div, span, section, h1, h2, p, etc...
I wan
Get all tagnames in the document, unique, crossbrowser, plain js:
var els = document.getElementsByTagName('*'), tags = [], tmp = {} for (var i=0;i
use
if (!(els[i].tagName in tmp) && !/head/i.test(els[i].parentNode.tagName) && !/html|head/i.test(els[i].tagName))
to exclude the