Changeset 669


Ignore:
Timestamp:
01/16/07 09:27:03 (13 years ago)
Author:
gogo
Message:

ticket:857 Firefox fails to load in fullpage mode when <link ..> tag in
wrong place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r667 r669  
    22792279      html = html.replace(Xinha.RE_doctype, ""); 
    22802280    } 
     2281     
     2282    //Fix Firefox problem with link elements not in right place (just before head) 
     2283    var match = html.match(/<link\s+[\s\S]*?["']\s*\/?>/gi); 
     2284    html = html.replace(/<link\s+[\s\S]*?["']\s*\/?>\s*/gi, ''); 
     2285    match ? html = html.replace(/<\/head>/i, match.join('\n') + "\n</head>") : null;     
    22812286  } 
    22822287  doc.write(html); 
Note: See TracChangeset for help on using the changeset viewer.