From 280650065645f41c55c3099959cfd3401194fa67 Mon Sep 17 00:00:00 2001 From: "vidur%netscape.com" Date: Tue, 11 May 1999 20:21:45 +0000 Subject: [PATCH] nodeName for HTML elements are uppercase as well. git-svn-id: svn://10.0.0.236/trunk@31127 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/content/src/nsGenericHTMLElement.cpp | 6 ++++++ mozilla/content/html/content/src/nsGenericHTMLElement.h | 3 +++ mozilla/layout/html/content/src/nsGenericHTMLElement.cpp | 6 ++++++ mozilla/layout/html/content/src/nsGenericHTMLElement.h | 3 +++ 4 files changed, 18 insertions(+) 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) {