Skip to content

Commit

Permalink
Document naming convention for element-reflecting attributes
Browse files Browse the repository at this point in the history
Context: w3c/aria#1878.
  • Loading branch information
annevk authored Feb 27, 2023
1 parent a32ab9b commit 3de95e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -8230,6 +8230,10 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
</li>
</ul>

<p class="note"><span data-x="reflected IDL attribute">Reflected IDL attributes</span> of this
type are strongly encouraged to have their identifier end in "<code data-x="">Element</code>" for
consistency.</p>

<p>If a <span>reflected IDL attribute</span> <var>attr</var> has the type <code
data-x="">FrozenArray&lt;<var>T</var>&gt;?</code>, where <var>T</var> is either
<code>Element</code> or an interface that inherits from <code>Element</code>, then:</p>
Expand Down Expand Up @@ -8402,6 +8406,10 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
</li>
</ul>

<p class="note"><span data-x="reflected IDL attribute">Reflected IDL attributes</span> of this
type are strongly encouraged to have their identifier end in "<code data-x="">Elements</code>" for
consistency.</p>

</div>

<h4>Collections</h4>
Expand Down

0 comments on commit 3de95e7

Please sign in to comment.