Bug 752304 - Logic error in nsHTMLEditor::SetInlinePropertyOnNodeImpl; r=ehsan

This commit is contained in:
Aryeh Gregor 2012-05-07 08:54:54 +03:00
parent eb33f59b5f
commit 4eab9ca44b

View File

@ -457,7 +457,7 @@ nsHTMLEditor::SetInlinePropertyOnNodeImpl(nsIContent* aNode,
nsIContent* nextNode = GetNextHTMLSibling(aNode);
if (nextNode && nextNode->Tag() == aProperty &&
HasAttrVal(nextNode, aAttribute, *aValue) &&
IsOnlyAttribute(priorNode, *aAttribute)) {
IsOnlyAttribute(nextNode, *aAttribute)) {
// following sib is already right kind of inline node; slide this over into it
return MoveNode(aNode->AsDOMNode(), nextNode->AsDOMNode(), 0);
}