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

Henri Sivonen hsivonen at iki.fi
Sat Nov 13 03:48:41 PST 2010

On Nov 13, 2010, at 00:54, 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.

Hixie wrote the relevant part of the spec without taking createContextualFragment into account, so you shouldn't read too much into what the spec says now. Similar overlooking a part of the platform when considering the interactions has occurred a couple of time with how HTML5 integrates with XSLT, too.

>> That's old code at this point. And it resulted in people filing bugs
>> on us. I forget if we fixed it for beta7 or not, but if you try recent
>> nightlies it should work there.
> OK.  Thanks for clarification.

The fix landed after beta 7, so it's in the nightlies but not in any beta so far.

Henri Sivonen
hsivonen at iki.fi

More information about the whatwg mailing list