Bug 245928

Summary: Updating Text nodes children of an OPTION element should not reset selection of the owner SELECT element.
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, karlcow, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: BrowserCompat, EasyFix, InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 255230    
Bug Blocks:    

Description Ahmad Saleem 2022-10-01 03:16:40 PDT
Hi Team,

This bug is to attempt to try Blink Merge of following commit to match with Web-Spec:

Commit - https://chromium.googlesource.com/chromium/src.git/+/d7d375b3c7777f6b7149fd26d9d892d5c5a8006a

Webkit GitHub link - https://github.com/WebKit/WebKit/blob/60dcab2dae6c8a40f0f926b9eedcff807cd33652/Source/WebCore/html/HTMLSelectElement.cpp#L425

Test Case - JSFiddle - https://jsfiddle.net/vwgc95tL/show

____

I tried to find related bug but couldn't so I am creating new one.

Thanks!
Comment 1 Karl Dubost 2022-10-02 20:13:37 PDT
Maybe easy fix.
Comment 2 Ahmad Saleem 2022-10-02 23:46:45 PDT
https://github.com/WebKit/WebKit/pull/4899
Comment 3 EWS 2022-10-03 08:08:48 PDT
Committed 255086@main (f0cfd47bb721): <https://commits.webkit.org/255086@main>

Reviewed commits have been landed. Closing PR #4899 and removing active labels.
Comment 4 Radar WebKit Bug Importer 2022-10-03 08:09:19 PDT
<rdar://problem/100717439>