Skip to content

Commit

Permalink
fix implicit submit/commandfor button logic
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Dec 6, 2024
1 parent 35849e7 commit d27d514
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -53483,10 +53483,8 @@ interface <dfn interface>HTMLButtonElement</dfn> : <span>HTMLElement</span> {
the element is specifically a <span data-x="concept-submit-button">submit button</span>.</p>

<p>If the <code data-x="attr-button-type">type</code> content attribute is present and in the
<span data-x="attr-button-type-submit-state">Submit Button</span> state, and the <code
data-x="attr-button-command">command</code> and <code
data-x="attr-button-commandfor">commandfor</code> content attributes are not present, then the
element is specifically a <span data-x="concept-submit-button">submit button</span>.</p>
<span data-x="attr-button-type-submit-state">Submit Button</span> state, then the element is
specifically a <span data-x="concept-submit-button">submit button</span>.</p>

<p><strong>Constraint validation</strong>: If the <code data-x="attr-button-type">type</code>
attribute is in the <span data-x="attr-button-type-reset-state">Reset Button</span> state or the
Expand Down Expand Up @@ -53593,6 +53591,10 @@ interface <dfn interface>HTMLButtonElement</dfn> : <span>HTMLElement</span> {
<p>If <var>invokee</var> is not null:</p>

<ol>
<li><p>If <var>element</var> has a <span>form owner</span> and <var>element</var>'s <code
data-x="attr-button-type">type</code> attribute is in the <span
data-x="attr-button-type-submit-state">Submit Button</span> state, then return.</p>

<li><p>Let <var>command</var> be <var>element</var>'s <code
data-x="attr-button-command">command</code> attribute value.</li>

Expand Down

0 comments on commit d27d514

Please sign in to comment.