Re: Media

Blaine Brodie wrote:
>
> In the DOM 2 spec [07/03/2000] under section 4.2 the MediaList interface
> has a method called "delete".  Since delete is a keyword in C++, perhaps
> this method should be named "deleteMedium" instead.
 
Hum, seems we really need to change the name of this method.
It makes sense to rename append for consistency. Here is
the new interface :

// Introduced in DOM Level 2:
interface MediaList {
  attribute DOMString        mediaText;
          // raises(DOMException) on setting

 readonly attribute unsigned long    length;
 DOMString         item(in unsigned long index);
 void              deleteMedium(in DOMString oldMedium)
                              raises(DOMException);
 void              appendMedium(in DOMString newMedium)
                              raises(DOMException);
};

Philippe.

Received on Monday, 10 April 2000 14:51:01 UTC