|
@@ -240,7 +240,7 @@ export default class TreeWalker {
|
|
|
let charactersCount = node.data.length;
|
|
let charactersCount = node.data.length;
|
|
|
let item;
|
|
let item;
|
|
|
|
|
|
|
|
- // If text stick out of walker range, we need to cut it and wrap by TextProxy.
|
|
|
|
|
|
|
+ // If text stick out of walker range, we need to cut it and wrap in TextProxy.
|
|
|
if ( node == this._boundaryEndParent ) {
|
|
if ( node == this._boundaryEndParent ) {
|
|
|
charactersCount = this.boundaries.end.offset;
|
|
charactersCount = this.boundaries.end.offset;
|
|
|
item = new TextProxy( node, 0, charactersCount );
|
|
item = new TextProxy( node, 0, charactersCount );
|
|
@@ -352,7 +352,7 @@ export default class TreeWalker {
|
|
|
let charactersCount = node.data.length;
|
|
let charactersCount = node.data.length;
|
|
|
let item;
|
|
let item;
|
|
|
|
|
|
|
|
- // If text stick out of walker range, we need to cut it and wrap by TextProxy.
|
|
|
|
|
|
|
+ // If text stick out of walker range, we need to cut it and wrap in TextProxy.
|
|
|
if ( node == this._boundaryStartParent ) {
|
|
if ( node == this._boundaryStartParent ) {
|
|
|
const offset = this.boundaries.start.offset;
|
|
const offset = this.boundaries.start.offset;
|
|
|
|
|
|