A bit like the parameter to Element#up, the selector would define where to stop. Eg:
<html> <body> <div class="content"> <p> blah <span id="interesting-content"> not really so interesting </span> </p> </div> </body> </html> $('interesting-content').ancestors('div#content') returns: [<p>, <div#content>] Not: [<p>, <div#content>, <body>, <html>] Because body and hmtl usually aren't that useful anyway. Does this sound useful? Think of any other refinements? -- Jim my wiki ajaxification thing: http://wikizzle.org my blog: http://jimhigson.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to prototype-core-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---