docs: public static Element getAncestor(Element element, Tag tag) {
  
          if ((element == null) || (tag == null)) {
              return null;
          }
          if (element.getTagName().equalsIgnoreCase(tag.name())) {
              return element;
          }
          if (element.getTagName().equalsIgnoreCase(Tag.body.name())) {
              return null;
          }
          return getAncestor(element.getParentElement(), tag);
      }