W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2011

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

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 6 Jun 2011 23:50:07 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1106062347150.19153@ps20323.dreamhostps.com>
On Thu, 10 Feb 2011, Henri Sivonen wrote:
> >
> > * innerHTML doesn't run scripts and they are inserted disabled.
> 
> FWIW, here's a counter-example: http://www.oele.net/innerhtmljs2.html
> 
> The above runs the script in all browsers except Firefox 4 (which 
> follows the spec). The pattern is reportedly from the 
> http://crossbrowserajax.com/ library.
> 
> However, http://www.oele.net/innerhtmljs.html doesn't run in IE9 PP7.
> 
> I'm not thrilled about adding code to support this quirky pattern at 
> this point of the release cycle (evang is being attempted), but I 
> thought I'd mention this finding even though I'm not asking for a spec 
> change (at least not yet).

Wow. That difference is absurd.

Since Gecko and WebKit both do what the spec says now, I've left the spec 
as is. I don't even know where I'd begin in terms of doing what IE does 
here.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 6 June 2011 16:50:07 UTC

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