From 8d1d4ca4c54d752dea77fa44aa75d472c3e64f09 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sat, 29 Oct 2011 22:20:57 +0200 Subject: [PATCH] Bug 697210 - Part b: Remove unnecessary IsHTML() check in nsDocument::CreateElement; r=bz --- content/base/src/nsDocument.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }