Skip to content

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

@anthonyjb

Description

@anthonyjb

The original issue was posted against ContentTools here: GetmeUK/ContentTools#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].

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions