Skip to content

Commit 34adbed

Browse files
committed
Update content model for select
This needs refinement after accessibility semantics/constraints are figured out: #10317
1 parent cf37251 commit 34adbed

File tree

1 file changed

+54
-13
lines changed

1 file changed

+54
-13
lines changed

source

+54-13
Original file line numberDiff line numberDiff line change
@@ -4280,6 +4280,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
42804280
<li><dfn data-x-href="https://w3c.github.io/aria/#aria-describedby"><code data-x="attr-aria-describedby">aria-describedby</code></dfn></li>
42814281
<li><dfn data-x-href="https://w3c.github.io/aria/#aria-disabled"><code data-x="attr-aria-disabled">aria-disabled</code></dfn></li>
42824282
<li><dfn data-x-href="https://w3c.github.io/aria/#aria-label"><code data-x="attr-aria-label">aria-label</code></dfn></li>
4283+
<li><dfn data-x-href="https://w3c.github.io/aria/#aria-hidden"><code data-x="attr-aria-hidden">aria-hidden</code></dfn></li>
42834284
</ul>
42844285

42854286
<p>Finally, the following terms are defined <cite>ARIA</cite>: <ref>ARIA</ref></p>
@@ -12808,6 +12809,48 @@ https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%
1280812809
</ul>
1280912810

1281012811

12812+
<h6>Decorative image elements</h6>
12813+
12814+
<p><dfn>Decorative image elements</dfn> are images which don't have any accessibility information
12815+
associated with them. Therefore, if they are removed from the rendering, there is no loss of
12816+
information to users.</p>
12817+
12818+
<p>The following are <span>decorative image elements</span>:</p>
12819+
12820+
<ul class="brief category-list">
12821+
<li><code>img</code> elements with the <code data-x="attr-img-alt">alt</code> attribute set to an
12822+
empty string.</li>
12823+
12824+
<li><span>SVG <code>svg</code></span> elements with the <code
12825+
data-x="attr-aria-hidden">aria-hidden</code> attribute set.</li>
12826+
</ul>
12827+
12828+
<h6>Select element inner content elements</h6>
12829+
12830+
<p><dfn>Select element inner content elements</dfn> are <code>option</code> elements and other
12831+
elements which are used to group and decorate them with a <code>select</code> element.</p>
12832+
12833+
<p>The following are <span>select element inner content elements</span>:</p>
12834+
12835+
<ul class="brief category-list">
12836+
<li><code>option</code> elements.</li>
12837+
12838+
<li><code>optgroup</code> elements.</li>
12839+
12840+
<li><code>hr</code> elements.</li>
12841+
12842+
<li><span>script-supporting elements</span>.</li>
12843+
12844+
<li><code>noscript</code> elements.</li>
12845+
12846+
<li><code>div</code> elements.</li>
12847+
12848+
<li><code>span</code> elements.</li>
12849+
12850+
<li><span>decorative image elements</span>.</li>
12851+
</ul>
12852+
12853+
1281112854

1281212855
<h5>Transparent content models</h5>
1281312856

