In Scripting: getElementByID will return only the first match.
In CSS: #id will affect ALL elements with that ID.
In Browser Render won't be of any effect.
This is the behavior of w3c standard. Not a possible one, it's the facto defined one.
https://dom.spec.whatwg.org/#interface-nonelementparentnode