[whatwg] What should document.write() do when called from setTimeout or event handlers?
alexey at feldgendler.ru
Tue Aug 1 07:32:49 PDT 2006
On Tue, 01 Aug 2006 20:37:17 +0700, Stewart Brodie
<stewart.brodie at antplc.com> wrote:
>> Mozilla seems to make the document.write() calls insert text into the
>> parser, as if they'd been called inline, with the result that the
>> inserted text could appear pretty much anywhere. (It's actually a bit
>> complex than that -- it avoids inserting into tokens -- but that's a
Mozilla tokenizes text in blocks as it arrives from the network socket.
document.write() in the described situation seems to insert the text after
the already tokenized portion. This means that the observed behavior will
depend on the network conditions.
> I think we can do without Heisenberg-like effects from Mozilla :-)
Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com
More information about the whatwg