JavaScript querySelect & document.getBy issues

Usually I have no issues with it, but right now, I'm being stumped by this and cant figure out what on earth is happening here (see image)

So, the getElementsByName returns a nodeList witha length of 1, so basically index0
yet calling upon [0] is undefined?

and calling it by querySelector (it literally works in the css with [name=input_The-name] returns a null? what?
image.png
Was this page helpful?