From docs:
childNodes
includes all child nodes, including non-element nodes like text and comment nodes. To get a collection of only elements, useParentNode.children
instead.
1 Like
From docs:
childNodes
includes all child nodes, including non-element nodes like text and comment nodes. To get a collection of only elements, useParentNode.children
instead.