[whatwg] Behavior when <script> is removed from DOM
Yehuda Katz
wycats at gmail.com
Wed Dec 7 12:39:46 PST 2011
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
>
More information about the whatwg
mailing list