After calling appendChild, checked nodes are no longer shown as checked using innerHTML property

Fixed Issue #14969030

Details

Author
Ondrej S.
Created
Dec 5, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Sample:

<div id="editor" contenteditable="true" data-ckeditor="true"></div>
<div>
<input name="fieldControlId2" id="kid1" type="radio" checked="checked" value="1">
<input name="fieldControlId2" id="kid2" type="radio" value="2">
</div>
var root = document.getElementById(‘editor’);
var kid1 = document.getElementById(‘kid1’);
var kid2 = document.getElementById(‘kid2’);
root.appendChild(kid1);
root.appendChild(kid2);
alert(root.innerHTML);

Notice the checked="checked" is no longer present.
JsFiddle: https://jsfiddle.net/svejdo1/tpghugv2/1/

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

    • Hi Ondrej,

      What version of Windows 10 are you using for this test?  I could not repro this in 16299.64.  Win + S type winver and hit enter.

      Thank you for the help,

      Steve

    • Microsoft Edge Team

      Changed Status to “Fixed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in