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

[whatwg] Should script run if it comes from a HTML fragment?

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 1 Dec 2010 12:11:26 -0800
Message-ID: <AANLkTikB-Moz3na7M08jdCjD9Fpy_+GV1u3cm99UP0uK@mail.gmail.com>
On Sat, Nov 13, 2010 at 6:14 AM, Ms2ger <ms2ger at gmail.com> wrote:
> Ms2ger wrote:
>>
>> Ryosuke Niwa wrote:
>>>
>>> On Fri, Nov 12, 2010 at 2:29 PM, Jonas Sicking <jonas at sicking.cc> wrote:
>>>>
>>>> You looking at only part of what Henri said. He also pointed to
>>>>
>>>> http://www.w3.org/Bugs/Public/show_bug.cgi?id=11191
>>>>
>>>> which is a request to change HTML5 so that createContextualFragment
>>>> can specify that scripts should remain executable.
>>>>
>>>
>>> However, this request has not been granted yet.
>>>
>>
>> The specification [1] now states:
>>
>> ?> Mark all scripts in /new children/ as "already started".
>>
>
> This should have said "Unmark". Unfortunately, this update hasn't propagated
> to html5.org yet, but please take this (unmarked, to be executed) as the
> current status.
>
> Apologies for any confusion caused.

For what it's worth, IMHO "unmark X as 'foo'" is a pretty confusing construct.

It'd might be a bit clearer to say:

Unset the "already started" flag on all scripts in /new children/.

and maybe even add an informative note as to what the effect of this
is (that scripts can execute if later inserted into a document).

/ Jonas
Received on Wednesday, 1 December 2010 12:11:26 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:02 UTC