I'm trying to access a form by its name from the content scripts
document.querySelector("form[name=myForm]") //works fine
document.myForm //returns undefined
What is the reason I can't get a form by its name from an extension?
document.myForm //in the browser console, works as expected