From 0c185f952ae5ecc2ea49ab23eaf8412591eaba84 Mon Sep 17 00:00:00 2001 From: "glazman%netscape.com" Date: Tue, 28 Aug 2001 01:55:22 +0000 Subject: [PATCH] fix forFont element not removed in Composer; b=97083; r=brade,jfrancis; sr=kin; a=dbaron git-svn-id: svn://10.0.0.236/trunk@101867 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/nsHTMLEditorStyle.cpp | 2 +- mozilla/editor/libeditor/html/nsHTMLEditorStyle.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/editor/base/nsHTMLEditorStyle.cpp b/mozilla/editor/base/nsHTMLEditorStyle.cpp index 1e55971c52e..8e9c81a191c 100644 --- a/mozilla/editor/base/nsHTMLEditorStyle.cpp +++ b/mozilla/editor/base/nsHTMLEditorStyle.cpp @@ -593,7 +593,7 @@ PRBool nsHTMLEditor::IsOnlyAttribute(nsIDOMNode *aNode, if (!Compare(attrString,*aAttribute,nsCaseInsensitiveStringComparator())) continue; // if it's a special _moz... attribute, keep looking attrString.Left(tmp,4); - if (!Compare(attrString,NS_LITERAL_STRING("_moz"),nsCaseInsensitiveStringComparator())) continue; + if (!Compare(tmp,NS_LITERAL_STRING("_moz"),nsCaseInsensitiveStringComparator())) continue; // otherwise, it's another attribute, so return false return PR_FALSE; } diff --git a/mozilla/editor/libeditor/html/nsHTMLEditorStyle.cpp b/mozilla/editor/libeditor/html/nsHTMLEditorStyle.cpp index 1e55971c52e..8e9c81a191c 100644 --- a/mozilla/editor/libeditor/html/nsHTMLEditorStyle.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLEditorStyle.cpp @@ -593,7 +593,7 @@ PRBool nsHTMLEditor::IsOnlyAttribute(nsIDOMNode *aNode, if (!Compare(attrString,*aAttribute,nsCaseInsensitiveStringComparator())) continue; // if it's a special _moz... attribute, keep looking attrString.Left(tmp,4); - if (!Compare(attrString,NS_LITERAL_STRING("_moz"),nsCaseInsensitiveStringComparator())) continue; + if (!Compare(tmp,NS_LITERAL_STRING("_moz"),nsCaseInsensitiveStringComparator())) continue; // otherwise, it's another attribute, so return false return PR_FALSE; }