@@ -51410,6 +51410,10 @@ ldh-str = < as defined in <a href="https://www.rfc-editor.org/rfc/rfc10
51410
51410
51411
51411
<div w-nodev>
51412
51412
51413
+ <p>The element's <span data-x="concept-fe-optional-value">optional value</span> is the value of
51414
+ the element's <code data-x="attr-button-value">value</code> attribute, if there is one, or null
51415
+ otherwise.</p>
51416
+
51413
51417
<p>The element's <span>input activation behavior</span> given <var>event</var> is as follows:</p>
51414
51418
51415
51419
<ol>
@@ -53865,7 +53869,9 @@ interface <dfn interface>HTMLButtonElement</dfn> : <span>HTMLElement</span> {
53865
53869
<p>The <dfn element-attr for="button"><code data-x="attr-button-value">value</code></dfn>
53866
53870
attribute gives the element's value for the purposes of form submission. The element's <span
53867
53871
data-x="concept-fe-value">value</span> is the value of the element's <code
53868
- data-x="attr-button-value">value</code> attribute, if there is one, or the empty string
53872
+ data-x="attr-button-value">value</code> attribute, if there is one, or the empty string otherwise.
53873
+ The element's <span data-x="concept-fe-optional-value">optional value</span> is the value of the
53874
+ element's <code data-x="attr-button-value">value</code> attribute, if there is one, or null
53869
53875
otherwise.</p>
53870
53876
53871
53877
<p class="note">A button (and its value) is only included in the form submission if the button
@@ -56648,6 +56654,11 @@ interface <dfn interface>HTMLLegendElement</dfn> : <span>HTMLElement</span> {
56648
56654
default value. If it is false, <span data-x="concept-fe-value">value</span> mirrors the default
56649
56655
value. If it is true, the default value is ignored.</p>
56650
56656
56657
+ <p>Some form controls also have an <dfn data-x="concept-fe-optional-value">optional value</dfn>
56658
+ this largely mirrors the <span data-x="concept-fe-value">value</span> but doesn't normalize to an
56659
+ empty string. <span class="note">This <!--non-normative-->should be used sparingly you generally
56660
+ want <span data-x="concept-fe-value">value</span></span>.</p>
56661
+
56651
56662
<p><code>input</code>, <code>textarea</code>, and <code>select</code> elements have a
56652
56663
<dfn>user validity</dfn> boolean. It is initially set to false.</p>
56653
56664
@@ -60398,8 +60409,9 @@ fur
60398
60409
</ol>
60399
60410
</li>
60400
60411
60401
- <li><p>Otherwise, if <var>submitter</var> has a <span data-x="concept-fe-value">value</span>,
60402
- then set <var>result</var> to that <span data-x="concept-fe-value">value</span>.</p></li>
60412
+ <li><p>Otherwise, if <var>submitter</var> has an <span
60413
+ data-x="concept-fe-optional-value">optional value</span>, then set <var>result</var> to that
60414
+ <span data-x="concept-fe-optional-value">optional value</span>.</p></li>
60403
60415
60404
60416
<li><p><span>Close the dialog</span> <var>subject</var> with <var>result</var>.</p></li>
60405
60417
@@ -62609,7 +62621,7 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {
62609
62621
62610
62622
<ol>
62611
62623
<li><p>Let <var>value</var> be <var>invoker</var>'s <span
62612
- data-x="concept-fe-value">value</span>.</p></li>
62624
+ data-x="concept-fe-optional- value">optional value</span>.</p></li>
62613
62625
62614
62626
<li><p><span>Close the dialog</span> <var>element</var> with <var>value</var>.</p></li>
62615
62627
</ol>
0 commit comments