Metreeca MIME
    Preparing search index...

    Function link

    • Reads a selected value as a link.

      Resolves the reference against the base URL in scope at node, as recorded by the xml and html parsers, so that consumers always work on absolute IRIs, wherever the reference appears in the document. References are returned unresolved for computed values and for trees without a base URL, such as trees parsed from text without a base argument.

      Parameters

      • node: Target

        The Target to read, either a selected node or a computed value

      Returns string

      The IRI written in the text of node, resolved against the base URL in scope at node, if any

      TypeError If the text of node is neither an IRI nor a relative reference