Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 21 additions & 11 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -58403,21 +58403,29 @@ interface <dfn interface>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
JavaScript. Or, it could be indirectly modified by user action, e.g., if other non-disabled
<code>option</code> elements in the <code>select</code> element were modified.</p>

<div algorithm>
<p>The <dfn element-attr for="option"><code data-x="attr-option-label">label</code></dfn>
attribute provides a label for element. The <dfn data-x="concept-option-label">label</dfn> of an
<code>option</code> element is the value of the <code data-x="attr-option-label">label</code>
content attribute, if there is one and its value is not the empty string, or, otherwise, the value
of the element's <code data-x="dom-option-text">text</code> IDL attribute.</p>
attribute provides a label for the element.</p>

<div algorithm>
<p>To <dfn data-x="concept-option-label">get an <code>option</code> element's label</dfn>, given
an <code>option</code> element <var>option</var> and a boolean <var>includeAltText</var>:</p>

<ol>
<li><p>If <var>option</var> has a <code data-x="attr-option-label">label</code> attribute whose
value is not the empty string, then return that value.</p></li>

<li><p>Return the result of <span>collect option text</span> given <var>option</var> and
<var>includeAltText</var>.</p></li>
</ol>
</div>

<p>The <code data-x="attr-option-label">label</code> content attribute, if specified, must not be
empty.</p>

<div algorithm>
<p>The <dfn element-attr for="option"><code data-x="attr-option-value">value</code></dfn>
attribute provides a value for element. The <dfn data-x="concept-option-value">value</dfn> of an
<code>option</code> element is the value of the <code data-x="attr-option-value">value</code>
attribute provides a value for the element. The <dfn data-x="concept-option-value">value</dfn> of
an <code>option</code> element is the value of the <code data-x="attr-option-value">value</code>
content attribute, if there is one, or, if there is not, the result of <span>collect option
text</span> given <span>this</span> and false.</p>
</div>
Expand Down Expand Up @@ -58665,8 +58673,9 @@ interface <dfn interface>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
<li><p>Let <var>attribute</var> be <span>this</span>'s <code
data-x="attr-option-label">label</code> attribute.</p></li>

<li><p>If <var>attribute</var> is null, then return <span>this</span>'s <span
data-x="concept-option-label">label</span>.</p></li>
<li><p>If <var>attribute</var> is null, then return the result of <span
data-x="concept-option-label">getting an <code>option</code> element's label</span> given
<span>this</span> and false.</p></li>

<li><p>Return <var>attribute</var>'s <span
data-x="concept-attribute-value">value</span>.</p></li>
Expand Down Expand Up @@ -153749,8 +153758,9 @@ progress { appearance: auto; }</code></pre>

<p>Otherwise, if an <code>option</code> element is not being <span
data-x="option-base-appearance">rendered with base appearance</span>, then it is
<span>expected</span> to be rendered by displaying the result of <span>collect option text</span>
given the <code>option</code> and true.</p>
<span>expected</span> to be rendered by displaying the result of <span
data-x="concept-option-label">getting an <code>option</code> element's label</span> given the
<code>option</code> and true.</p>

<p>Otherwise, it is <span>expected</span> to render with a <span>shadow tree</span>
that contains the following elements:</p>
Expand Down
Loading