Web-mobile : having a @media on script ?

Hi group !

Yesterday, Charles McCathieNevile gave a talk in Paris [1] about the
web mobile. During the QA session, we came to talk about
(java)scripts, and the conclusion was that some scripts where intended
to be used with media=screen, and where useless/counterproductive with
media=handheld.

What do think of having :
- a media property on script ?
- or a window.media value accessible for javascript ?

This could also be usefull on img, object, video...

[1] http://france.w3cafe.org/Informations-et-programme,20.html (in french)

-- 
Olivier G.
http://www.lespacedunmatin.info/blog/

Received on Sunday, 12 October 2008 16:55:38 UTC