ContentSelect icon indicating copy to clipboard operation
ContentSelect copied to clipboard

(IE specific) Incorrect query results when last character is wrapped in a tag

Open anthonyjb opened this issue 8 years ago • 2 comments

The original issue was posted against ContentTools here: https://github.com/GetmeUK/ContentTools/issues/369

The results of querying a selection in IE Edge (Microsoft Edge 38.14393.0.0 - Microsoft EdgeHTML 14.14393) in some cases returns an incorrect range length. That is the start range value is correct but the end range value is too long.

To reproduce the issue:

  1. Use the following HTML...
<p>A line with a <a href="#">link<a></p>
  1. Select the word link within the browser.
  2. Query for the result. It should return a range of [14, 18], but will return a range of [14, 20].

anthonyjb avatar Jan 27 '17 16:01 anthonyjb

Is someone already planning to fix this bug?

ChrisKanger avatar May 04 '17 09:05 ChrisKanger

Hi @ChrisKanger any help would be very much appreciated in tracking down and resolving the issue.

anthonyjb avatar May 04 '17 09:05 anthonyjb