IE11 RTM: Implicit br-tags in innerHTML on empty content editable elements. - by Strandman

Status : 


ID 802442 Comments
Status Active Workarounds
Type Bug Repros 2
Opened 9/26/2013 10:37:48 PM
Access Restriction Public


When working in Content Editable Mode in IE11 Edge mode, all elements that has contentEditable attribute set to "true" and is empty, has an implicit <br> tag when reading innerHTML even if childNodes.length == 0. No earlier IE versions have this strange behavior. If the innerHTML does not reflect the true node contents, then it makes it hard to use innerHTML at all in an Content Editable Environment.
Sign in to post a comment.
Posted by tvance929 on 7/2/2014 at 1:19 PM
This issue breaks a simple attempt to see if the contentEditable area is blank ... for instance if (!$.trim($("#divProfileName").html())) works in EVERYTHING but IE 11 because of the '<br>'.
Posted by Microsoft on 9/30/2013 at 9:46 AM
Thank you for your feedback. We will be investigating this issue further.

Best regards,

The Internet Explorer Team