W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2007

[whatwg] SQLResultSet "rows" property

From: Anders Carlsson <andersca@apple.com>
Date: Tue, 9 Oct 2007 11:44:01 -0700
Message-ID: <B3787341-E088-4592-8B6D-D1692663470B@apple.com>
Hello,

according to http://www.whatwg.org/specs/web-apps/current-work/#sqlresultset

the rows attribute should return a _native_ array of objects.

In the case of JavaScript, does that mean a native JavaScript "Array"  
object or another object which can be indexed as an array? If it's the  
former, then doing something like

var rows = result.rows;

rows[0] = null;

would be possible, which seems strange, unless result.rows returns a  
new array every time (something that seems pretty bad for performance).

In any case I'd like some clarification on this - and it would be  
great to have the spec clarify it as well :)

Thanks,
Anders
Received on Tuesday, 9 October 2007 11:44:01 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:37 UTC