Skip to content

Commit dfbc871

Browse files
committed
Clarify that disabled does not prevent all modifications
Closes #7168.
1 parent 706b986 commit dfbc871

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

source

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54907,6 +54907,12 @@ interface <dfn interface>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
5490754907

5490854908
</div>
5490954909

54910+
<p class="note">Being <span data-x="concept-option-disabled">disabled</span> does not prevent all
54911+
modifications to the <code>option</code> element. For example, its <span
54912+
data-x="concept-option-selectedness">selectedness</span> could be modified programmatically from
54913+
JavaScript. Or, it could be indirectly modified by user action, e.g., if other non-disabled
54914+
<code>option</code> elements in the <code>select</code> element were modified.</p>
54915+
5491054916
<p>The <dfn element-attr for="option"><code data-x="attr-option-label">label</code></dfn>
5491154917
attribute provides a label for element. The <dfn data-x="concept-option-label">label</dfn> of an
5491254918
<code>option</code> element is the value of the <code data-x="attr-option-label">label</code>
@@ -57071,9 +57077,20 @@ form.method === input; // => true</code></pre>
5707157077

5707257078
<div w-nodev>
5707357079

57074-
<p>A form control that is <span data-x="concept-fe-disabled">disabled</span> must prevent any <code
57075-
data-x="event-click">click</code> events that are <span data-x="queue a task">queued</span> on the
57076-
<span>user interaction task source</span> from being dispatched on the element.</p>
57080+
<p>A form control that is <span data-x="concept-fe-disabled">disabled</span> must prevent any
57081+
<code data-x="event-click">click</code> events that are <span data-x="queue a task">queued</span>
57082+
on the <span>user interaction task source</span> from being dispatched on the element.</p>
57083+
57084+
</div>
57085+
57086+
<p class="note">Being <span data-x="concept-fe-disabled">disabled</span> does not prevent all
57087+
modifications to the form control. For example, the control's <span
57088+
data-x="concept-fe-value">value</span> or <span data-x="concept-fe-checked">checkedness</span>
57089+
could be modified programmatically from JavaScript. Or, they could be indirectly modified by user
57090+
action, e.g., if other non-disabled elements in the control's <span>radio button group</span> were
57091+
modified.</p>
57092+
57093+
<div w-nodev>
5707757094

5707857095
<p><strong>Constraint validation</strong>: If an element is <span
5707957096
data-x="concept-fe-disabled">disabled</span>, it is <span>barred from constraint

0 commit comments

Comments
 (0)