Diff for /loncom/html/htmlarea/Attic/htmlarea.js between versions 1.4 and 1.5

version 1.4, 2004/06/02 00:55:16 version 1.5, 2005/02/17 08:59:45
Line 2038  HTMLArea.getHTML = function(root, output Line 2038  HTMLArea.getHTML = function(root, output
     case 3: // Node.TEXT_NODE      case 3: // Node.TEXT_NODE
  // If a text node is alone in an element and all spaces, replace it with an non breaking one   // If a text node is alone in an element and all spaces, replace it with an non breaking one
  // This partially undoes the damage done by moz, which translates ' 's into spaces in the data element   // This partially undoes the damage done by moz, which translates ' 's into spaces in the data element
  if ( !root.previousSibling && !root.nextSibling && root.data.match(/^\s*$/i) ) html = ' ';   // this was   but since are document encodings are all over the place it causes random havoc
    if ( !root.previousSibling && !root.nextSibling && root.data.match(/^\s*$/i) ) html = ' ';
  else html = HTMLArea.htmlEncode(root.data);   else html = HTMLArea.htmlEncode(root.data);
  break;   break;
     case 8: // Node.COMMENT_NODE      case 8: // Node.COMMENT_NODE

Removed from v.1.4  
changed lines
  Added in v.1.5


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>