W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2008

Re: [selectors-api] Typo in Example

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Fri, 21 Nov 2008 16:26:09 +0100
Message-ID: <4926D311.3050506@lachy.id.au>
To: Gavin Kistner <gavin@phrogz.net>
CC: public-webapps@w3.org

Gavin Kistner wrote:
> The Selectors API document, section 8, has this example code:
>   var div = document.getElementById("bar");
>   var p = bar.querySelector("body p");
> 
> I assume that is supposed to be either...
>   var div = document.getElementById("bar");
>   var p = div.querySelector("body p");
> ...or...
>   var bar = document.getElementById("bar");
>   var p = bar.querySelector("body p");

I have fixed this using the first alternative.  You may review the 
changes in the current editor's draft.

http://dev.w3.org/2006/webapi/selectors-api/

Please let me know whether or not you are satisfied with this response.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Friday, 21 November 2008 15:26:56 GMT

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