Method elementPath.contains() incorrectly excludes root when fromTop is set to true #684
Labels
good first issue
Relatively easy to fix. This is a perfect issue if you are willing to create a Pull Request.
status:confirmed
An issue confirmed by the development team.
type:bug
A bug.
Milestone
Are you reporting a feature or a bug?
Bug
Check if the issue is already reported
https://dev.ckeditor.com/ticket/14603
Provide detailed reproduction steps (if any)
Method
elementPath.contains()
incorrectly excludes root whenfromTop
is set totrue
.b
element with a following call:Expected result
b
element is returned.Actual result
Method returns
null
.Other details
Reproducible since CKEditor 4.0.
The text was updated successfully, but these errors were encountered: