[Webkit-unassigned] [Bug 258997] New: "required" attribute should not affect <select> default selection

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 7 14:55:48 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=258997

            Bug ID: 258997
           Summary: "required" attribute should not affect <select>
                    default selection
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: BrowserCompat
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ahmad.saleem792 at gmail.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

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!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230707/68eac97e/attachment.htm>


More information about the webkit-unassigned mailing list