@@ -53226,7 +53269,9 @@ interface <dfn interface>HTMLButtonElement</dfn> : <span>HTMLElement</span> {
5322653269
<dt><span data-x="concept-element-contexts">Contexts in which this element can be used</span>:</dt>
5322753270
<dd>Where <span>phrasing content</span> is expected.</dd>
5322853271
<dt><span data-x="concept-element-content-model">Content model</span>:</dt>
53229-
<dd>Zero or more <code>option</code>, <code>optgroup</code>, <code>hr</code>, and <span data-x="script-supporting elements">script-supporting</span> elements.</dd>
53272+
<dd>Either: Zero or more <span>select element inner content elements</span>.</dd>
53273+
<dd>Or: One <code>datalist</code>.</dd>
53274+
<dd>Zero or one child <code>button</code>.</dd>
5323053275
<dt><span data-x="concept-element-attributes">Content attributes</span>:</dt>
5323153276
<dd><span>Global attributes</span></dd>
5323253277
<dd><code data-x="attr-fe-autocomplete">autocomplete</code></dd>
@@ -53900,8 +53945,8 @@ interface <dfn interface>HTMLSelectElement</dfn> : <span>HTMLElement</span> {
5390053945
<dt><span data-x="concept-element-contexts">Contexts in which this element can be used</span>:</dt>
5390153946
<dd>Where <span>phrasing content</span> is expected.</dd>
5390253947
<dt><span data-x="concept-element-content-model">Content model</span>:</dt>
53903-
<dd>Either: <span>phrasing content</span>.</dd> <!-- we don't require a <select> element descendant, since there might be zero suggestions -->
53904-
<dd>Or: Zero or more <code>option</code> and <span data-x="script-supporting elements">script-supporting</span> elements.</dd>
53948+
<dd>Either: <span>Phrasing content</span> if not the child of a <code>select</code> element.</dd> <!-- we don't require a <select> element descendant, since there might be zero suggestions -->
53949+
<dd>Or: Zero or more <span>select element inner content elements</span>.</dd>
5390553950
<dt><span data-x="concept-element-attributes">Content attributes</span>:</dt>
5390653951
<dd><span>Global attributes</span></dd>
5390753952
<dt><span
@@ -54002,9 +54047,9 @@ interface <dfn interface>HTMLDataListElement</dfn> : <span>HTMLElement</span> {
5400254047
<dt><span data-x="concept-element-categories">Categories</span>:</dt>
5400354048
<dd>None.</dd>
5400454049
<dt><span data-x="concept-element-contexts">Contexts in which this element can be used</span>:</dt>
54005-
<dd>As a child of a <code>select</code> element.</dd>
54050+
<dd>As a descendant of a <code>select</code> element.</dd>
5400654051
<dt><span data-x="concept-element-content-model">Content model</span>:</dt>
54007-
<dd>Zero or more <code>option</code> and <span data-x="script-supporting elements">script-supporting</span> elements.</dd>
54052+
<dd>Zero or <span>select element inner content elements</span>.</dd>
5400854053
<dt><span data-x="concept-element-attributes">Content attributes</span>:</dt>
5400954054
<dd><span>Global attributes</span></dd>
5401054055
<dd><code data-x="attr-optgroup-disabled">disabled</code></dd>
@@ -54099,17 +54144,13 @@ interface <dfn interface>HTMLOptGroupElement</dfn> : <span>HTMLElement</span> {
5409954144
<dt><span data-x="concept-element-categories">Categories</span>:</dt>
5410054145
<dd>None.</dd>
5410154146
<dt><span data-x="concept-element-contexts">Contexts in which this element can be used</span>:</dt>
54102-
<dd>As a child of a <code>select</code> element.</dd>
54103-
<dd>As a child of a <code>datalist</code> element.</dd>
54104-
<dd>As a child of an <code>optgroup</code> element.</dd>
54147+
<dd>As a descendant of a <code>select</code> element.</dd>
54148+
<dd>As a descendant of a <code>datalist</code> element.</dd>
54149+
<dd>As a descendant of an <code>optgroup</code> element.</dd>
5410554150
<dt><span data-x="concept-element-content-model">Content model</span>:</dt>
5410654151
<dd>If the element has a <code data-x="attr-option-label">label</code> attribute and a <code data-x="attr-option-value">value</code> attribute: <span data-x="concept-content-nothing">Nothing</span>.</dd>
5410754152
<dd>If the element has a <code data-x="attr-option-label">label</code> attribute but no <code data-x="attr-option-value">value</code> attribute: <span data-x="text content">Text</span>.</dd>
54108-
<dd>If the element has no <code data-x="attr-option-label">label</code> attribute and is not a
54109-
child of a <code>datalist</code> element: <span data-x="text content">Text</span> that is not
54110-
<span>inter-element whitespace</span>.</dd>
54111-
<dd>If the element has no <code data-x="attr-option-label">label</code> attribute and is a child
54112-
of a <code>datalist</code> element: <span data-x="text content">Text</span>.</dd>
54153+
<dd>If the element has no <code data-x="attr-option-label">label</code> attribute: <span>Text content</span> and zero or more <code>div</code>, <code>span</code>, <code>noscript</code>, <span data-x="decorative image elements">decorative image</span>, and <span data-x="script-supporting elements">script-supporting</span> elements.</dd>
5411354154
<dt><span data-x="concept-element-attributes">Content attributes</span>:</dt>
5411454155
<dd><span>Global attributes</span></dd>
5411554156
<dd><code data-x="attr-option-disabled">disabled</code></dd>

0 commit comments

Comments
 (0)