W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

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

From: Scott González <scott.gonzalez@gmail.com>
Date: Fri, 8 Jun 2012 16:34:27 -0400
Message-ID: <CAO8i3id_D14QonEsymGsNyOO2BYf9VViVpRL6LFGx3j978vTWA@mail.gmail.com>
To: Yehuda Katz <wycats@gmail.com>
Cc: Rafael Weinstein <rafaelw@google.com>, Ryosuke Niwa <rniwa@webkit.org>, Henri Sivonen <hsivonen@iki.fi>, "Tab Atkins Jr." <jackalmage@gmail.com>, Jonas Sicking <jonas@sicking.cc>, Webapps WG <public-webapps@w3.org>
On Fri, Jun 8, 2012 at 4:03 PM, Yehuda Katz <wycats@gmail.com> wrote:

> It's intentional. If you look at the implementation, we explicitly extract
> the <script> tags and use our globalEval implementation to execute them.
>

It's probably worth tracking down some of the bug reports we've gotten
related to this feature. One quirk that I can think of right now is that
scripts are moved to the top level:

jQuery( "<div><script></script></div>" )

results in:

[ <div></div>, <script></script> ]

I feel like there are other strange things that occur too.
Received on Friday, 8 June 2012 20:34:56 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:52 GMT