Re: [selectors-api] Typo in Example

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