Skip to content

Commit d75a481

Browse files
author
Ana Sollano Kim
committed
setFormValue() returns silently for elements with submit behavior
1 parent 809a55a commit d75a481

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

source

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79089,8 +79089,7 @@ dictionary <dfn dictionary>AttachInternalsOptions</dfn> {
7908979089
<span>"<code>NotSupportedError</code>"</span> <code>DOMException</code>.</p></li>
7909079090

7909179091
<li><p>If <var>element</var> <span data-x="has-behavior">has a behavior</span> of type
79092-
<code>HTMLSubmitButtonBehavior</code>, then throw a
79093-
<span>"<code>NotSupportedError</code>"</span> <code>DOMException</code>.</p></li>
79092+
<code>HTMLSubmitButtonBehavior</code>, then return.</p></li>
7909479093

7909579094
<li><p>Set <var>element</var>'s <span
7909679095
data-x="face-submission-value">submission value</span> to <var>value</var> if <var>value</var> is
@@ -79110,6 +79109,14 @@ dictionary <dfn dictionary>AttachInternalsOptions</dfn> {
7911079109
</ol>
7911179110
</div>
7911279111

79112+
<p class="note">For elements with <code>HTMLSubmitButtonBehavior</code>, <code
79113+
data-x="dom-ElementInternals-setFormValue">setFormValue()</code> returns without modifying the
79114+
element's <span data-x="face-submission-value">submission value</span>. During form submission,
79115+
the <span data-x="constructing the entry list">construct the entry list</span> algorithm uses the
79116+
behavior's <span data-x="behavior-name">name</span> and <span
79117+
data-x="behavior-value">value</span> instead, mirroring how native submit buttons contribute their
79118+
name/value pair only when they are the submitter.</p>
79119+
7911379120
<hr>
7911479121

7911579122
<p>Each <span>form-associated custom element</span> has validity flags named

0 commit comments

Comments
 (0)