Closed Bug 2068707 Opened 3 days ago Closed 1 day ago

Placeholder label option should not check if parent is select.

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: keithamus, Assigned: keithamus)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

No description provided.

<select required><div><option value="" selected></option></div></select> does
not match :invalid, but it should. The option is in the select's list of
options, so it is selected and counts as a value, but IsValueMissing doesn't
treat it as the placeholder label option because its parent node is a <div>
rather than the select.

This is also a spec bug, as the spec mentions the parent element should be a
<select>. https://github.com/whatwg/html/issues/12892 has been filed to
address this in spec.

Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Severity: -- → S3
Status: ASSIGNED → RESOLVED
Closed: 1 day ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/62444 for changes under testing/web-platform/tests

Upstream PR merged by moz-wptsync-bot

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: