The normalize method works incorrectly for TextNode objects in Internet Explorer 11

Applies to: Internet Explorer 11

Symptoms


The normalize method works incorrectly for TextNode objects on a webpage in Internet Explorer 11.

Resolution


Update information

To resolve this problem, install the most recent cumulative security update for Internet Explorer. To do this, go to Microsoft Update.

For technical information about the most recent cumulative security update for Internet Explorer, see the following Microsoft website:Note This update was first included in security update 2976627.

For more information about security update 2976627, click the following article number to view the article in the Microsoft Knowledge Base:
2976627 MS14-051: Cumulative security update for Internet Explorer: August 12, 2014

More Information


When you open a webpage that contains the following HTML code in Internet Explorer 11, the second alert displays "-d" but not "a-b-c-d."
<!DOCTYPE html>
<html>
<head>
<title>exo test</title>
<script type="text/javascript">
function testnormalize() {
var textnode1 = document.createTextNode("a-b-");
var textnode2 = document.createTextNode("c-d);
var sp = document.createElement("span");

sp.appendChild(textnode1);
sp.appendChild(textnode2);

alert(sp.innerHTML);
sp.normalize();
alert(sp.innerHTML);
}
</script>
</head>
<body>
<button onclick="testnormalize()">testnormalize</button>
</body>
</html>

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References


See the terminology that Microsoft uses to describe software updates.