On Thu, May 31, 2012 at 7:00 PM, Rafael Weinstein <[email protected]> wrote: > Do you have a particular concern about making scripts executable?
When a document fragment is inserted into a document and the document fragment includes multiple external scripts or both in-line and external scripts, the order in which the scripts execute is not guaranteed to be the same as when identical markup came from the network or document.write. I worry that this is a foot gun: the author is working with markup but the behavior matches the behavior of working with createElement and appendChild. I am not suggesting that we should try to change the order in which the scripts run. I definitely don't want that to be changed. I'm suggesting that working with markup literals shouldn't be advertised as a good way to insert scripts into a document. I see the value of being consistent with jQuery, though. :-( -- Henri Sivonen [email protected] http://hsivonen.iki.fi/
