Closed
Bug 1696123
Opened 3 years ago
Closed 3 years ago
Cloning <input> should always copy its checkedness
Categories
(Core :: DOM: Forms, defect)
Core
DOM: Forms
Tracking
()
RESOLVED
FIXED
88 Branch
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: saschanaz, Assigned: saschanaz)
Details
Attachments
(1 file)
https://html.spec.whatwg.org/multipage/input.html#the-input-element:concept-fe-checked-8
The cloning steps for input elements must propagate the value, dirty value flag, checkedness, and dirty checkedness flag from the node being cloned to the copy.
<input id=x type=date><script>x.checked = true;console.log(x.checked);console.log(x.cloneNode().checked);
Currently Gecko only copies it when it's a checkbox or a radio button.
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Assignee: nobody → krosylight
Status: NEW → ASSIGNED
Updated•3 years ago
|
Severity: -- → S3
Component: DOM: Core & HTML → DOM: Forms
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/81a73031b162 Always copy the checkedness of input elements r=edgar
Comment 3•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox88:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/28004 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
•