Daniel Glazman wrote: > I would recommend dropping the pseudo-class :scope and make a simpler > model where a fictional :scope pseudo-class and a descendant > combinator are prepended to all selectors passed as the argument of > the corresponding APIs. > There are cases where you will need to match only immediate children using such queryScopedSelector() function. Possible solutions: element.$("> .child"); element.$(":root > .child"); :root here is the element itself - root of the lookup. BTW: the name of the function queryScopedSelectorAll() has at least one technical and one grammatical error. Can we rename it somehow? -- Andrew Fedoniouk. http://terrainformatica.comReceived on Wednesday, 20 January 2010 16:59:42 UTC
This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:42 UTC