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:
parent
0d8561b5a2
commit
e1196e179e
@ -315,8 +315,6 @@ nsDOMAttributeMap::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
|
||||
}
|
||||
else {
|
||||
*aReturn = nsnull;
|
||||
|
||||
rv = NS_ERROR_DOM_INDEX_SIZE_ERR;
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
||||
@ -315,8 +315,6 @@ nsDOMAttributeMap::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
|
||||
}
|
||||
else {
|
||||
*aReturn = nsnull;
|
||||
|
||||
rv = NS_ERROR_DOM_INDEX_SIZE_ERR;
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user