邮件mailto是否链接有效的URL? [英] Is an email mailto link a valid URL?
问题描述
根据URL语法,应该是按照协议在冒号后面有斜杠。电子邮件链接,例如
According to the URL syntax there are supposed to be slashes after the colon following the protocol. An email link, e.g.
mailto:bla@shoe.com
,但不包含这些斜杠。
这些地址是否可以被视为有效的URL?
Can these addresses be considered valid URLs ?
推荐答案
URI标准是 STD 66 目前映射到 RFC 3986 。
The URI standard is STD 66 which currently maps to RFC 3986.
您从某些URI(例如,从HTTP URI,如 http://example.com/
)知道的双斜杠在 权限组件,但这个权限组件是不需要通过通用URI语法(仅 scheme 和 路径 )。
The double slash you know from some URIs (e.g., from HTTP URIs like http://example.com/
) precedes the authority component, but this authority component is not required by the generic URI syntax (only scheme and path are).
所以, mailto
URI方案不使用权限组件,因此没有 //
在方案组件之后。
So, the mailto
URI scheme is not using the authority component, and therefore there is no //
after the scheme component.
这篇关于邮件mailto是否链接有效的URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!