add base tag info on the rest of the table elements too

This commit is contained in:
peterl%netscape.com 1999-03-25 06:40:06 +00:00
parent e8b46b96be
commit faf2cdb453
2 changed files with 12 additions and 4 deletions

View File

@ -983,6 +983,10 @@ SinkContext::OpenContainer(const nsIParserNode& aNode)
break;
case eHTMLTag_table:
mSink->mInMonolithicContainer++;
case eHTMLTag_layer:
case eHTMLTag_thead:
case eHTMLTag_tbody:
case eHTMLTag_tfoot:
case eHTMLTag_tr:
case eHTMLTag_td:
case eHTMLTag_th:
@ -1069,7 +1073,7 @@ SinkContext::AddLeaf(const nsIParserNode& aNode)
return rv;
}
switch (nodeType) {
case eHTMLTag_img:
case eHTMLTag_img: // elements with 'SRC='
case eHTMLTag_frame:
case eHTMLTag_input:
mSink->AddBaseTagInfo(content);
@ -1705,7 +1709,7 @@ HTMLContentSink::OpenBody(const nsIParserNode& aNode)
// Open body. Note that we pre-append the body to the root so that
// incremental reflow during document loading will work properly.
mCurrentContext->SetPreAppend(PR_TRUE);
nsresult rv = mCurrentContext->OpenContainer(aNode);
nsresult rv = mCurrentContext->OpenContainer(aNode);
mCurrentContext->SetPreAppend(PR_FALSE);
if (NS_OK != rv) {
return rv;

View File

@ -983,6 +983,10 @@ SinkContext::OpenContainer(const nsIParserNode& aNode)
break;
case eHTMLTag_table:
mSink->mInMonolithicContainer++;
case eHTMLTag_layer:
case eHTMLTag_thead:
case eHTMLTag_tbody:
case eHTMLTag_tfoot:
case eHTMLTag_tr:
case eHTMLTag_td:
case eHTMLTag_th:
@ -1069,7 +1073,7 @@ SinkContext::AddLeaf(const nsIParserNode& aNode)
return rv;
}
switch (nodeType) {
case eHTMLTag_img:
case eHTMLTag_img: // elements with 'SRC='
case eHTMLTag_frame:
case eHTMLTag_input:
mSink->AddBaseTagInfo(content);
@ -1705,7 +1709,7 @@ HTMLContentSink::OpenBody(const nsIParserNode& aNode)
// Open body. Note that we pre-append the body to the root so that
// incremental reflow during document loading will work properly.
mCurrentContext->SetPreAppend(PR_TRUE);
nsresult rv = mCurrentContext->OpenContainer(aNode);
nsresult rv = mCurrentContext->OpenContainer(aNode);
mCurrentContext->SetPreAppend(PR_FALSE);
if (NS_OK != rv) {
return rv;