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