Ignore:
Timestamp:
03/12/07 23:03:08 (13 years ago)
Author:
ray
Message:

Ticket #981 No doctype in iframe content document/ editor always in quirks mode

File:
1 edited

Legend:

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

    r737 r771  
    458458  if ( target == 'textarea' ) this._textArea.focus(); 
    459459}; 
     460 
     461/** Return a doctype or empty string depending on whether the document is in Qirksmode or Standards Compliant Mode 
     462 *  It's hardly possible to detect the actual doctype without unreasonable effort, so we set HTML 4.01 just to trigger the rendering mode 
     463 *  
     464 * @param doc DOM element document 
     465 * @returns string doctype || empty 
     466 */ 
     467Xinha.getDoctype = function (doc) 
     468{ 
     469  return (doc.compatMode == "CSS1Compat") ? '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">' : ''; 
     470}; 
Note: See TracChangeset for help on using the changeset viewer.