diff --git a/source b/source index b34a55aa01a..4be1ec0cc43 100644 --- a/source +++ b/source @@ -57092,12 +57092,8 @@ interface HTMLOptGroupElement : HTMLElement {
  1. If optgroup has a child legend element, then return the result of - stripping and collapsing ASCII - whitespace from the concatenation of data of all the - Text node descendants of optgroup's first child legend - element, in tree order, excluding any that are descendants of descendants of the - legend that are themselves script or SVG - script elements.

  2. + get HTML-aware text content given optgroup's first legend + element child and true.

  3. Otherwise, return the value of optgroup's label attribute.

  4. @@ -57257,8 +57253,8 @@ interface HTMLOptionElement : HTMLElement {

    The value attribute provides a value for element. The value of an option element is the value of the value - content attribute, if there is one, or, if there is not, the result of collect option - text given this and false.

    + content attribute, if there is one, or, if there is not, the result of get HTML-aware text + content given this and false.

    The selected @@ -57535,8 +57531,8 @@ interface HTMLOptionElement : HTMLElement {

    The text - getter steps are to return the result of collect option text given this - and false.

    + getter steps are to return the result of get HTML-aware text content given + this and false.

    @@ -57595,14 +57591,15 @@ interface HTMLOptionElement : HTMLElement {
    -

    To collect option text, given an option element option and a +

    To get HTML-aware text content, given an element element and a boolean includeAltText:

    1. Let text be the empty string.

    2. -

      For each descendant descendant of option in tree order:

      +

      For each descendant descendant of element in tree + order:

      1. If descendant is a script or SVG @@ -57613,20 +57610,13 @@ interface HTMLOptionElement : HTMLElement { concatenation of text and descendant's data.

      2. -
      3. -

        If descendant is an img element and includeAltText is - true, then:

        - -
          -
        1. If the value of descendant's alt - attribute is not empty, then set text to the concatenation of text, - " ", the value of descendant's alt attribute, and " ".

        2. +
        3. If descendant is an img element with an alt attribute and includeAltText is true, then set + text to the concatenation of text and the value of + descendant's alt attribute.

        4. -
        5. Continue skipping all descendants of - descendant.

        6. -
        -
      4. +
      5. If descendant is an img element, then continue + skipping all descendants of descendant.

    3. @@ -148366,8 +148356,9 @@ progress { appearance: auto; }

      The '::checkmark' pseudo-element only applies to option elements which are being rendered with base appearance.

      -

      An optgroup element is expected to be rendered by displaying the - element's label attribute.

      +

      An optgroup element is expected to be rendered by displaying the result + of get an optgroup element's + label given the element.

      To determine if a select's options are being rendered with base @@ -148392,7 +148383,7 @@ progress { appearance: auto; } being rendered with base appearance.

      An option element is expected to be rendered by displaying the result - of collect option text given the option and true, indented under its + of get HTML-aware text content given the option and true, indented under its optgroup element if it has one. If the option is being rendered with base appearance and the option's label attribute is not set, then the