diff --git a/content/html/content/src/nsGenericHTMLElement.cpp b/content/html/content/src/nsGenericHTMLElement.cpp
index d910db1ffeb1..9bee7198dac6 100644
--- a/content/html/content/src/nsGenericHTMLElement.cpp
+++ b/content/html/content/src/nsGenericHTMLElement.cpp
@@ -286,6 +286,12 @@ nsGenericHTMLElement::CopyInnerTo(nsIContent* aSrcContent,
return result;
}
+nsresult
+nsGenericHTMLElement::GetNodeName(nsString& aNodeName)
+{
+ return GetTagName(aNodeName);
+}
+
nsresult
nsGenericHTMLElement::GetTagName(nsString& aTagName)
{
diff --git a/content/html/content/src/nsGenericHTMLElement.h b/content/html/content/src/nsGenericHTMLElement.h
index 5dcdee92d7fd..8377b88e558c 100644
--- a/content/html/content/src/nsGenericHTMLElement.h
+++ b/content/html/content/src/nsGenericHTMLElement.h
@@ -57,6 +57,9 @@ public:
nsGenericHTMLElement* aDest,
PRBool aDeep);
+ // Implementation for nsIDOMNode
+ nsresult GetNodeName(nsString& aNodeName);
+
// Implementation for nsIDOMElement
nsresult GetAttribute(const nsString& aName, nsString& aReturn)
{
diff --git a/layout/html/content/src/nsGenericHTMLElement.cpp b/layout/html/content/src/nsGenericHTMLElement.cpp
index d910db1ffeb1..9bee7198dac6 100644
--- a/layout/html/content/src/nsGenericHTMLElement.cpp
+++ b/layout/html/content/src/nsGenericHTMLElement.cpp
@@ -286,6 +286,12 @@ nsGenericHTMLElement::CopyInnerTo(nsIContent* aSrcContent,
return result;
}
+nsresult
+nsGenericHTMLElement::GetNodeName(nsString& aNodeName)
+{
+ return GetTagName(aNodeName);
+}
+
nsresult
nsGenericHTMLElement::GetTagName(nsString& aTagName)
{
diff --git a/layout/html/content/src/nsGenericHTMLElement.h b/layout/html/content/src/nsGenericHTMLElement.h
index 5dcdee92d7fd..8377b88e558c 100644
--- a/layout/html/content/src/nsGenericHTMLElement.h
+++ b/layout/html/content/src/nsGenericHTMLElement.h
@@ -57,6 +57,9 @@ public:
nsGenericHTMLElement* aDest,
PRBool aDeep);
+ // Implementation for nsIDOMNode
+ nsresult GetNodeName(nsString& aNodeName);
+
// Implementation for nsIDOMElement
nsresult GetAttribute(const nsString& aName, nsString& aReturn)
{