Skip to content

Commit cc7626a

Browse files
authored
Add a note explaining relList.supports() for feature detection
Closes w3c/preload#126.
1 parent 22154a4 commit cc7626a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source

+4
Original file line numberDiff line numberDiff line change
@@ -14080,6 +14080,10 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
1408014080
IDL attribute must <span data-x="reflect">reflect</span> the <code
1408114081
data-x="attr-link-rel">rel</code> content attribute.</p>
1408214082

14083+
<p class="note">The <code data-x="dom-link-rellist">relList</code> attribute can be used for
14084+
feature detection, by calling its <code data-x="dom-DOMTokenList-supports">supports()</code>
14085+
method to check which <a href="#linkTypes">types of links</a> are supported.</p>
14086+
1408314087
<h5>Processing the <code data-x="attr-link-media">media</code> attribute</h5>
1408414088

1408514089
<p>If the link is a <span>hyperlink</span> then the <code data-x="attr-link-media">media</code>

0 commit comments

Comments
 (0)