jquery/qunit — pull request #166 by trevorparscal (2011-10-10 18:53:12+00:00)
Title: Fox for Issue #165 - Fixed IE compatibility issues with using toString on NodeList objects

In some browsers results in [object Object] rather than [object NodeList]. Now using duck typing for NodeList objects based on the presence of length, length being a number, presence of item method (which will be typeof string in IE and function in others, so we just check that it's not undefined) and that item(0) returns the same value as [0], unless it's empty, in which case item(0) will return 0, while [0] would return undefined. Tested in IE6, IE8, Firefox 6, Safari 5 and Chrome 16.