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

2011-06-06 Thread Ian Hickson
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 re

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

2011-02-10 Thread Henri Sivonen
> * 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. H

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

2011-02-09 Thread Ian Hickson
On Thu, 11 Nov 2010, Ryosuke Niwa wrote: > > I'm working on the WebKit bug 12234 - Using createContextualFragment to > insert a

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

2010-12-01 Thread Jonas Sicking
On Sat, Nov 13, 2010 at 6:14 AM, Ms2ger wrote: > Ms2ger wrote: >> >> Ryosuke Niwa wrote: >>> >>> On Fri, Nov 12, 2010 at 2:29 PM, Jonas Sicking 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

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

2010-12-01 Thread Ryosuke Niwa
After reading all the responses and consulting with several developers at Google and other WebKit contributors, I have reached the conclusion that we should fix this bug, and the script parsed by createContextualFragment should, indeed, run when the fragment is inserted into a document. I'll follo

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

2010-11-13 Thread Ms2ger
Ms2ger wrote: Ryosuke Niwa wrote: On Fri, Nov 12, 2010 at 2:29 PM, Jonas Sicking 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 scr

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

2010-11-13 Thread Ms2ger
Ryosuke Niwa wrote: On Fri, Nov 12, 2010 at 2:29 PM, Jonas Sicking 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 rem

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

2010-11-13 Thread Henri Sivonen
On Nov 13, 2010, at 00:54, Ryosuke Niwa wrote: > On Fri, Nov 12, 2010 at 2:29 PM, Jonas Sicking 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 createContextualFr

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

2010-11-12 Thread Jonas Sicking
On Fri, Nov 12, 2010 at 2:54 PM, Ryosuke Niwa wrote: > On Fri, Nov 12, 2010 at 2:29 PM, Jonas Sicking 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 createConte

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

2010-11-12 Thread Ryosuke Niwa
On Fri, Nov 12, 2010 at 2:29 PM, Jonas Sicking 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 executa

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

2010-11-12 Thread Jonas Sicking
On Fri, Nov 12, 2010 at 12:48 PM, Ryosuke Niwa wrote: > On Thu, Nov 11, 2010 at 5:48 PM, Jonas Sicking  wrote: >> >> When setting .innerHTML browsers always have prevented any created >>

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

2010-11-12 Thread Ryosuke Niwa
On Thu, Nov 11, 2010 at 5:48 PM, Jonas Sicking wrote: > > When setting .innerHTML browsers always have prevented any created >

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

2010-11-11 Thread Henri Sivonen
> First off, there is no spec for createContextualFragment so there is > no spec text to turn to. There is now: http://html5.org/specs/dom-parsing.html#extensions-to-the-range-interface See also: http://www.w3.org/Bugs/Public/show_bug.cgi?id=11191 -- Henri Sivonen hsivo...@iki.fi http://hsivone

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

2010-11-11 Thread Jonas Sicking
On Thu, Nov 11, 2010 at 4:34 PM, Ryosuke Niwa wrote: > Greetings all, > I'm working on the WebKit bug 12234 - Using createContextualFragment to > insert a does not cause the script to execute.  While investigating > the issue, the following part of HTML5 spec came to my attention: > 10.2.5.7 The