Bug 714279 - range.compareBoundaryPoints should throw NOT_SUPPORTED_ERR when called with an invalid 'how' argument; r=smaug

This commit is contained in:
Ms2ger 2012-08-04 09:44:00 +02:00
parent e9d8d3dbea
commit dadd37a9b3
2 changed files with 330 additions and 874 deletions

View File

@ -1839,7 +1839,7 @@ nsRange::CompareBoundaryPoints(PRUint16 aHow, nsIDOMRange* aOtherRange,
break;
default:
// We were passed an illegal value
return NS_ERROR_ILLEGAL_VALUE;
return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
}
if (mRoot != otherRange->GetRoot())