docs: function findClosestLink( ele )    {
          while ( ele ) {
              // Look for the closest element with a nodeName of "a".
              // Note that we are checking if we have a valid nodeName
              // before attempting to access it. This is because the
              // node we get called with could have originated from within
              // an embedded SVG document where some symbol instance elements
              // don't have nodeName defined on them, or strings are of type
              // SVGAnimatedString.
              if ( ( typeof ele.nodeName === "string" ) && ele.nodeName.toLowerCase() === "a" ) {
                  break;
              }
              ele = ele.parentNode;
          }
          return ele;
      }