On Sun, Jun 9, 2013 at 6:18 PM, Boris Zbarsky bzbar...@mit.edu wrote:
On 6/9/13 7:35 PM, Timmy Willison wrote:
I was a little confused. I realized something I already knew in that
elem.querySelector[All] does limit the matched set to the descendants of
element
Right. But find() does not, for
Thank you both. That helps a lot. I figured el.querySelector(:scope +
div) would do the same thing as el.find(+ div).
Perhaps more examples in the spec that clearly demonstrate differences like
this between qSA() and findAll() would be helpful. I think some form of the
example that Tab gave would
On Mon, Jun 10, 2013 at 1:15 PM, Timmy Willison timmywill...@gmail.com wrote:
Thank you both. That helps a lot. I figured el.querySelector(:scope + div)
would do the same thing as el.find(+ div).
Perhaps more examples in the spec that clearly demonstrate differences like
this between qSA()
On Mon, Jun 10, 2013 at 4:47 PM, Tab Atkins Jr. jackalm...@gmail.comwrote:
Just throw away your notion that .find() does any scoping whatsoever.
Ok, will do.
It doesn't; all it does is provide a reference element, which is
matched by :scope and which is used to absolutize relative
The wording of the QSA and findAll definitions are a bit confusing to me.
Forgive me if I'm misunderstanding, but the definitions for querySelector[All]
and find[All] seem to be partly reversed.
First, the definition of subtrees seems clear enough:
The term subtrees refers to the set of
I was a little confused. I realized something I already knew in that
elem.querySelector[All] does limit the matched set to the descendants of
element, but the selector itself is not relative. Sorry about that.
I guess my only question now is what is the difference between the way
.find[All]
On 6/9/13 7:35 PM, Timmy Willison wrote:
I was a little confused. I realized something I already knew in that
elem.querySelector[All] does limit the matched set to the descendants of
element
Right. But find() does not, for what it's worth, depending on the exact
selector used. It can return