Ticket #6999: 6999.patch
File 6999.patch, 691 bytes (added by , 13 years ago) |
---|
-
_source/plugins/selection/plugin.js
647 649 648 650 // Actual range anchor right beside test range at the inner boundary of text node. 649 651 if ( !distance ) 650 return { container : parent, offset : getNodeIndex( child ) + ( position > 0 ? -1: 1 ) };652 return { container : parent, offset : getNodeIndex( child ) + ( position > 0 ? 0 : 1 ) }; 651 653 652 654 // Start the measuring until distance overflows, meanwhile count the text nodes. 653 655 while ( distance > 0 )