Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 262791@main (d86fed1). https://bugs.webkit.org/show_bug.c…
…gi?id=255230 REGRESSION (255086@main): Safari 16.4 and above does not render <option> label/text updates until <select> is focused https://bugs.webkit.org/show_bug.cgi?id=255230 rdar://107838336 Reviewed by Chris Dumez. 255086@main removed the call to `HTMLSelectElement::setRecalcListItems` in `HTMLSelectElement::optionElementChildrenChanged` so that updating the text inside an <option> element does not reset the <select> element's selected option. However, this broke rendering of the option's new text, since `setRecalcListItems` contained logic to update the rendered text. Fix by reintroducing the logic that is responsible for ensuring the displayed text matches the <option> element's text. Add a regression (reference) test which would have caught this issue. * LayoutTests/fast/forms/select/selected-option-update-inner-html-expected.html: Added. * LayoutTests/fast/forms/select/selected-option-update-inner-html.html: Added. * Source/WebCore/html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::optionElementChildrenChanged): Canonical link: https://commits.webkit.org/262791@main
- Loading branch information