Re: [css3-mediaqueries] error handling in media queries?

* Simon Pieters wrote:
>Then it would be different to how error handling in selectors work. What if 
>a future MQ defines special meaning to the comma, as in:
>
>   @media screen, all and not(aural, print, speech) {...}
>
>...then the above would in legacy UAs be treated as equivalent to:
>
>   @media screen, print {...}
>
>...while the intention of the new feature was to exclude print (for 
>instance).

Forward-compatible parsing depends on making certain assumptions about
how the format might evolve. In this case, HTML 4.01 defined that the
comma http://www.w3.org/TR/html401/types.html#type-media-descriptors is
separates entries, and as such, the format cannot be extended as above
without obviously breaking downlevel clients. In other words, you won't
extend the format like that and worry about compatibility.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Thursday, 21 September 2006 23:23:29 UTC