Skip to content

Commit

Permalink
Add a note explaining relList.supports() for feature detection
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr authored and mfreed7 committed Jun 3, 2022
1 parent 0388323 commit 80f4980
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -14083,6 +14083,10 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
IDL attribute must <span data-x="reflect">reflect</span> the <code
data-x="attr-link-rel">rel</code> content attribute.</p>

<p class="note">The <code data-x="dom-link-rellist">relList</code> attribute can be used for
feature detection, by calling its <code data-x="dom-DOMTokenList-supports">supports()</code>
method to check which <a href="#linkTypes">types of links</a> are supported.</p>

<h5>Processing the <code data-x="attr-link-media">media</code> attribute</h5>

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

0 comments on commit 80f4980

Please sign in to comment.