[Bug 5851] Consider adding .toArray() on NodeList and HTMLCollection

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5851





--- Comment #4 from crisp <crisp@tweakers.net>  2008-07-11 08:20:50 ---
If efficiency is key than it makes more sense to add an extra argument to the
method that says it's to return a static array iso a live nodelist. That way
you're even allowed to do this:

var foo = document.getElementsByTagName('div', RETURN_STATIC_ARRAY).reverse();

:)


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 11 July 2008 08:21:26 UTC