- From: Gavin Kistner <gavin@phrogz.net>
- Date: Tue, 18 Nov 2008 20:19:59 -0700
- To: public-webapps@w3.org
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