Ticket #7023: 7023_2.patch
File 7023_2.patch, 1015 bytes (added by , 13 years ago) |
---|
-
_source/plugins/selection/plugin.js
664 664 665 665 var siblings = parent.children, 666 666 child, 667 sibling, 667 668 testRange = range.duplicate(), 668 669 startIndex = 0, 669 670 endIndex = siblings.length - 1, … … 741 742 // Start the measuring until distance overflows, meanwhile count the text nodes. 742 743 while ( distance > 0 ) 743 744 { 744 child = child[ position > 0 ? 'previousSibling' : 'nextSibling' ];745 745 try 746 746 { 747 distance -= child.nodeValue.length; 747 sibling = child[ position > 0 ? 'previousSibling' : 'nextSibling' ]; 748 distance -= sibling.nodeValue.length; 749 child = sibling; 748 750 } 749 751 // Measurement in IE could be somtimes wrong because of <select> element. (#4611) 750 752 catch( e )