Changeset 621


Ignore:
Timestamp:
12/22/06 22:31:46 (11 years ago)
Author:
ray
Message:

oops, a bug...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r620 r621  
    59405940        if ( !editor.config.stripScripts ) 
    59415941        { 
    5942           var innerText = (HTMLArea.is_ie) ? "\n" + root.innerHTML.replace(/^[\n\r]*/,'').replace(/\s+$/,'') + '\n' + indent : root.firstChild.nodeValue; 
     5942          var innerText = (root.hasChildNodes()) ? ((HTMLArea.is_ie) ? "\n" + root.innerHTML.replace(/^[\n\r]*/,'').replace(/\s+$/,'') + '\n' + indent : root.firstChild.nodeValue) : ''; 
    59435943          html += innerText + '</'+root_tag+'>' + ((HTMLArea.is_ie) ? '\n' : ''); 
    59445944        } 
Note: See TracChangeset for help on using the changeset viewer.