W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2010

Re: Inconsistency in Web SQL Database Spec

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 09 Feb 2010 15:58:54 +0100
To: "Eric Westenberger" <eric.westenberger@googlemail.com>, public-webapps@w3.org
Message-ID: <op.u7u7wgpl64w2qv@annevk-t60>
On Tue, 09 Feb 2010 02:37:01 +0100, Eric Westenberger  
<eric.westenberger@googlemail.com> wrote:
> I noticed a slight inconsistency in the Web SQL Database Spec on
> http://dev.w3.org/html5/webdatabase/Overview.html (version Feb 04, 2010)
>
> The example in section 1 does not match to the API description in the
> following sections.
> E.g. consider the lines
>
> db.readTransaction(function (t) {
>     t.executeSql('SELECT COUNT(*) AS c FROM docids', [], function (t, r)  
> {
>       span.textContent = r.rows[0].c;
>
> However, in Section 4.5 the API specifies that the rows are addressed via
>
> r.rows.item(i)

Because of the binding defined both will work.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 9 February 2010 14:59:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:37 GMT