The term "same namespace" means that names and identifiers are not completely separate. You can use the same name and id on one specific object, but you cannot use name="foo" for one object and id="foo" for another object. This creates a conflict.
This is how these browsers decided to implement things. There is also a global variable for each element with an identifier containing the dom element. This is how they implemented things. It was not standard, it's not about what they do in more modern browsers (with the exception of some backward compatibility).
Use id values ββfor any DOM elements you want to get. Use the name values ββto identify the server in published forms.
Your code will not have conflicts between names and identifiers if you do not use id for one object and the same name for another object, and, as a rule, there is no problem providing a specific element with the same name and id .
source share