Create a new Alias node, ensuring that the target node has the required anchor.
If node already has an anchor, name is ignored.
Otherwise, the node.anchor value will be set to name,
or if an anchor with that name is already present in the document,
name will be used as a prefix for a new unique anchor.
If name is undefined, the generated anchor will use 'a' as a prefix.
Create a new
Alias
node, ensuring that the targetnode
has the required anchor.If
node
already has an anchor,name
is ignored. Otherwise, thenode.anchor
value will be set toname
, or if an anchor with that name is already present in the document,name
will be used as a prefix for a new unique anchor. Ifname
is undefined, the generated anchor will use 'a' as a prefix.