From 573909f5fc9567def4cb40ea9d0cf4bb8a3c035a Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Mon, 16 Jun 2003 23:40:13 +0000 Subject: [PATCH] Backing out fix for bug 22480 to fix regression bug 209504. git-svn-id: svn://10.0.0.236/trunk@143777 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/document/src/nsHTMLContentSink.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mozilla/content/html/document/src/nsHTMLContentSink.cpp b/mozilla/content/html/document/src/nsHTMLContentSink.cpp index ec12230d829..92b3e2788f5 100644 --- a/mozilla/content/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/content/html/document/src/nsHTMLContentSink.cpp @@ -3353,14 +3353,9 @@ HTMLContentSink::CloseForm() this); if (mCurrentForm) { - // If there is a

tag on the container stack, close it - if (mCurrentContext->IsCurrentContainer(eHTMLTag_p)) { - result = mCurrentContext->CloseContainer(eHTMLTag_p); - } - // if this is a well-formed form, close it too - if (NS_SUCCEEDED(result) && - mCurrentContext->IsCurrentContainer(eHTMLTag_form)) { + if (mCurrentContext->IsCurrentContainer(eHTMLTag_form)) { + mCurrentContext->FlushTextAndRelease(); result = mCurrentContext->CloseContainer(eHTMLTag_form); mFlags &= ~NS_SINK_FLAG_FORM_ON_STACK; }