[Webkit-unassigned] [Bug 131443] querySelectorAll should return a JS array

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 9 10:52:42 PDT 2014


--- Comment #3 from Ryosuke Niwa <rniwa at webkit.org>  2014-04-09 10:53:00 PST ---
(In reply to comment #1)
> How would this help with the fact that library code copies out the result into a new array?
> Are you proposing a spec change, which other browsers would adopt, which would then lead to library authors removing their copying code?

Yes. Also JSC can optimize native JS array operations better than the one involving NodeLists although we should be teaching JSC now to access NodeList fast as well.

e.g. jQuery executes:

push.apply( results, slice.call( newContext.querySelectorAll(
), 0 ) );

and optimizing this code is much easier if querySelectorAll simply returned a JS array.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list