diff --git a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp b/mozilla/content/html/content/src/nsGenericHTMLElement.cpp index d910db1ffeb..9bee7198dac 100644 --- a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp +++ b/mozilla/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/mozilla/content/html/content/src/nsGenericHTMLElement.h b/mozilla/content/html/content/src/nsGenericHTMLElement.h index 5dcdee92d7f..8377b88e558 100644 --- a/mozilla/content/html/content/src/nsGenericHTMLElement.h +++ b/mozilla/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/mozilla/layout/html/content/src/nsGenericHTMLElement.cpp b/mozilla/layout/html/content/src/nsGenericHTMLElement.cpp index d910db1ffeb..9bee7198dac 100644 --- a/mozilla/layout/html/content/src/nsGenericHTMLElement.cpp +++ b/mozilla/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/mozilla/layout/html/content/src/nsGenericHTMLElement.h b/mozilla/layout/html/content/src/nsGenericHTMLElement.h index 5dcdee92d7f..8377b88e558 100644 --- a/mozilla/layout/html/content/src/nsGenericHTMLElement.h +++ b/mozilla/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) {