This is a demo for Firefox bug 414612: getElementsByTagName returns no results for namespace type tag names.

XML file

<?xml version="1.0"?>
<stuff xmlns:abc="http://nothing.org/schema">
  <abc:TheTag>hey guys</abc:TheTag>
</stuff>
    

Live results

    

FF2 results

xmlDoc.getElementsByTagName("abc:TheTag") = 0
xmlDoc.getElementsByTagName("TheTag") = 1
xmlDoc.getElementsByTagNameNS("abc", "TheTag") = 0
xmlDoc.getElementsByTagNameNS("http://nothing.org/schema", "TheTag") = 1
    

FF3 (RC1) results

xmlDoc.getElementsByTagName("abc:TheTag") = 1
xmlDoc.getElementsByTagName("TheTag") = 0
xmlDoc.getElementsByTagNameNS("abc", "TheTag") = 0
xmlDoc.getElementsByTagNameNS("http://nothing.org/schema", "TheTag") = 1
    

Back to Browser Bugs