mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Comments in framesets should not be moved to <head>. Bug 75873, r=harishd, sr=heikki
This commit is contained in:
parent
e4c62ce9fd
commit
720143a97b
@ -1927,6 +1927,10 @@ SinkContext::AddComment(const nsIParserNode& aNode)
|
||||
|
||||
FlushTextAndRelease();
|
||||
|
||||
if (!mSink) {
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIContent> comment;
|
||||
nsresult rv = NS_NewCommentNode(getter_AddRefs(comment));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
@ -1939,7 +1943,7 @@ SinkContext::AddComment(const nsIParserNode& aNode)
|
||||
comment->SetDocument(mSink->mDocument, PR_FALSE, PR_TRUE);
|
||||
|
||||
nsIHTMLContent* parent;
|
||||
if (!mSink->mBody && mSink->mHead) {
|
||||
if (!mSink->mBody && !mSink->mFrameset && mSink->mHead) {
|
||||
parent = mSink->mHead;
|
||||
} else {
|
||||
parent = mStack[mStackPos - 1].mContent;
|
||||
|
Loading…
Reference in New Issue
Block a user