[Bug 9767] Consider ignoring document.write() when IE ignores it if comes from the network task source

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9767





--- Comment #16 from Adam Barth <w3c@adambarth.com>  2010-07-13 00:53:28 ---
I implemented the following behavior in WebKit:

1) If we receive a document.write without a current insertion point, we attempt
to append it to the end of the input steam.
2) If (1) would result in appending to the input stream after the EOF
character, then we ignore the call to document.write.

This is similar what Henri suggests.  The mental model is that we always
"append" if there's no current insertion point, but appending after the EOF
character is pretty useless since the EOF character stops the parsing
algorithm.  :)

Hopefully we'll get some data about whether this approach is sufficiently
compatible.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 13 July 2010 00:53:30 UTC