[selectors-api] Typo in Example

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");

Received on Wednesday, 19 November 2008 03:20:35 UTC