diff --git a/editor/libeditor/base/nsEditor.cpp b/editor/libeditor/base/nsEditor.cpp index 6986d437371..23c650d7f7a 100644 --- a/editor/libeditor/base/nsEditor.cpp +++ b/editor/libeditor/base/nsEditor.cpp @@ -1273,11 +1273,11 @@ nsEditor::RemoveAttribute(nsIDOMElement *aElement, const nsAString& aAttribute) NS_IMETHODIMP nsEditor::MarkNodeDirty(nsIDOMNode* aNode) { - // mark the node dirty. - nsCOMPtr element (do_QueryInterface(aNode)); - if (element) + nsCOMPtr element = do_QueryInterface(aNode); + if (element) { element->SetAttr(kNameSpaceID_None, nsEditProperty::mozdirty, EmptyString(), false); + } return NS_OK; }