W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Re: [cssom-view] Query parse erros in Window.matchMedia

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 02 Sep 2010 19:45:11 +0200
To: www-style@w3.org, "Luiz Agostini" <luiz.agostini@openbossa.org>
Message-ID: <op.vie19ibu64w2qv@anne-van-kesterens-macbook-pro.local>
On Thu, 02 Sep 2010 19:09:43 +0200, Luiz Agostini  
<luiz.agostini@openbossa.org> wrote:
> what should the new matchMedia method of Window interface return when the
> query is not valid? For example, what to return if the query is  
> "^*%&$&%$"?
> Should it return null?

Parsing something as a media query list always yields a result if I  
remember correctly. For your query you would get "not all".


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Thursday, 2 September 2010 17:45:49 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:31 GMT