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

Jonas Sicking jonas at sicking.cc
Mon Dec 28 14:01:29 PST 2009


On Mon, Dec 28, 2009 at 6:12 PM, Olli Pettay <Olli.Pettay at helsinki.fi> wrote:
> On 12/28/09 6:44 PM, João Eiras wrote:
>>>
>>> Throwing an error does not seem very compatible either.
>>>
>>
>> Returning a boolean from print() would not be problematic.
>>
>> Note that desktop UAs support printing most of the time, while handheld
>> or tv ones don't.
>
> Returning a boolean sounds good to me.

Only issue is that pages might want to be able to detect if printing
is available without actually trying to print. I.e. in order to not
display a print button in kiosk browsers.

/ Jonas



More information about the whatwg mailing list