ISSUE-44 - Public View

XHR: Overloading in the IDL

State:
CLOSED
Product:
XMLHttpRequest
Raised by:
Bjoern Hoehrmann
Opened on:
2006-03-19
Description:
The current draft does not say which "IDL" is used to define the XHR
interface, but as far as I can tell overloading is not allowed in OMG
IDL. We need to either explain this in the document or change the IDL
such that the conflicts are removed. The later can be achieved with

  void open(... all arguments here ...);
  void send(in DOMObject data) ...;

Where the implications are explained in the member definitions and
the language bindings as appropriate, so this is a change in form
only. .setParameter in Core does something similar to what I propose
for send(), optional parameters are new in the DOM-like W3C APIs. In
addition, there should be clear reference to the IDL specification.

Shouldn't send() raise an exception if the method does not support
the type of data passed to it, btw?

Note: Some of these links may be accessible only to W3C Members.

Related emails:
  1. ISSUE-44: XHR: Overloading in the IDL (from dean+cgi@w3.org on 2006-03-19)
  2. Re: ISSUE-44: XHR: Overloading in the IDL (from jonas@sicking.cc on 2006-03-19)
  3. Re: ISSUE-44: XHR: Overloading in the IDL (from ian@hixie.ch on 2006-03-22)

Related notes:

2006-05-16: The plan is to leave it at that...

2006-08-10: The only real solution to this problem is to specify a Web API IDL document.

2006-09-18: IDL is non-normative.