Skip to content

Commit 8bcbbf9

Browse files
committed
Add early returns
1 parent 4bfab38 commit 8bcbbf9

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

source

+4-8
Original file line numberDiff line numberDiff line change
@@ -48262,7 +48262,7 @@ interface <dfn interface>HTMLInputElement</dfn> : <span>HTMLElement</span> {
4826248262
<li><p>Run <var>element</var>'s <dfn>input activation behavior</dfn>, if any, and do nothing
4826348263
otherwise.</p></li>
4826448264

48265-
<li><p>If <var>element</var> has a <span>form owner</span> and <var>element</var>is not in the
48265+
<li><p>If <var>element</var> has a <span>form owner</span> and <var>element</var> is not in the
4826648266
<span data-x="attr-input-type-button">Button</span> state, then return.</p></li>
4826748267

4826848268
<li><p>Run the <span>popover target attribute activation behavior</span> given <var>element</var>
@@ -53602,16 +53602,12 @@ interface <dfn interface>HTMLButtonElement</dfn> : <span>HTMLElement</span> {
5360253602
then <span data-x="concept-form-submit">submit</span> <var>element</var>'s
5360353603
<span>form owner</span> from <var>element</var> with <i
5360453604
data-x="submit-user-involvement">userInvolvement</i> set to <var>event</var>'s <span
53605-
data-x="event-uni">user navigation involvement</span>.</p></li>
53605+
data-x="event-uni">user navigation involvement</span>, and return.</p></li>
5360653606

5360753607
<li><p>If <var>element</var>'s <code data-x="attr-button-type">type</code> attribute is in the
5360853608
<span data-x="attr-button-type-reset-state">Reset Button</span> state, then <span
53609-
data-x="concept-form-reset">reset</span> <var>element</var>'s
53610-
<span>form owner</span>.</p></li>
53611-
53612-
<li><p>If <var>element</var>'s <code data-x="attr-button-type">type</code> attribute is not in
53613-
the <span data-x="attr-button-type-button-state">Button</span> or the <span
53614-
data-x="attr-button-type-auto-state">Auto</span> state, then return.</p></li>
53609+
data-x="concept-form-reset">reset</span> <var>element</var>'s <span>form owner</span>, and
53610+
return.</p></li>
5361553611
</ol>
5361653612
</li>
5361753613

0 commit comments

Comments
 (0)