ContentSelect
ContentSelect copied to clipboard
(IE specific) Incorrect query results when last character is wrapped in a tag
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:
- Use the following HTML...
<p>A line with a <a href="#">link<a></p>
- Select the word link within the browser.
- Query for the result. It should return a range of [14, 18], but will return a range of [14, 20].
Is someone already planning to fix this bug?
Hi @ChrisKanger any help would be very much appreciated in tracking down and resolving the issue.