Ticket #6992: 6992.patch
File 6992.patch, 1.0 KB (added by , 12 years ago) |
---|
-
_source/plugins/selection/plugin.js
647 647 // Start the measuring until distance overflows, meanwhile count the text nodes. 648 648 while ( distance > 0 ) 649 649 { 650 child= child[ position > 0 ? 'previousSibling' : 'nextSibling' ];650 var next = child[ position > 0 ? 'previousSibling' : 'nextSibling' ]; 651 651 try 652 652 { 653 distance -= child.nodeValue.length;653 distance -= next.nodeValue.length; 654 654 } 655 655 // Measurement in IE could be somtimes wrong because of <select> element. (#4611) 656 656 catch( e ) 657 657 { 658 658 return { container : parent, offset : getNodeIndex( child ) }; 659 659 } 660 661 child = next; 660 662 } 661 663 662 664 return { container : child, offset : position > 0 ? -distance : child.nodeValue.length + distance };