((doctype.getPublicId().indexOf("HTML") != -1) &&
(doctype.getPublicId().indexOf("//W3C//DTD ") != -1))))) {
ADocument doc = null;
if ((hasRequestedFeature("HTML", "1.0")) ||
(hasRequestedFeature("HTML", null))) {
doc = new CDom1HTMLDocument(true, null);
} else {
doc = new CDom2HTMLDocument(true, null);
}
doc.setImplementation(this);
if (doctype != null) {
doc.appendChild(doctype);
}
return doc;
} // end if
ADocument doc = null;
if ((hasRequestedFeature("HTML", "1.0")) ||
(hasRequestedFeature("HTML", null))) {
doc = new CDom1HTMLDocument(true, null);
} else {
doc = new CDom2HTMLDocument();
}
doc.setImplementation(this);
if (doctype != null) {