On May 29, 5:32 am, David <david.kar...@gmail.com> wrote:
> I need to select the lowest element containing a given string.

What does "lowest" mean?  The one with the most ancestors, or the one
whose ancestors have the largest index of their siblings?  e.g.

<div id="d0">
  <div>
    <div>
      <p id="p0">
    </div>
  </div>
  <div>
    <p id="p1">
  </div>
</div>

Given the document tree blow d0, which is "lower", p0 or p1?


--
Rob

Reply via email to