Can someone shed some light on the behavior of javascript getElementById() when there are elements with duplicate IDs in HTML DOM??
While there is no standard behavior defined, typically it will return the first element found.
Demo: http://jsfiddle.net/ruNKK/
2.1m questions
2.1m answers
60 comments
57.0k users