-
-
Save netoff/a5c8564f83f47176a948f79e858380c4 to your computer and use it in GitHub Desktop.
List of valid HTML Elements
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
| // Run this on https://developer.mozilla.org/en/docs/Web/HTML/Element | |
| var tags = [], nodeList = document.querySelectorAll('td a code'); | |
| for (i in nodeList) { | |
| if ((nodeList[i].innerText) && (nodeList[i].innerText.indexOf('<') > -1)) { | |
| var tag = nodeList[i].innerText.replace('<','').replace('>',''); | |
| if (tags.indexOf(tag) == -1) { | |
| tags.push(tag); | |
| } | |
| } | |
| } | |
| console.log(tags.join("\n")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment