This commit is contained in:
rickg%netscape.com 1999-04-24 01:39:50 +00:00
Родитель 6c3e2e06c8
Коммит cc64c0dc7a
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -48,7 +48,7 @@ PRBool nsTextEditRules::NodeIsType(nsIDOMNode *aNode, nsIAtom *aTag)
{
nsAutoString tag;
element->GetTagName(tag);
if (tag.Equals(aTag))
if (tag.Equals(aTag->GetUnicode()))
{
return PR_TRUE;
}

Просмотреть файл

@ -1806,7 +1806,7 @@ NS_IMETHODIMP nsTextEditor::RemoveTextPropertiesForNode(nsIDOMNode *aNode,
if (gNoisy) { printf("* parent has tag %s\n", tag.ToNewCString()); } // XXX leak!
if (NS_SUCCEEDED(result))
{
if (PR_FALSE==tag.Equals(aPropName))
if (PR_FALSE==tag.Equals(aPropName->GetUnicode()))
{
PRInt32 offsetInParent;
result = nsIEditorSupport::GetChildOffset(newMiddleNode, parent, offsetInParent);

Просмотреть файл

@ -48,7 +48,7 @@ PRBool nsTextEditRules::NodeIsType(nsIDOMNode *aNode, nsIAtom *aTag)
{
nsAutoString tag;
element->GetTagName(tag);
if (tag.Equals(aTag))
if (tag.Equals(aTag->GetUnicode()))
{
return PR_TRUE;
}