From c8121440c23d3d3e41220a64bdf9374875c5ce79 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 git-svn-id: svn://10.0.0.236/trunk@71880 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp | 3 +++ mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp b/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp index 7167f5f2ba1..e8dfab304cf 100644 --- a/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp +++ b/mozilla/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/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp b/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp index 7167f5f2ba1..e8dfab304cf 100644 --- a/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp +++ b/mozilla/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;