Fix for bug 19212. HTMLTableElement::InsertRow was creating a TR instead of a TBODY if one was necessary. r=joki

git-svn-id: svn://10.0.0.236/trunk@58790 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
vidur%netscape.com
2000-01-26 15:52:41 +00:00
parent 0dd1063455
commit d762cfe609
2 changed files with 2 additions and 2 deletions

View File

@@ -755,7 +755,7 @@ nsHTMLTableElement::InsertRow(PRInt32 aIndex, nsIDOMHTMLElement** aValue)
if (nsnull==rowGroup)
{ // need to create a TBODY
nsIHTMLContent *newRowGroup=nsnull;
rv = NS_NewHTMLTableSectionElement(&newRowGroup, nsHTMLAtoms::tr);
rv = NS_NewHTMLTableSectionElement(&newRowGroup, nsHTMLAtoms::tbody);
if (NS_SUCCEEDED(rv) && (nsnull!=newRowGroup))
{
rv = mInner.AppendChildTo(newRowGroup, PR_FALSE);

View File

@@ -755,7 +755,7 @@ nsHTMLTableElement::InsertRow(PRInt32 aIndex, nsIDOMHTMLElement** aValue)
if (nsnull==rowGroup)
{ // need to create a TBODY
nsIHTMLContent *newRowGroup=nsnull;
rv = NS_NewHTMLTableSectionElement(&newRowGroup, nsHTMLAtoms::tr);
rv = NS_NewHTMLTableSectionElement(&newRowGroup, nsHTMLAtoms::tbody);
if (NS_SUCCEEDED(rv) && (nsnull!=newRowGroup))
{
rv = mInner.AppendChildTo(newRowGroup, PR_FALSE);