W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

[whatwg] [html5] window.print() undefined

From: Olav Junker Kjær <olav@olav.dk>
Date: Mon, 18 Jul 2005 23:05:24 +0200
Message-ID: <42DC1994.6090903@olav.dk>
Dean Edwards wrote:
> That's not really the point. It could be any style setting that is 
> assigned using script.

The real problem is that styles assigned directly using 
element.style.something (or using the style html attribute) cannot be 
different for different medias. Print-events are not really a solution 
for this problem, since you might also want the dynamic styles to be 
different for e.g. handhelds vs. desktop browsers.

I think that dynamically assigning/removing classes rather than styles 
is a cleaner separation between style and logic, which is just as 
desirable for script code as it is for HTML.

/olav
Received on Monday, 18 July 2005 14:05:24 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:41 UTC