W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2011

[whatwg] Behavior when <script> is removed from DOM

From: Yehuda Katz <wycats@gmail.com>
Date: Wed, 7 Dec 2011 12:39:46 -0800
Message-ID: <CAMFeDTXNj_ktZDRxDnEBRmYev-A+LokEXjKLarqqF1dNF+G4kQ@mail.gmail.com>
Yehuda Katz
(ph) 718.877.1325


On Wed, Dec 7, 2011 at 12:29 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> On 12/7/11 3:22 PM, Joshua Bell wrote:
>
>> This can't be implemented in JS today (e.g. as a shim) since that
>> "evaluate
>> this script text in this new global sandbox" bit isn't present.
>>
>
> It can sort of be done via opening a new window and setting its opener to
> null before injecting some <script> tags into it.  Modulo popup blockers
> and crappy user experience, of course....


Or evaluating the script inside a worker, perhaps?


>
>
> -Boris
>
Received on Wednesday, 7 December 2011 12:39:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:38 UTC