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

Status : 

  External<br /><br />
		This item may be valid but belongs to an external system out of the direct control of this product team.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

ID 802442 Comments
Status Closed 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 Microsoft on 4/4/2016 at 9:38 AM
We've moved! This issue is now being tracked at
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