[whatwg] [html5] onbeforeprint/onafterprint (was window.print() undefined)

Dean Edwards dean at edwards.name
Wed Jul 20 08:18:15 PDT 2005


Matthew Raymond wrote:
> Dean Edwards wrote:
> 
>>Matthew Raymond wrote:
>>
>>>For instance, such events could be combined with AJAX to force people
>>>into a pay-to-print scenario.
>>
>>What's wrong with paying to print a high quality version of an image? If
>>you ask me this is a great example of why we should allow these events.
> 
> 
>    It alters the expected behavior of browser chrome while not actually
> securing the content. All one would have to do to circumvent the events
> is to create a fork of Firefox or an extension that turns off the
> print-related events. Why provide events that tamper with the normal
> behavior of a browser function without actually providing added security
> for the web developer? The onbeforeprint/onafterprint events only serve
> to harass the users, and it doesn't actually enable you to do something
> you couldn't do with a reasonable workaround (see my earlier Mapquest
> example).
> 

See several people's posts stating that because something may be abused 
it is not a good enough reason to disallow it.

-dean




More information about the whatwg mailing list