Changeset 139
- Timestamp:
- 2007-02-17 13:01:31 (20 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fckdomtools.js
r132 r139 89 89 if ( sTrimmed.length == 0 ) 90 90 { 91 node.removeChild( eChildNode ) ; 91 // If the trimmed text node is empty, just remove it. 92 93 // Use "eChildNode.parentNode" instead of "node" to avoid IE bug (#81). 94 eChildNode.parentNode.removeChild( eChildNode ) ; 92 95 continue ; 93 96 } 94 97 else if ( sTrimmed.length < iOriginalLength ) 95 98 { 99 // If the trimmed text lenght is less than the original 100 // lenght, strip all spaces from the end by splitting 101 // the text and removing the resulting useless node. 102 96 103 eChildNode.splitText( sTrimmed.length ) ; 97 node.removeChild( node.lastChild ) ; 104 // Use "node.lastChild.parentNode" instead of "node" to avoid IE bug (#81). 105 node.lastChild.parentNode.removeChild( node.lastChild ) ; 98 106 } 99 107 }