Essentially this performs link.target = target, but with extra steps:
If the link is defined by an attribute of an HTML element, the element’s integrity attribute
(if any) is removed. (In case the new target has different content, the integrity attribute
could prevent it from being loaded.)
If the link is defined by an attribute of an HTML element, and config.rememberOriginalUrls is
true, the attribute’s existing value is preserved in a data-original-… attribute.
Note that modifying a Link’s target updates the Resource that
contains the link.
Set the link’s target to a new URL.
Essentially this performs
link.target = target
, but with extra steps:integrity
attribute (if any) is removed. (In case the new target has different content, the integrity attribute could prevent it from being loaded.)config.rememberOriginalUrls
istrue
, the attribute’s existing value is preserved in adata-original-…
attribute.Note that modifying a Link’s target updates the Resource that contains the link.