find selector inside xhp tree

This change makes xhp be able to find a selector inside a tree and not only in the main element.