[whatwg] Feedback on the Mozilla FullScreen API proposal

On Fri, 06 Aug 2010 00:17:54 +0200, Simon Fraser <smfr at me.com> wrote:
> or have some constants for behavior:
>
>     const unsigned short ALLOW_KEYBOARD_INPUT = 1;
>     void requestFullScreen(unsigned short behavior)
> This would be extensible, and would allow us to permit other
> behaviors later.

Can't we use a string then -- a space-separated list of tokens? Constants  
are somewhat icky to use in JavaScript and here you would have to use some  
trickery if you would actually want to request several kinds of behaviors  
using a single constant in the future.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Thursday, 5 August 2010 23:15:00 UTC