W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2006

[whatwg] Sandboxing scripts: call for a wider discussion

From: Jim Ley <jim.ley@gmail.com>
Date: Mon, 23 Jan 2006 11:28:31 +0000
Message-ID: <851c8d310601230328x4c3733c0ye94be1df0dc99286@mail.gmail.com>
On 1/23/06, Alexey Feldgendler <alexey at feldgendler.ru> wrote:
> On Mon, 23 Jan 2006 17:15:39 +0600, Lachlan Hunt
> <lachlan.hunt at lachy.id.au> wrote:
> > http://www.w3.org/TR/2001/WD-DOM-Level-2-HTML-20011210/html.html#ID-75233634
> I'm surprised. document.write is defined but it's substantially different
>  from what the browsers implement. DOM 2 says that write() can be called
> only between calls to open() and close(), and that a call to open() clears
> the existing content of the document.

That's because the existence of a global object called document that
points to the current document doesn't exist in any standard.

> This is very different from the
> current practice of calling write() without open() to inject unparsed HTML
> into an already-parsed document.

Er, no, no UA supports this, it supports it in HTML documents _that
are being parsed_ but not ones that are already parsed where
document.write performs an implied document.open() so content is

Received on Monday, 23 January 2006 03:28:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:25 UTC