Wix limits the URL types to prevent abuse and ensure system integrity and security. As stated in the Text API :
The href attribute can contain all link types in the Wix link format.
I believe that both the HtmlComponent and the CustomElement are also “sandboxed” and may prevent using other “non Wix-type links”.