W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2010

[whatwg] window.print() when printing is not supported

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 26 Mar 2010 21:40:39 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1003262139590.4055@ps20323.dreamhostps.com>
On Fri, 26 Mar 2010, Philipp Serafin wrote:
> On Mon, Mar 22, 2010 at 10:18 PM, Ian Hickson<ian at hixie.ch>  wrote:
> 
> > What could a Web page do that a browser couldn't do better in the same 
> > situation? (The browser could offer a PDF, so having the site offer a 
> > PDF when there's no printer doesn't seem like a good solution.)
>
> One scenario could be mobile devices that really have nothing even 
> remotely comparable to a printing functionality. For those, it could 
> make sense to hide "print this page" links to provide more screen real 
> estate.
> 
> I admit though, that's a rather esoteric use case ...

It's a valid use case, indeed. Probably not enough to justify adding a 
way to detect if the UA usefully supports window.print(), though.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 26 March 2010 14:40:39 UTC

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