|
|
@@ -125,7 +125,7 @@ this.singlefile.top = this.singlefile.top || (() => {
|
|
|
let selectionFound = false;
|
|
|
const ancestorElement = range.commonAncestorContainer != Node.ELEMENT_NODE ? range.commonAncestorContainer.parentElement : range.commonAncestorContainer;
|
|
|
ancestorElement.setAttribute(SELECTED_CONTENT_ROOT_ATTRIBUTE_NAME, "");
|
|
|
- while (treeWalker.nextNode() && treeWalker.currentNode != range.endContainer) {
|
|
|
+ while (treeWalker.nextNode() && treeWalker.currentNode != range.endContainer) {
|
|
|
if (treeWalker.currentNode == range.startContainer) {
|
|
|
selectionFound = true;
|
|
|
}
|