Fix for bug 244392 (Removing lines form a Bullet list using the [ back arrow ] or [Delete] keys results in <> and </> tags embedded in code when in Normal Mode). r=brade, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@160993 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -4141,6 +4141,15 @@ nsHTMLDocument::CreateElem(nsIAtom *aName, nsIAtom *aPrefix,
|
||||
"HTML elements in an HTML document should have "
|
||||
"kNamespaceID_None as their namespace ID.");
|
||||
|
||||
if (IsXHTML() &&
|
||||
(aDocumentDefaultType || aNamespaceID == kNameSpaceID_XHTML)) {
|
||||
nsCAutoString name, lcName;
|
||||
aName->ToUTF8String(name);
|
||||
ToLowerCase(name, lcName);
|
||||
NS_ASSERTION(lcName.Equals(name),
|
||||
"aName should be lowercase, fix caller.");
|
||||
}
|
||||
|
||||
return nsDocument::CreateElem(aName, aPrefix, aNamespaceID,
|
||||
aDocumentDefaultType, aResult);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user