The namedItem HTMLCollection for JS returns the first element with ID or name name from the collection.
element = collection.namedItem(name) element = collection[name]
A non-empty string.
item
length
Web Hypertext Application Technology Working Group (WHATWG)