[webkit-dev] GlobalScript API.

Oliver Hunt oliver at apple.com
Tue Sep 1 21:07:25 PDT 2009

On Sep 1, 2009, at 4:13 PM, Dmitry Titov wrote:

> Thanks a lot Maciej!
> As a note to the API described in this thread: there was a proposal  
> in private thread to replace the JS constructor with 4 parameters  
> with a tag:
> instead of
> var globalScript = new webkitGlobalScript(name, url, loadHandler,  
> errorHandler);
> to have this:
> <webkit-globalscript name='...', src='url', onload=... onerror=...></ 
> webkit-globalscript>
This actually displays one of the issues i have with global script as  
a concept, you are basically just doing
<iframe src="..."></..>

And that gives you a context that achieves almost everything the  
global script concept gives you.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090901/eb1fec02/attachment.html>

More information about the webkit-dev mailing list