Given an HTML node, how would you tell if it bears official HTML tag or not?
<h9 id="someNodeId">hello<h9>
let node = document.getElementById("someNodeId");
In above code snippet I want h9 is not official html tag. How do I find it out programmatically using JS?
Edit:
Preferably in O(1)