RE: document.write from script-inserted external script

Note, we also tested this with IE8+parser fix we've been looking into and our result is:

>> We sometimes succeed and sometimes fail. (I'm guessing it's a timing issue with the script download)
>> When we succeed it looks like Firefox with more whitespace and "Kittens! Budgies!" before "BEFORE ... ... AFTER" instead of after.

Hope this helps,
-Travis

-----Original Message-----
From: public-html-request@w3.org [mailto:public-html-request@w3.org] On Behalf Of Henri Sivonen
Sent: Monday, July 13, 2009 6:26 AM
To: Ian Hickson
Cc: HTMLWG WG
Subject: document.write from script-inserted external script

Hi,

Could you please check if the specced behavior for http://hixie.ch/tests/adhoc/dom/level0/write/005.html
is the wanted behavior and then write down what the wanted result is?
(I'm not sure I got it right myself.)

I tried to implement the spec behavior for this. The possibly buggy outcome I'm seeing doesn't agree with any shipped browser. However, I don't expect existing content to depend on this, since IE8 refuses to run the scripts and cites a KB article.

Also, have I understood correctly that insertion point is never undefined when there's an active parser that is a script-created parser and the tokenizer isn't tokenizing the synchronous part of a document.write()?

--
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Monday, 13 July 2009 22:27:43 UTC