rem: var TitleTextNode = document.createTextNode( TitleText ); 
add: var TitleTextNode = document.createTextNode( textString ); 
context: function getPreviewTextForRepeatingEvent( calendarEventDisplay ){	showTooltip = true;         var HolderBox = document.createElement( "vbox" );       if (calendarEventDisplay.event.title)   {      var TitleHtml = document.createElement( "description" );      var TitleText = "Title: "+calendarEventDisplay.event.title;            /*      if( calendarEventDisplay.event.recurUnits == "years" )      {         //count the number of years to figure out                  TitleText = TitleText+" "+getNumberOfRepeatTimes( calendarEventDisplay.event, false );      }*/      var TitleTextNode = document.createTextNode( TitleText );      TitleHtml.appendChild( TitleTextNode );      HolderBox.appendChild( TitleHtml );   }   var DateHtml = document.createElement( "description" );   var startDate = new Date( calendarEventDisplay.displayDate );   var DateText = document.createTextNode( "Start: "+gCalendarWindow.dateFormater.getFormatedDate( startDate )+" "+gCalendarWindow.dateFormater.getFormatedTime( startDate ) );   DateHtml.appendChild( DateText );   HolderBox.appendChild( DateHtml );   DateHtml = document.createElement( "description" );   startDate = new Date( calendarEventDisplay.displayEndDate );   DateText = document.createTextNode( "End: "+gCalendarWindow.dateFormater.getFormatedDate( startDate )+" "+gCalendarWindow.dateFormater.getFormatedTime( startDate ) );   DateHtml.appendChild( DateText );   HolderBox.appendChild( DateHtml );      if (calendarEventDisplay.event.description)   {     var Description =  "Description: "+calendarEventDisplay.event.description;     var lines = Description.split("\n");     var nbmaxlines = 5 ;     var nblines = lines.length ;     if( nblines > nbmaxlines ) {       var nblines = nbmaxlines ;       lines[ nblines - 1 ] = "..." ;     }       for (var i = 0; i < nblines; i++) {       var DescriptionHtml = document.createElement("description");       var DescriptionText = document.createTextNode(lines[i]);       DescriptionHtml.appendChild(DescriptionText);       HolderBox.appendChild(DescriptionHtml);     }   }   return ( HolderBox );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0f4889277ea2d47b71158b50d6b917786f8422b8/calendar.js/buggy/calendar/resources/content/calendar.js