W3C home > Mailing lists > Public > public-html@w3.org > July 2009

RE: document.write from script-inserted external script

From: Travis Leithead <travil@microsoft.com>
Date: Mon, 13 Jul 2009 17:40:30 +0000
To: Henri Sivonen <hsivonen@iki.fi>, Ian Hickson <ian@hixie.ch>
CC: HTMLWG WG <public-html@w3.org>, Kirk Sykora <ksykora@microsoft.com>
Message-ID: <49142F02149340458FDD20841AD0AD5604A2D1@TK5EX14MBXW653.wingroup.windeploy.ntdev.microsoft.com>
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,

-----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
Subject: document.write from script-inserted external script


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
Received on Monday, 13 July 2009 22:27:43 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:48 UTC