HTMLDocument::HTMLDocument(const DocumentInit& initializer, DocumentClassFlags extendedDocumentClasses) : Document(initializer, HTMLDocumentClass | extendedDocumentClasses) { clearXMLVersion(); if (isSrcdocDocument() || initializer.importsController()) { DCHECK(inNoQuirksMode()); lockCompatibilityMode(); } }
HTMLDocument::HTMLDocument(const DocumentInit& initializer, DocumentClassFlags extendedDocumentClasses) : Document(initializer, HTMLDocumentClass | extendedDocumentClasses) { ScriptWrappable::init(this); clearXMLVersion(); if (isSrcdocDocument() || initializer.importsController()) { ASSERT(inNoQuirksMode()); lockCompatibilityMode(); } }