Closed Bug 1696123 Opened 3 years ago Closed 3 years ago

Cloning <input> should always copy its checkedness

Categories

(Core :: DOM: Forms, defect)

defect

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: nobody → krosylight
Status: NEW → ASSIGNED
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
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
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.

Attachment

General

Created:
Updated:
Size: