data link for - speced/respec GitHub Wiki
Applies to: <a>, <section>, <p>, other elements
Sets the default lookup context (scope) for links — matches definitions that have a corresponding data-dfn-for. Use this when two interfaces have members with the same name.
<!-- Link to Request's url, not Response's url -->
<a data-link-for="Request">url</a>
<!-- Preferred shorthand: -->
[= Request/url =]
{{ Request/url }}<section data-link-for="Request">
<p>The <a>method</a> attribute returns the HTTP method.</p>
<p>The <a>url</a> attribute returns the request URL.</p>
</section>- Set
data-link-foron a<section>(or<p>) to apply the scope to all links within it — avoids repeating on every<a> - The
[= Interface/member =]and{{ Interface/member }}shorthands are preferred overdata-link-foron individual links - Use
data-dfn-forto set scope on definitions (not links) - See the Shorthands Guide for the
[= =]and{{ }}syntaxes