[Bug 24808] [imports]: document.write() in imports should do nothing.


Morrita Hajime <morrita@google.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Morrita Hajime <morrita@google.com> ---

I was confused but there are two cases to consider.

One is document.write() against the master document. As Hixie mentioned, it
just blows the document away. So we don't have do anything.

Another is document.write() for imports themselves. IIRC, it works for now. But
once we address Bug 24042 and UA delays script execution timing more
aggressively, the situation will change and document.write() won't work

I don't have any immediate plan to address Bug 24042 as it needs more
consideration and ES6 <module> or <script defer> might resolve the underlying
problem for free. I however want to remove obstacles to attack it in the first

So I disabled these document APIs for imports. It's a safety net, and I think
this is what Olli suggests.

You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 15 April 2014 18:14:10 UTC