Changeset 771 for trunk/modules/Gecko


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/Gecko/Gecko.js

    r754 r771  
    739739   
    740740  return result; 
    741 } 
     741}; 
     742 
     743/** Return the doctype of a document, if set 
     744 *  
     745 * @param doc DOM element document 
     746 * @returns string the actual doctype 
     747 */ 
     748Xinha.getDoctype = function (doc) 
     749{ 
     750  var d = ''; 
     751  if (doc.doctype) 
     752  { 
     753    d += '<!DOCTYPE ' + doc.doctype.name + " PUBLIC "; 
     754    d +=  doc.doctype.publicId ? '"' + doc.doctype.publicId + '"' : '';   
     755    d +=  doc.doctype.systemId ? ' "'+ doc.doctype.systemId + '"' : '';  
     756    d += ">"; 
     757  } 
     758  return d; 
     759}; 
Note: See TracChangeset for help on using the changeset viewer.