nodeList bug???

Discussion in 'Mac Basics and Help' started by octarinemage, Feb 20, 2012.

  1. octarinemage macrumors newbie

    Feb 20, 2012
    Hi. I'm new here. I just joined to report an error in Safari 5.1.1 (7534.51.22). I don't know where to report this. Here goes:

    When I use document.getElementsByTagName it returns an [object Nodelist]. When I do a 'typeof' of the returned Nodelist it returns 'function' ???? That's not right. Nodelist is an HTML Collection.


    var o = document.getElementsByTagName('div');
    alert(typeof o); // returns 'function' ?!?!?!?

Share This Page