Re: querySelectorAll() -- selecting _immediate_ children of element

2012-01-10 Thread Roland Steiner
This has actually been discussed quite a bit on this list, in various contexts - for example see http://lists.w3.org/Archives/Public/public-webapps/2011OctDec/0277.html(except that you have to substitute :scope for your proposed :this). Cheers, - Roland On Mon, Jan 9, 2012 at 23:46, Marat

querySelectorAll() -- selecting _immediate_ children of element

2012-01-09 Thread Marat Tanalin | tanalin . com
querySelector() and querySelectorAll() methods are exciting features, but they do not allow select _immediate_ children of reference element. To address this lack, we could use following syntax: var divs = refElement.querySelectorAll(' DIV'); Here 'divs' variable contains list of DIV