From 2f9a0e53c74d3d389f2fe3acc4b3584e89b6119e Mon Sep 17 00:00:00 2001 From: "jkeiser%netscape.com" Date: Thu, 16 May 2002 19:27:13 +0000 Subject: [PATCH] Make option text show up when option changes. bug 136885, r=rods@netscape.com, sr=attinasi@netscape.com git-svn-id: svn://10.0.0.236/trunk@121666 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/content/src/nsHTMLOptionElement.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/content/html/content/src/nsHTMLOptionElement.cpp b/mozilla/content/html/content/src/nsHTMLOptionElement.cpp index c90f6925200..6f144ec0088 100644 --- a/mozilla/content/html/content/src/nsHTMLOptionElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLOptionElement.cpp @@ -568,6 +568,9 @@ nsHTMLOptionElement::SetText(const nsAString& aText) result = domText->SetData(aText); if (NS_SUCCEEDED(result)) { + // If we used an existing node, the notification will not happen (the + // notification typically happens in AppendChildTo). + NotifyTextChanged(); usedExistingTextNode = PR_TRUE; }