Changeset 450


Ignore:
Timestamp:
01/18/06 22:59:02 (14 years ago)
Author:
mokhet
Message:

apply stripTag patch from ticket #656 and fix BSD-style bracing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r449 r450  
    23112311    node.style.cssText = declarations.join("; "); 
    23122312  } 
    2313   function stripTag(el) { 
    2314     if (HTMLArea.is_ie) 
     2313  if (HTMLArea.is_ie) 
     2314  { 
     2315    function stripTag(el) 
     2316    { 
    23152317      el.outerHTML = HTMLArea.htmlEncode(el.innerText); 
    2316     else { 
     2318      ++stats.mso_xmlel; 
     2319    } 
     2320  } 
     2321  else 
     2322  { 
     2323    function stripTag(el) 
     2324    { 
    23172325      var txt = document.createTextNode(HTMLArea.getInnerText(el)); 
    23182326      el.parentNode.insertBefore(txt, el); 
    23192327      HTMLArea.removeFromParent(el); 
    2320     } 
    2321     ++stats.mso_xmlel; 
     2328      ++stats.mso_xmlel; 
     2329    } 
    23222330  } 
    23232331  function checkEmpty(el) { 
Note: See TracChangeset for help on using the changeset viewer.