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)
Core
DOM: Core & HTML
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.
| Assignee | ||
Comment 1•3 days ago
|
||
<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.
Updated•3 days ago
|
Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Updated•2 days ago
|
Severity: -- → S3
Pushed by kcirkel@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/3e5fa42a8ebb
https://hg.mozilla.org/integration/autoland/rev/c33dbc0b9e2e
Recognise a placeholder label option inside a wrapper element r=emilio
Comment 3•1 day ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 day ago
status-firefox157:
--- → fixed
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.
Description
•