[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 #24 from Ian 'Hixie' Hickson <ian@hixie.ch>  2010-08-16 21:12:42 ---
So the proposal here is to change the spec so that all scripts running for
<script> elements (when the element is run, not calls to functions created by
that element and put in the scripting environment) that are using external
files (i.e. <script src="">, not inline scripts) and that do not have the
"parser-inserted" flag set (e.g. inserted using appendChild(), not found in the
doc source), when they try to document.write() to the same Document as the
owner of the <script> without having a defined insertion point, should have
such calls ignored?

If so, some questions:

Why limit it to appendChild()'ed scripts, not parser-inserted ones? (e.g. async
scripts don't have a defined insertion point)

Why limit it to external scripts?

Why limit it to when running <script> blocks? We could make all
document.write() calls on your own document get ignored.

-- 
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 Monday, 16 August 2010 21:12:44 UTC