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

This commit is contained in:
pollmann%netscape.com 2000-01-11 07:21:24 +00:00
Родитель 3300fc48da
Коммит 3e5b01c755
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;