Ticket #5117: 5117.patch
File 5117.patch, 946 bytes (added by , 14 years ago) |
---|
-
_source/core/dom/range.js
744 744 startContainer = startContainer.getParent(); 745 745 746 746 // Check all necessity of updating the end boundary. 747 if( collapsed ) 748 this.collapse( true ); 749 else if ( this.startContainer.equals( this.endContainer ) ) 747 if ( this.startContainer.equals( this.endContainer ) ) 750 748 this.setEnd( nextText, this.endOffset - this.startOffset ); 751 749 else if ( startContainer.equals( this.endContainer ) ) 752 750 this.endOffset += 1; … … 755 753 this.setStart( startContainer, startOffset ); 756 754 757 755 if ( collapsed ) 756 { 757 this.collapse( true ); 758 758 return; 759 } 759 } 760 } 760 761 761 762 var endContainer = this.endContainer; 762 763 var endOffset = this.endOffset;