Hi
> >
> > var myDomElement;
> > qx.bom.Collection.query(".MyTargetClass",myDomElement)[0];
> You don't have to provide the second parameter. This will set the start of
> the
> query. If you want to query the whole document just remove it.
That's the point, I want to query from the element base, not the whole
document. Actually what I want is a bit more complex, I want to return:
> .FirstClass > .SecondClass
from the element base, that is an element that has the current element as a
grandfather (and has the class SecondClass, with its parent the class
FirstClass).
I cannot really do this with Collection.query, because if I write:
qx.bom.Collection.query(".FirstClass > .SecondClass",myDomElement)[0];
it can return an element that had not the base element as a grandfather...
All these problems would be solved if the :root syntax was supported I
guess, but as it is not what should I use ?
Jean-Noel
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel