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   

Ahmad Saleem
Reported 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!
Attachments
Radar WebKit Bug Importer
Comment 1 2023-07-14 14:56:15 PDT
Note You need to log in before you can comment on or make changes to this bug.