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

RE: Missing Exception in MediaList interface

From: Bill dehOra <Wdehora@cromwellmedia.co.uk>
Date: Fri, 5 May 2000 09:48:41 +0100
Message-ID: <43C2F98D8414D411865A00508BC22AB906413C@odin.cromwellmedia.co.uk>
To: www-dom@w3.org

:So, I guess the comma should be definitively excluded from the 
:syntax of a medium: SYNTAX_ERR If the medium contains a 
:comma character.

Yes. From  CSS2:

medium : IDENT S* ;
IDENT : nmStart nmChar ;
nmStart: [a-zA-Z] {nonacsii} {esc} ;
nmChar: [a-zA-z0-9] {nonacsii} {esc};
nonacsii: {^\0-\177}

The literal [,] is not a legal part of an IDENT term, nor can whitespace
appear within a medium term. Thus, media.appendMedium("print, braille") or
media.appendMedium("print braille") should throw SYNTAX_ERR, as Phillipe
says. Though strictly speaking media.appendMedium("print     ") is a legal
medium term. But this just requires a comment on whether the method will
barf in that case.

Received on Friday, 5 May 2000 04:46:42 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC