IE11 - Node.normalize() DOM Implementation Truncates Data When Adjacent Text Nodes Contain a Minus Sign

External Issue #106247

Details

Created
Apr 27, 2014
Privacy
This issue is public.
Found in build #
0.0011
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL = http://codepen.io/anon/pen/BxoKH

URL:

Repro Steps:

This Codepen reproduces the bug: http://codepen.io/anon/pen/BxoKH

In Chrome, Firefox, and earlier versions of IE, the output reads: ‘Test -Example’
In IE11, output reads: '-Example '

Below is the minimal code needed to reproduce this bug:

HTML:
<div id="exampleDiv"></div>

JS:
var exampleDiv = document.getElementById(‘exampleDiv’);
exampleDiv.appendChild(document.createTextNode('Test -'));
exampleDiv.appendChild(document.createTextNode('Example '));
exampleDiv.normalize();

Expected Results:

Adjacent text nodes should be concatenated with no loss of their text content, regardless of symbols included in the text.

Actual Results:

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Eugene V.”

      Changed Status to “Site Outreach”

      Changed Status from “Site Outreach” to “External”

      Changed Steps to Reproduce

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

    Sign in