forked from jeresig/env-js
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
701dd59
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, there are lots of other cases, particularly the whole "parser inserted" stuff, which is complicated in the env.js case because we use the parser to parse innerHTML ... and in the case of innerHTML, it seems like scripts added via innerHTML directly into the doc should never get executed, but adding a script tag via innerHTML on an element not yet in the document and then adding that element to the document does get run when finally added.
Lots of corner cases.
I've got a hacked version of some of this in my fork, but nothing that should be integrated into 1.2.