Bug 697210 - Part b: Remove unnecessary IsHTML() check in nsDocument::CreateElement; r=bz

This commit is contained in:
Ms2ger 2011-10-29 22:20:57 +02:00
parent a505598085
commit e169ba623f

View File

@ -4380,9 +4380,7 @@ nsDocument::CreateElement(const nsAString& aTagName,
}
rv = CreateElem(needsLowercase ? lcTagName : aTagName,
nsnull,
IsHTML() ? kNameSpaceID_XHTML : GetDefaultNamespaceID(),
true, aReturn);
nsnull, mDefaultElementType, false, aReturn);
return rv;
}