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.

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