Ticket #4763: 4763_2.patch
File 4763_2.patch, 1009 bytes (added by , 13 years ago) |
---|
-
_source/core/dom/range.js
742 742 743 743 startOffset = startContainer.getIndex() + 1; 744 744 startContainer = startContainer.getParent(); 745 // Check if it is necessary to update the end boundary. 746 if ( !collapsed && this.startContainer.equals( this.endContainer ) ) 745 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 750 this.setEnd( nextText, this.endOffset - this.startOffset ); 751 else if ( startContainer.equals( this.endContainer ) ) 752 this.endOffset += 1; 748 753 } 749 754 750 755 this.setStart( startContainer, startOffset ); 751 756 752 757 if ( collapsed ) 753 this.collapse( true );758 return; 754 759 } 755 760 756 761 var endContainer = this.endContainer;