1 Aug 2006 04:32
Re: What should document.write() do when called from setTimeout or event handlers?
----- Original Message ----- From: "Ian Hickson" <ian@...> To: <whatwg@...> Sent: Monday, July 31, 2006 3:34 PM Subject: [whatwg] What should document.write() do when called from setTimeout or event handlers? > > I'm trying to spec document.write() and I've run into a difficult edge > case. > > Imagine the server sees this: > > <!DOCTYPE HTML> > <html> > <head> > function test() { > document.write('TEST'); > } > setTimeout(test, 1000); > </head> > <body> > <p><img src="test.png" alt="" onload="test()"></p> > > ...and then time passes. The image loads, the timeout fires. > > Then once the image has loaded and the timer has fired: > > </body>(Continue reading)
Indeed.
RSS Feed