I had a strange problem with my site. Suddenly on the page I received a JS error document.getElementById is not a function. The problem was that I had a form with name="document".
It seems that if the form has an attribute name, then a variable is set in Javascript with the same name.
Where can I find the specifications for this?
source
share