You're visiting a deprecated Prototype API Documentation page for Element.ancestors. This URL is deprecated and will no longer be supported.

In 10 seconds, you'll be redirected to the latest version of this documentation: /doc/latest/dom/Element/ancestors

Please update your links and sorry for the incovenience.

If you want a different version of this documentation, please head to the documentation versions index page.