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:

    -
  1. Set the selectedness of all the - option elements in the list of - options to false.

  2. +
  3. Let firstMatchingOption be null.

  4. + +
  5. +

    For each option in the select's list of options:

    + +
      +
    1. Set option's selectedness + to false.

    2. -
    3. 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.

    4. +
    5. If firstMatchingOption is null and option's index is equal to the given new value, then set + firstMatchingOption to option.

    6. +
    +
  6. + +
  7. If firstMatchingOption is not null, then set firstMatchingOption's + selectedness to true and set + firstMatchingOption's dirtiness to + true.

  8. Run update a select's selectedcontent given this select.

  9. @@ -54589,7 +54600,7 @@ interface HTMLOptionElement : HTMLElement {

    To get the option element nearest ancestor select given an - option option:

    + option option, run these steps. They return a select or null.

    1. @@ -54606,7 +54617,7 @@ interface HTMLOptionElement : HTMLElement {

    To maybe clone an option into selectedcontent, given an - option option:

    + option option, run these steps:

    1. Let select be option's option element nearest