From 45f1100bd4a78ccc877b89f1c3d9322d34f0ffb1 Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Fri, 9 Jun 2000 05:17:00 +0000 Subject: [PATCH] r=akkana, bug=34896. ender-lite causing an output problem since we do not output the body tag anymore on selection. we still need to output leafs --- htmlparser/src/nsHTMLContentSinkStream.cpp | 3 +++ parser/htmlparser/src/nsHTMLContentSinkStream.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/htmlparser/src/nsHTMLContentSinkStream.cpp b/htmlparser/src/nsHTMLContentSinkStream.cpp index 7167f5f2ba15..e8dfab304cf1 100644 --- a/htmlparser/src/nsHTMLContentSinkStream.cpp +++ b/htmlparser/src/nsHTMLContentSinkStream.cpp @@ -748,6 +748,9 @@ void nsHTMLContentSinkStream::AddEndTag(const nsIParserNode& aNode) { Write(kGreaterThan); Write(NS_LINEBREAK); + } + if ( mHTMLTagStack[mHTMLStackPos-1] == eHTMLTag_markupDecl) + { mHTMLTagStack[--mHTMLStackPos] = eHTMLTag_unknown; } return; diff --git a/parser/htmlparser/src/nsHTMLContentSinkStream.cpp b/parser/htmlparser/src/nsHTMLContentSinkStream.cpp index 7167f5f2ba15..e8dfab304cf1 100644 --- a/parser/htmlparser/src/nsHTMLContentSinkStream.cpp +++ b/parser/htmlparser/src/nsHTMLContentSinkStream.cpp @@ -748,6 +748,9 @@ void nsHTMLContentSinkStream::AddEndTag(const nsIParserNode& aNode) { Write(kGreaterThan); Write(NS_LINEBREAK); + } + if ( mHTMLTagStack[mHTMLStackPos-1] == eHTMLTag_markupDecl) + { mHTMLTagStack[--mHTMLStackPos] = eHTMLTag_unknown; } return;