Clarify / Optimize <select> logic given that deeply nested <option> or <optgroup> are not supported, as per specification. An <option> is only associated with a <select> element if it is either a child of the <select> or a child of an <optgroup> that is itself a child of the <select>: - https://html.spec.whatwg.org/multipage/form-elements.html#concept-select-option-list As a result, an <optgroup> is only associated with a <select> element if it is a child of that <select>.
Created attachment 449210 [details] Patch
Comment on attachment 449210 [details] Patch r=me
Committed r288033 (246059@main): <https://commits.webkit.org/246059@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 449210 [details].
<rdar://problem/87619558>