Bug 258997

Summary: "required" attribute should not affect <select> default selection
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2023-07-07 14:55:48 PDT
Hi Team,

While going through Blink's commit, I came across another failing test case:

Test Case: data:text/html;charset=utf-8,<select required><option value=""
disabled>Placeholder<option>First</select><select><option value=""
disabled>Placeholder<option>First</select>

Expected Result: [First] [First]
Actual Result: [Placeholder] [First]

Blink Commit: https://src.chromium.org/viewvc/blink?view=revision&revision=190795

Test Case from above commit: https://jsfiddle.net/o460dszn/show

^ Failing following:

FAIL valueMissingFor("select-disabled-option-2") should be false. Was true.
FAIL document.getElementById("select-disabled-option-2").selectedIndex should be 1. Was 0.

_______________

Just wanted to raise, so we can fix it.

Thanks!
Comment 1 Radar WebKit Bug Importer 2023-07-14 14:56:15 PDT
<rdar://problem/112290058>