Ticket #4642: 4642.patch
File 4642.patch, 1015 bytes (added by , 13 years ago) |
---|
-
editor/_source/internals/fckxhtml_ie.js
116 116 return ; 117 117 118 118 // Clear the _fckhtmljob attribute. 119 if ( typeof node._fckxhtmljob !== 'undefined')120 node.removeAttribute('_fckxhtmljob');119 if ( typeof node._fckxhtmljob == 'undefined' && node.tagName !== 'BODY') 120 return; 121 121 122 node.removeAttribute('_fckxhtmljob') ; 122 123 // Recurse upon child nodes. 123 124 if ( node.hasChildNodes() ) 124 125 { 125 126 var childNodes = node.childNodes ; 126 127 for ( var i = childNodes.length - 1 ; i >= 0 ; i-- ) 127 FCKXHtml._RemoveXHtmlJobProperties( childNodes.item(i) ) ; 128 { 129 var child = childNodes[i]; 130 // Funny IE. #4642. It say that it has child nodes but their parent is not this node. Skip them 131 if (child.parentNode == node) 132 FCKXHtml._RemoveXHtmlJobProperties( child ) ; 133 } 128 134 } 129 135 } 130 136