[XHR] how to catch SECURITY_ERR on XMLHttpRequest.open()?

What's a SECURITY_ERR?

"If stored url is non same-origin the user agent should raise a
SECURITY_ERR exception and terminate these steps."
 -- http://www.w3.org/TR/2007/WD-XMLHttpRequest-20070618/

I don't see it listed as a code under XMLHttpRequestException.

I'd like an example of how to catch this exception.

Maybe there's such an example in a test suite somewhere?

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/

Received on Tuesday, 14 August 2007 17:21:20 UTC