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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user