diff --git a/content/base/src/nsDocument.cpp b/content/base/src/nsDocument.cpp index eb2dfd162be..0cd9ab21fa2 100644 --- a/content/base/src/nsDocument.cpp +++ b/content/base/src/nsDocument.cpp @@ -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; }