std/html/link
std/html/src/link.trb
Link: what an attribute that holds a URL takes (href, src, action, formaction, poster, cite). A
String is not a Link, so a page cannot link to text it did not get from a Uri or a UriReference.
trait Link
trait Link
Where a link points, as text that is safe to put into a URL attribute. target() answers the reference itself for a
relative reference and for the schemes http, https and mailto, and about:invalid for every other scheme
(javascript:, data:, file:, ...), which a browser does not navigate to.
fn target
fn target(): String
The text written into the attribute: the reference, or about:invalid where its scheme is not allowed.
extend Uri with Link
extend Uri with Link
A Uri is a link when its scheme is http, https or mailto; any other scheme is about:invalid.
fn target
fn target(): String
extend UriReference with Link
extend UriReference with Link
A UriReference is a link when it is relative or its scheme is http, https or mailto.
fn target
fn target(): String