- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Fri, 28 Mar 2008 12:43:59 -0500
- To: Doug Schepers <schepers@w3.org>
- CC: public-webapi@w3.org
Doug Schepers wrote: > Couldn't you do this? > > var kids = myFooElement.querySelectorAll("*"); > var middleChild = kids.item( 3 ); //or kids[ 3 ]; <body> <span/> <span><img/></span> <div/> </body> Your proposed code returns the <img/>. Daniel wants the <div/>. -Boris
Received on Friday, 28 March 2008 17:44:40 UTC