@@ -314,6 +314,7 @@ <h3>Dependencies</h3>
314
314
<!-- Replacement enabled --> < li > < dfn > < a href =https://html.spec.whatwg.org/#replacement-enabled > Replacement enabled</ a > </ dfn >
315
315
<!-- Reset algorithm --> < li > < dfn > < a href =https://html.spec.whatwg.org/#concept-form-reset-control > Reset algorithm</ a > </ dfn >
316
316
<!-- Reset Button --> < li > < dfn > < a href ="https://html.spec.whatwg.org/#reset-button-state-%28type=reset%29 "> Reset Button</ a > </ dfn > state
317
+ <!-- Resettable element --> < li > < dfn > < a href =https://html.spec.whatwg.org/#category-reset > Resettable</ a > </ dfn > element
317
318
<!-- Script execution environment --> < li > < dfn > < a href =https://html.spec.whatwg.org/#environment > Script execution environment</ a > </ dfn >
318
319
<!-- Script --> < li > < dfn > < a href =https://html.spec.whatwg.org/#concept-script > Script</ a > </ dfn >
319
320
<!-- Selectedness --> < li > < dfn > < a href =https://html.spec.whatwg.org/#concept-option-selectedness > Selectedness</ a > </ dfn >
@@ -5297,9 +5298,8 @@ <h3>Element Clear</h3>
5297
5298
</ table >
5298
5299
5299
5300
< p > The < dfn > Element Clear</ dfn > < a > command</ a >
5300
- < a > scrolls into view</ a > an < a > editable</ a > < a > element</ a > , or
5301
- an < a > < code > input</ code > element</ a > whose < a > < code > type</ code >
5302
- attribute</ a > is < a > File</ a > and then attempts to clear
5301
+ < a > scrolls into view</ a > an < a > editable</ a >
5302
+ or < a > resettable</ a > < a > element</ a > and then attempts to clear
5303
5303
its < a > selected files</ a > or < a > text content</ a > .
5304
5304
5305
5305
< p > The < a > remote end steps</ a > are:
@@ -5312,8 +5312,9 @@ <h3>Element Clear</h3>
5312
5312
of < a > trying</ a > to < a > get a known element</ a >
5313
5313
with argument < var > element id</ var > .
5314
5314
5315
- < li > < p > If < var > element</ var > is not < a > editable</ a > return
5316
- an < a > error</ a > with < a > error code</ a > < a > invalid element state</ a > .
5315
+ < li > < p > If < var > element</ var > is not < a > editable</ a > and is
5316
+ not < a > resettable</ a > return an < a > error</ a > with < a > error
5317
+ code</ a > < a > invalid element state</ a > .
5317
5318
5318
5319
< li > < p > < a > Scroll into view</ a > the < var > element</ var > .
5319
5320
@@ -5330,7 +5331,7 @@ <h3>Element Clear</h3>
5330
5331
5331
5332
< li > If < var > element</ var > is < a > content editable</ a > follow the steps
5332
5333
required to < a > clear a content editable element</ a > . Otherwise,
5333
- follow the steps required to < a > clear an editable element</ a > .
5334
+ follow the steps required to < a > clear a resettable element</ a > .
5334
5335
5335
5336
< li > < p > Return < a > success</ a > with data < a > < code > null</ code > </ a > .
5336
5337
</ ol >
@@ -5347,12 +5348,10 @@ <h3>Element Clear</h3>
5347
5348
< li > < p > Set < var > element</ var > 's < a > < code > innerHTML</ code > IDL
5348
5349
attribute</ a > to an empty string.
5349
5350
5350
- < li > < p > < a > Fire</ a > an < a > < code > input</ code > event</ a > .
5351
-
5352
5351
< li > < p > Run the < a > unfocusing steps</ a > for the < var > element</ var > .
5353
5352
</ ol > <!-- /clearing a content editable element -->
5354
5353
5355
- < p > When required to < dfn > clear an editable element</ dfn > a < a > remote
5354
+ < p > When required to < dfn > clear a resettable element</ dfn > a < a > remote
5356
5355
end</ a > must run the following steps:
5357
5356
5358
5357
< ol >
@@ -5363,8 +5362,6 @@ <h3>Element Clear</h3>
5363
5362
5364
5363
< li > < p > Run < var > element</ var > 's < a > reset algorithm</ a > .
5365
5364
5366
- < li > < p > < a > Fire</ a > an < a > < code > input</ code > event</ a > .
5367
-
5368
5365
< li > < p > Run the < a > unfocusing steps</ a > for the < var > element</ var > .
5369
5366
</ ol > <!-- /clearing an editable element -->
5370
5367
0 commit comments