edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] immediate evaluation of js on appendChild
@ 2016-06-15  4:17 Kevin Carhart
       [not found] ` <20160515130957.eklhad@comcast.net>
  2016-06-17  2:00 ` Karl Dahlke
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Carhart @ 2016-06-15  4:17 UTC (permalink / raw)
  To: edbrowse-dev



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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-17 19:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-15  4:17 [Edbrowse-dev] immediate evaluation of js on appendChild Kevin Carhart
     [not found] ` <20160515130957.eklhad@comcast.net>
2016-06-15 23:27   ` Kevin Carhart
2016-06-17  2:00 ` Karl Dahlke
2016-06-17 19:48   ` Kevin Carhart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).