Re: Implied Context Parsing (DocumentFragment.innerHTML, or similar) proposal details to be sorted out

On Thu, May 31, 2012 at 7:00 PM, Rafael Weinstein <rafaelw@google.com> 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
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Wednesday, 6 June 2012 10:25:17 UTC