Bug 18478: Allow base tag in body to work for image maps (Fix courtesy bissiri@eecs.umich.edu) r=self, harishd

git-svn-id: svn://10.0.0.236/trunk@57374 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com 2000-01-11 07:21:24 +00:00
parent 63efc4daf1
commit 836ef6cf4d
2 changed files with 10 additions and 0 deletions

View File

@ -3582,6 +3582,11 @@ HTMLContentSink::ProcessMAPTag(const nsIParserNode& aNode,
aContent->SetHTMLAttribute(nsHTMLAtoms::name, name, PR_FALSE);
}
// This is for nav4 compatibility. (Bug 18478)
// The base tag should only appear in the head,
// but nav4 allows the base tag in the body as well.
AddBaseTagInfo(aContent);
// Don't need to add the map to the document here anymore.
// The map adds itself
mCurrentMap = aContent;

View File

@ -3582,6 +3582,11 @@ HTMLContentSink::ProcessMAPTag(const nsIParserNode& aNode,
aContent->SetHTMLAttribute(nsHTMLAtoms::name, name, PR_FALSE);
}
// This is for nav4 compatibility. (Bug 18478)
// The base tag should only appear in the head,
// but nav4 allows the base tag in the body as well.
AddBaseTagInfo(aContent);
// Don't need to add the map to the document here anymore.
// The map adds itself
mCurrentMap = aContent;