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

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

From: Henri Sivonen <hsivonen@iki.fi>
Date: Sat, 13 Nov 2010 13:48:41 +0200
Message-ID: <57028112-40D1-4B92-AED6-95B4CD700C3C@iki.fi>
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
Received on Saturday, 13 November 2010 03:48:41 UTC

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