External link hardening
Links leaving the current origin get rel='noopener noreferrer' by default, follow a configurable target policy, and can show the destination host to defeat look-alike link text. An optional confirmation step is available for untrusted hosts.
Planned. This page shows the specification from issue #209. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A link column where the display text differs from the actual host for some rows.
Expected behavior
showHost appends the real hostname. confirmExternal opens an accessible dialog before navigation. Opening in a new tab always includes noopener.
Planned API surface
linkPolicy.targetlinkPolicy.rellinkPolicy.showHostlinkPolicy.confirmExternalonExternalLinkActivateAcceptance criteria
- _blank links always include noopener, even when the custom rel omits it. (pending)
- The shown host is derived from the parsed URL, not from the display text. (pending)
- The confirmation dialog can be cancelled with Escape and returns focus to the link. (pending)
- onExternalLinkActivate can cancel navigation. (pending)