Fixing nsbeta3+ bug 47420. Don't throw a DOM exception when accessing a nodemap by index even if the index is out of range, simply return null in stead. r=pollmann@netscape.com

git-svn-id: svn://10.0.0.236/trunk@76629 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%netscape.com 2000-08-18 07:04:30 +00:00
parent 0d8561b5a2
commit e1196e179e
2 changed files with 0 additions and 4 deletions

View File

@ -315,8 +315,6 @@ nsDOMAttributeMap::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
}
else {
*aReturn = nsnull;
rv = NS_ERROR_DOM_INDEX_SIZE_ERR;
}
return rv;

View File

@ -315,8 +315,6 @@ nsDOMAttributeMap::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
}
else {
*aReturn = nsnull;
rv = NS_ERROR_DOM_INDEX_SIZE_ERR;
}
return rv;