Re: Contacts API -- [NoInterfaceObject]

Note that using instanceof is discouraged by Web IDL [1]. In theory that argument also applies to cases where someone modifies the prototype in the case where one runs into an object from the wrong Window. At least OWA used to use a popup window for directory lookup, so conceptually such a problem could happen.

I'm not sure about the history of why nointerfaceobject was added. My guesses would include wanting to avoid polluting global scope and a copy-paste pattern.

I'm not specifically defending this part of the spec - in fact, it struck me as odd - but...

[1] http://dev.w3.org/2006/webapi/WebIDL/#idl-exceptions
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

Received on Wednesday, 24 August 2011 12:52:18 UTC