Skip to content

Commit 7568930

Browse files
authored
Fix button element type getter steps
Buttons in the Auto state that are submit buttons now return "submit" correctly. Fixes #11046.
1 parent 55355b4 commit 7568930

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source

+9-4
Original file line numberDiff line numberDiff line change
@@ -53794,12 +53794,17 @@ interface <dfn interface>HTMLButtonElement</dfn> : <span>HTMLElement</span> {
5379453794
getter steps are:</p>
5379553795

5379653796
<ol>
53797-
<li><p>Let <var>state</var> be <span>this</span>'s <code
53798-
data-x="attr-button-type">type</code> attribute.</p></li>
53797+
<li><p>If <var>this</var> is a <span data-x="concept-submit-button">submit button</span>, then
53798+
return "<code data-x="">submit</code>".</p></li>
53799+
53800+
<li><p>Let <var>state</var> be <span>this</span>'s <code data-x="attr-button-type">type</code>
53801+
attribute.</p></li>
53802+
53803+
<li><p><span>Assert</span>: <var>state</var> is not in the <span
53804+
data-x="attr-button-type-submit-state">Submit Button</span> state.</p></li>
5379953805

5380053806
<li><p>If <var>state</var> is in the <span data-x="attr-button-type-auto-state">Auto</span>
53801-
state and <span>this</span> is not a <span data-x="concept-submit-button">submit button</span>,
53802-
then return "<code data-x="">button</code>".</p></li>
53807+
state, then return "<code data-x="">button</code>".</p></li>
5380353808

5380453809
<li><p>Return the keyword value corresponding to <var>state</var>.</p></li>
5380553810
</ol>

0 commit comments

Comments
 (0)