nodeName for HTML elements are uppercase as well.

This commit is contained in:
vidur%netscape.com 1999-05-11 20:21:45 +00:00
parent 82a29d775a
commit 371d69ea33
4 changed files with 18 additions and 0 deletions

View File

@ -286,6 +286,12 @@ nsGenericHTMLElement::CopyInnerTo(nsIContent* aSrcContent,
return result;
}
nsresult
nsGenericHTMLElement::GetNodeName(nsString& aNodeName)
{
return GetTagName(aNodeName);
}
nsresult
nsGenericHTMLElement::GetTagName(nsString& aTagName)
{

View File

@ -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)
{

View File

@ -286,6 +286,12 @@ nsGenericHTMLElement::CopyInnerTo(nsIContent* aSrcContent,
return result;
}
nsresult
nsGenericHTMLElement::GetNodeName(nsString& aNodeName)
{
return GetTagName(aNodeName);
}
nsresult
nsGenericHTMLElement::GetTagName(nsString& aTagName)
{

View File

@ -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)
{