From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out.smtp-auth.no-ip.com (smtp-auth.no-ip.com [8.23.224.61]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 911E27962B for ; Tue, 14 Jun 2016 21:15:55 -0700 (PDT) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from carhart.net (unknown [99.52.200.227]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 524334003F0 for ; Tue, 14 Jun 2016 21:17:15 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id u5F4HEda014446 for ; Tue, 14 Jun 2016 21:17:14 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id u5F4HEg7014442 for ; Tue, 14 Jun 2016 21:17:14 -0700 Date: Tue, 14 Jun 2016 21:17:14 -0700 (PDT) From: Kevin Carhart To: edbrowse-dev@lists.the-brannons.com Message-ID: User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: [Edbrowse-dev] immediate evaluation of js on appendChild X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.21 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2016 04:15:55 -0000 Suppose a site author has a piece of javascript stored in the .text property of a script element. It's only a string. But now controlling JS code runs appendChild of that script element. Possibly insertBefore too. Now that javascript code is part of the DOM. I think this code is supposed to evaluate immediately. Does this ring a bell and if it's something that should happen but currently doesn't, what would be an appropriate place to implement it? Maybe it could be done directly in startwindow.js, because side effects from the code in question will be dealt with as the chunk of JS is itself addressed line by line and the JS functions trigger the existing side effects code. eval() comes to mind though I think it is considered harmful. thanks Kevin