Form needs to be explicitly inserted, since I need the frame to be made.

This commit is contained in:
hyatt%netscape.com 1999-07-25 06:55:22 +00:00
parent 491557ab29
commit ae72792dee

View File

@ -735,8 +735,9 @@ RDFXULBuilderImpl::CreateContents(nsIContent* aElement)
if (htmlFormElement) {
nsCOMPtr<nsIContent> content = do_QueryInterface(htmlFormElement);
if (content) {
// Set the parent.
content->SetParent(mRoot);
// XXX Would like to make this anonymous, but still need
// the form's frame to get built. For now make it explicit.
mRoot->InsertChildAt(content, 0, PR_FALSE);
}
mDocument->SetForm(htmlFormElement);
}