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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user