[whatwg] Should script run if it comes from a HTML fragment?
Jonas Sicking
jonas at sicking.cc
Wed Dec 1 12:11:26 PST 2010
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
More information about the whatwg
mailing list