W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2000

Re: Missing Exception in MediaList interface

From: Johnny Stenback <jst@netscape.com>
Date: Thu, 04 May 2000 23:12:38 +0300
Message-ID: <3911D9B6.4C82D81F@netscape.com>
To: Philippe Le Hegaret <plh@w3.org>
CC: Blaine Brodie <bbrodie@savagesoftware.com>, www-dom@w3.org
Philippe Le Hegaret wrote:
> 
[...]
> >
> > I think I understand now.  For the case where I have an empty mediaList
> > named media, and I say media.appendMedium("print, braille"),
> > media.getItem(1) will return "braille". Correct?
> 
> No, it's not. You append a medium and not a list of media.
> In your case, media.getItem(1) should return "print, baille".
> 
> But we also have:
> 
> mediaText of type DOMString
>  The parsable textual representation of the media list. This is a
>  comma-separated list of media.
> 
> So, I guess the comma should be definitively excluded from the syntax of a
> medium:
> SYNTAX_ERR
>   If the medium contains a comma character.

Or how about:

  INVALID_CHARACTER_ERR
    If the medium contains characters that are invalid in medium names
    in the underlying style language.

?

> 
> Philippe.

-- 
jst
Received on Thursday, 4 May 2000 16:12:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT