diff --git a/source b/source index 64e056b72e1..4f60ad98ed2 100644 --- a/source +++ b/source @@ -54076,18 +54076,29 @@ interface HTMLSelectElement : HTMLElement { order that has its selectedness set to true, if any. If there isn't one, then it must return −1.
-On setting, the selectedIndex
attribute must run
- the following steps:
The selectedIndex
setter steps are:
Set the selectedness of all the
- option
elements in the list of
- options to false.
Let firstMatchingOption be null.
For each option in the select
's list of options:
Set option's selectedness + to false.
The option
element in the list of
- options whose index is the given new value, if
- any, must have its selectedness set to true and
- its dirtiness set to true.
If firstMatchingOption is null and option's index is equal to the given new value, then set + firstMatchingOption to option.
If firstMatchingOption is not null, then set firstMatchingOption's + selectedness to true and set + firstMatchingOption's dirtiness to + true.
Run update a select
's selectedcontent
given this
select
.
To get the option
element nearest ancestor select
given an
- option
option:
option
option, run these steps. They return a select
or null.
To maybe clone an option
into selectedcontent
, given an
- option
option:
option
option, run these steps:
Let select be option's option
element nearest