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

Ian Hickson ian at hixie.ch
Wed May 23 14:04:39 PDT 2007


On Fri, 12 Aug 2005, Paul Norman wrote:
> >>
> >>If you do something during print preview, you're making big
> >>assumptions about the UI model. (e.g. that it is synchronous).
> >Fair enough. But in all the browsers I've tried when "Print Preview" is 
> >selected the normal browser window disappears and is replaced with a 
> >new window to show the preview. This is not instantaneous. The WHATWG
> >takes notice of real-world browsers does it not?
> 
> On Mac OS X 10.4 with Firefox when pressing print then print preview a 
> PDF is generated and opens in Preview. You can then go back to Firefox 
> and browse the page while you have the preview up. It's not instant, but 
> it's also not synchronous once you hit the Print Preview button and it 
> prints to a PDF, a process that doesn't take very long.
> 
> Actually, I'm not sure there's any difference between print preview, 
> print, and saving to PDF. it's just that one of them goes to a PDF which 
> is opened right away, another goes to a printer, and the third goes to a 
> file.
> 
> I think any browser on the Mac works the same way, although I haven't 
> tested others.

I've defined window.print(), but I haven't yet defined what exactly 
printing is. I'll have to define that in more detail as part of the 
"rendering" section. I hope that helps.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list