fixes bugs 46782,50161,48643,49266,49265,46395;

This commit is contained in:
jfrancis@netscape.com
2000-08-26 04:03:50 +00:00
parent a4b0c495e8
commit 2c6de8186b
26 changed files with 2084 additions and 1044 deletions

View File

@@ -42,6 +42,7 @@ nsHTMLEditUtils::IsBody(nsIDOMNode *node)
{
nsAutoString tag;
nsEditor::GetTagString(node,tag);
tag.ToLowerCase();
if (tag.EqualsWithConversion("body"))
{
return PR_TRUE;
@@ -573,4 +574,11 @@ nsHTMLEditUtils::IsDescendantOf(nsIDOMNode *aNode, nsIDOMNode *aParent)
}
PRBool
nsHTMLEditUtils::IsLeafNode(nsIDOMNode *aNode)
{
if (!aNode) return PR_FALSE;
PRBool hasChildren = PR_FALSE;
aNode->HasChildNodes(&hasChildren);
return !hasChildren;
}