W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2007

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

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 22 May 2007 05:37:36 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0705220537180.22702@dhalsim.dreamhost.com>
On Mon, 18 Jul 2005, Olav Junker Kj?r wrote:
> 
> I dont think you should set element.style.display to "block", if the 
> element should be visible only on screen and not in print. It would be 
> better to dynamically assign it a class which is defined in the 
> stylesheet to be visible on screen and not in print. (Its a bit tricky 
> to add and remove class names, but still cleaner than using print 
> events.)

It should now be easy, with our new 'classList' DOM attribute.

HTH,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 21 May 2007 22:37:36 UTC

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