diff --git a/mozilla/content/html/content/src/nsHTMLTableElement.cpp b/mozilla/content/html/content/src/nsHTMLTableElement.cpp
index 88059c1a0a5..4b45e6f5dd1 100644
--- a/mozilla/content/html/content/src/nsHTMLTableElement.cpp
+++ b/mozilla/content/html/content/src/nsHTMLTableElement.cpp
@@ -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);
diff --git a/mozilla/layout/html/content/src/nsHTMLTableElement.cpp b/mozilla/layout/html/content/src/nsHTMLTableElement.cpp
index 88059c1a0a5..4b45e6f5dd1 100644
--- a/mozilla/layout/html/content/src/nsHTMLTableElement.cpp
+++ b/mozilla/layout/html/content/src/nsHTMLTableElement.cpp
@@ -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);