Node properties: type, tag and contents thumbnail
Node properties: type, tag and contents
javascript.info
But there are also common properties and methods between all of them, because all classes of DOM nodes form a single hierarchy. Given a DOM node, we can read its tag name from nodeName or tagName properties The nodeName is defined for any Node The tagName property exists only for Element nodes can s
3 Users
0 Comments
24 Highlights
0 Notes

Top Highlights

  • But there are also common properties and methods between all of them, because all classes of DOM nodes form a single hierarchy.
  • Given a DOM node, we can read its tag name from nodeName or tagName properties
  • The nodeName is defined for any Node
  • The tagName property exists only for Element nodes
  • can say something about other node types.

Ready to highlight and find good content?

Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.