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/>. -BorisReceived on Friday, 28 March 2008 17:44:40 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 28 March 2008 17:44:40 GMT