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
Post a Comment