If GetNameSpaceID() fails due to a null namespace, now return kNameSpace_None instead of failure.
git-svn-id: svn://10.0.0.236/trunk@41795 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -885,6 +885,13 @@ RDFContentSinkImpl::GetNameSpaceID(nsIAtom* aPrefix, PRInt32& aNameSpaceID)
|
||||
rv = ns->FindNameSpaceID(aPrefix, aNameSpaceID);
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
|
||||
if (aPrefix == nsnull)
|
||||
{
|
||||
aNameSpaceID = kNameSpaceID_None;
|
||||
rv = NS_OK;
|
||||
}
|
||||
|
||||
// Couldn't find the namespace, probably because the prefix
|
||||
// was never declared using an 'xmlns' decl.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user