Bug 258997 - "required" attribute should not affect <select> default selection
Summary: "required" attribute should not affect <select> default selection
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-07-07 14:55 PDT by Ahmad Saleem
Modified: 2023-07-14 14:56 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>