W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

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

From: Jim Ley <jim.ley@gmail.com>
Date: Mon, 18 Jul 2005 23:07:23 +0100
Message-ID: <851c8d310507181507c875d7e@mail.gmail.com>
On 7/18/05, Ian Hickson <ian at hixie.ch> wrote:
>Why would you suspend a timer?
> (And why would the UA not suspend the timers itself?)

You're saying that when a user print's an HTML5 user agent MUST stop
all setTimeout counters, I don't see that in the spec, nor why it
would be an expectation of a scripter.

The common use of onbeforeprint/onafterprint is to add content to a
document that is only relevant to printed media, this is something
that cannot be done with CSS, since CSS is optional, so if we just
hide content with CSS, we're stuck with the situation that users
without CSS or with an appropriate user stylesheet get it and get
confused.

Of course for showing temporarily hidden stuff with script, as has
been mentioned, there's no problem doing it with CSS.

Jim.
Received on Monday, 18 July 2005 15:07:23 UTC

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