Can multiple HTML elements have the same ID if they\'re of different element types? Is a scenario like this valid? Eg:
div#foo span#foo a#foo
first text for one second text for one var ids = document.getElementById('one');
ids contain only first div element. So even if there are multiple elements with the same id, the document object will return only first match.