Skip to content
Snippets Groups Projects
Commit 1f97c263 authored by waterson%netscape.com's avatar waterson%netscape.com
Browse files

Implemented nsIDOMElement::GetAttribute().

parent 24b39450
No related branches found
No related tags found
No related merge requests found
......@@ -710,8 +710,18 @@ RDFElementImpl::GetTagName(nsString& aTagName)
NS_IMETHODIMP
RDFElementImpl::GetAttribute(const nsString& aName, nsString& aReturn)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
nsresult rv;
PRInt32 nameSpaceID;
nsIAtom* nameAtom;
if (NS_FAILED(rv = ParseAttributeString(aName, nameAtom, nameSpaceID))) {
NS_WARNING("unable to parse attribute name");
return rv;
}
GetAttribute(nameSpaceID, nameAtom, aReturn);
NS_RELEASE(nameAtom);
return NS_OK;
}
......
......@@ -710,8 +710,18 @@ RDFElementImpl::GetTagName(nsString& aTagName)
NS_IMETHODIMP
RDFElementImpl::GetAttribute(const nsString& aName, nsString& aReturn)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
nsresult rv;
PRInt32 nameSpaceID;
nsIAtom* nameAtom;
if (NS_FAILED(rv = ParseAttributeString(aName, nameAtom, nameSpaceID))) {
NS_WARNING("unable to parse attribute name");
return rv;
}
GetAttribute(nameSpaceID, nameAtom, aReturn);
NS_RELEASE(nameAtom);
return NS_OK;
}
......
......@@ -710,8 +710,18 @@ RDFElementImpl::GetTagName(nsString& aTagName)
NS_IMETHODIMP
RDFElementImpl::GetAttribute(const nsString& aName, nsString& aReturn)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
nsresult rv;
PRInt32 nameSpaceID;
nsIAtom* nameAtom;
if (NS_FAILED(rv = ParseAttributeString(aName, nameAtom, nameSpaceID))) {
NS_WARNING("unable to parse attribute name");
return rv;
}
GetAttribute(nameSpaceID, nameAtom, aReturn);
NS_RELEASE(nameAtom);
return NS_OK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment