title: document.getElementsByName missing from Gecko/Firefox on SVG documents
body: <p>I have an SVG document in which I am using JavaScript to highlight elements on mouseover. My elements all have names - some elements have the same name because, although they appear multiple times, they logically refer to the same thing. When one instance of a replicated element is moused over, I want them all to highlight.</p>
  
  <p>To effect the highlighting, I look up the name of the element being moused over. Then, I call <code>document.getElementsByName()</code> to find all the elements sharing that name. With the returned array of elements, I iteratively apply the appropriate style to highlight.</p>
  
  <p>That works great on WebKit and fails on Gecko - the latter informs me that <code>getElementsByName</code> is undefined. Which, looking at the function table for <code>document</code> is indeed the case: <code>getElementsByClassName</code>, <code>getElementsByTagName</code>, <code>getElementsByTagNameNS</code> are all there; <code>getElementsByName</code> is missing.</p>
  
  <p>Any ideas as to why Gecko leaves this selector out? Google was unhelpful in this matter (though I may have asked the wrong questions). </p>
  
  <p>Any suggestions for a compact workaround to Gecko's lack of support for this selector? I'd greatly prefer not having to hijack the class attribute or (worse) generate unique ids for my repeated instances to accomplish the task.</p>