docs: function getAncestorOrSelfWithJavascriptHref(element) {
      if (hasJavascriptHref(element)) {
          return element;
      }
      if (element.parentNode == null) {
          return null;
      }
      return getAncestorOrSelfWithJavascriptHref(element.parentNode);
  }