- From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
- Date: Fri, 21 Nov 2008 16:26:09 +0100
- 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 UTC