@@ -12880,6 +12880,8 @@ interface <dfn>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
12880
12880
used are allowed according to the definitions in this specification, then the element does not
12881
12881
create any links.</span></p>
12882
12882
12883
+ <div w-nodev>
12884
+
12883
12885
<p><code data-x="attr-link-rel">rel</code>'s
12884
12886
<span data-x="concept-supported-tokens">supported tokens</span> are the keywords defined in
12885
12887
<a href="#linkTypes">HTML link types</a> which are allowed on <code>link</code> elements, impact
@@ -12901,6 +12903,15 @@ interface <dfn>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
12901
12903
tokens</span> must only include the tokens from this list that the user agent implements the
12902
12904
processing model for.</p>
12903
12905
12906
+ <p class="note">Theoretically a user agent could support the processing model for the <code
12907
+ data-x="rel-canonical">canonical</code> keyword — if it were a search engine that executed
12908
+ JavaScript. But in practice that's quite unlikely. So in most cases, <code
12909
+ data-x="rel-canonical">canonical</code> ought not be included in <code
12910
+ data-x="attr-link-rel">rel</code>'s <span data-x="concept-supported-tokens">supported
12911
+ tokens</span>.</p>
12912
+
12913
+ </div>
12914
+
12904
12915
<p>A <code>link</code> element must have either a <code data-x="attr-link-rel">rel</code>
12905
12916
attribute or an <code data-x="attr-itemprop">itemprop</code> attribute, but not both.</p>
12906
12917
@@ -23168,13 +23179,21 @@ interface <dfn>HTMLHyperlinkElementUtils</dfn> {
23168
23179
<tbody>
23169
23180
23170
23181
<tr>
23171
- <td><code data-x="rel-alternate">alternate</code></td> <!-- second most used <link rel> value -->
23182
+ <td><code data-x="rel-alternate">alternate</code></td> <!-- fourth most used rel value -->
23172
23183
<td><span>Hyperlink</span></td>
23173
23184
<td><span>Hyperlink</span></td>
23174
23185
<td class="no"> · </td>
23175
23186
<td>Gives alternate representations of the current document.</td>
23176
23187
</tr>
23177
23188
23189
+ <tr>
23190
+ <td><code data-x="rel-canonical">canonical</code></td> <!-- third most used rel value -->
23191
+ <td><span>Hyperlink</span></td>
23192
+ <td><em>not allowed</em></td>
23193
+ <td class="no"> · </td>
23194
+ <td>Gives the preferred URL for the current document.</td>
23195
+ </tr>
23196
+
23178
23197
<tr>
23179
23198
<td><code data-x="rel-author">author</code></td>
23180
23199
<td><span>Hyperlink</span></td>
@@ -23219,7 +23238,7 @@ interface <dfn>HTMLHyperlinkElementUtils</dfn> {
23219
23238
</tr>
23220
23239
23221
23240
<tr>
23222
- <td><code data-x="rel-icon">icon</code></td> <!-- link rel="shortcut icon" and its ilk are the fourth, sixth, and ninth most used values -->
23241
+ <td><code data-x="rel-icon">icon</code></td> <!-- second most used rel value -->
23223
23242
<td><span data-x="external resource link">External Resource</span></td>
23224
23243
<td><em>not allowed</em></td>
23225
23244
<td class="no"> · </td>
@@ -23555,6 +23574,17 @@ interface <dfn>HTMLHyperlinkElementUtils</dfn> {
23555
23574
</div>
23556
23575
23557
23576
23577
+ <h5>Link type "<dfn><code data-x="rel-canonical">canonical</code></dfn>"</h5>
23578
+
23579
+ <p>The <code data-x="rel-canonical">canonical</code> keyword may be used with <code>link</code>
23580
+ element. This keyword creates a <span>hyperlink</span>.</p>
23581
+
23582
+ <p>The <code data-x="rel-canonical">canonical</code> keyword indicates that URL given by the <code
23583
+ data-x="attr-link-href">href</code> attribute is the preferred URL for the current document. That
23584
+ helps search engines reduce duplicate content, as described in more detail in <cite>The Canonical
23585
+ Link Relation</cite> specification. <ref spec=RFC6596></p>
23586
+
23587
+
23558
23588
<h5>Link type "<dfn><code data-x="rel-dns-prefetch">dns-prefetch</code></dfn>"</h5>
23559
23589
23560
23590
<p>The <code data-x="rel-dns-prefetch">dns-prefetch</code> keyword may be used with
@@ -119758,6 +119788,9 @@ INSERT INTERFACES HERE
119758
119788
<dt id="refsRFC6350">[RFC6350]</dt>
119759
119789
<dd><cite><a href="https://tools.ietf.org/html/rfc6350">vCard Format Specification</a></cite>, S. Perreault. IETF.</dd>
119760
119790
119791
+ <dt id="refsRFC6596">[RFC6596]</dt>
119792
+ <dd><cite><a href="https://tools.ietf.org/html/rfc6596">The Canonical Link Relation</a></cite>, M. Ohye, J. Kupke. IETF.</dd>
119793
+
119761
119794
<dt id="refsRFC7303">[RFC7303]</dt>
119762
119795
<dd><cite><a href="https://tools.ietf.org/html/rfc7303">XML Media Types</a></cite>, H. Thompson, C. Lilley. IETF.</dd>
119763
119796
0 commit comments