The Element.getElementsByTagName() method returns a live All descendants of the specified element are searched, but not the element itself.
Element.getElementsByTagName()
MDN Reference
The
Element.getElementsByTagName()method returns a live All descendants of the specified element are searched, but not the element itself.MDN Reference