fix for bug#54222

The "noshade" attribute on Horizontal rule not set at all
sr=kin
r=mjudge
a=mjudge


git-svn-id: svn://10.0.0.236/trunk@80707 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
anthonyd%netscape.com
2000-10-08 06:14:21 +00:00
parent 71c974b1b2
commit 462d2a6e10
2 changed files with 10 additions and 4 deletions

View File

@@ -2795,8 +2795,11 @@ nsEditor::CloneAttributes(nsIDOMNode *aDestNode, nsIDOMNode *aSourceNode)
if (NS_SUCCEEDED(sourceAttribute->GetName(sourceAttrName)))
{
nsAutoString sourceAttrValue;
if (NS_SUCCEEDED(sourceAttribute->GetValue(sourceAttrValue)) &&
!sourceAttrValue.IsEmpty())
/*
Presence of an attribute in the named node map indicates that it was set on the
element even if it has no value.
*/
if (NS_SUCCEEDED(sourceAttribute->GetValue(sourceAttrValue)))
{
if (destInBody)
SetAttribute(destElement, sourceAttrName, sourceAttrValue);