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

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