Changeset 816


Ignore:
Timestamp:
04/17/07 16:06:18 (12 years ago)
Author:
wymsy
Message:

ticket:735 - IE eating scripts and comments at the beginning of pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/InternetExplorer/InternetExplorer.js

    r794 r816  
    143143   // Xinha will present del externally (see Xinha.prototype.outwardHtml 
    144144   html = html.replace(/<(\/?)del(\s|>|\/)/ig, "<$1strike$2"); 
     145   // ie eats scripts and comments at beginning of page, so 
     146   // make sure there is something before the first script on the page 
     147   html = html.replace(/(&nbsp;)?([\s\S]*?)(<script|<!--)/i,"$2&nbsp;$3"); 
     148    
     149   return html; 
     150} 
     151 
     152InternetExplorer.prototype.outwardHtml = function(html) 
     153{ 
     154   // remove space added before first script on the page 
     155   html = html.replace(/&nbsp;(\s*)(<script|<!--)/i,"$1$2"); 
    145156    
    146157   return html; 
Note: See TracChangeset for help on using the changeset viewer.