Ticket #2757: 2757.patch
File 2757.patch, 884 bytes (added by , 16 years ago) |
---|
-
editor/_source/classes/fckdomrange.js
470 470 // Also note that the node that we use for "address base" would change during backtracking. 471 471 var addrStart = this._Range.startContainer ; 472 472 var addrEnd = this._Range.endContainer ; 473 while ( curStart && addrStart.nodeType == 3 )473 while ( curStart && curStart.nodeType == 3 && addrStart.nodeType == 3 ) 474 474 { 475 475 bookmark.Start[0] += curStart.length ; 476 476 addrStart = curStart ; 477 477 curStart = curStart.previousSibling ; 478 478 } 479 while ( curEnd && addrEnd.nodeType == 3 )479 while ( curEnd && curEnd.nodeType == 3 && addrEnd.nodeType == 3 ) 480 480 { 481 481 bookmark.End[0] += curEnd.length ; 482 482 addrEnd = curEnd ;