javascript - JS—List of all registered Elements -


I am looking for a way to get a list of all the elements (nodnames) that are supported / registered on the customer.

In other words: & lt; A & gt;, & lt; B & gt;, & lt; Captions>, & lt; Div & gt;, ... and many more known HTML elements can create and use one. You can add a more with document.registerElement .

As the title, I am looking for a way to get all the elements currently registered (at least their names). Some dummy codes may look like this:

  var list = document.listRegisteredElements (); // yield ['a', 'body', ..., 'div', 'i', 'my-registered-element', ...];  

Thank you so far!


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -