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

[whatwg] Handling of script elements inside rendered OBJECT

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 11 May 2006 20:38:03 +1000
Message-ID: <4463140B.8050202@lachy.id.au>
Shadow2531 wrote:
> That problem could be avoided by authors making sure each
> document.write() wrote complete element markup instead of splitting it
> up like in your example.

The problem could be avoided by not using document.write() at all, but 
in reality that's not going to happen any time soon.

> not executing scripts in object tags would break lots of things. Ouch.

Possibly, but it depends how you look at the situation.  Considering the 
behaviour of Firefox and IE are the complete opposite, and that IE 
actually doesn't execute scripts, then it's unlikely to break many things.

This also means that it is unlikely that many authors are depending on 
it being one way or the other.  This actually gives the opportunity to 
think about the situation and pick the most appropriate one, rather than 
just sticking with the most widely deployed and depended upon behaviour.

Lachlan Hunt
Received on Thursday, 11 May 2006 03:38:03 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:46 UTC