bf4 / controljs

Automatically exported from code.google.com/p/controljs
Apache License 2.0
0 stars 0 forks source link

support inline script onload handlers #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If the user has a script with an inline onload handler:

<script src="foo.js" onload="alert(123)" type="text/javascript"></script>

and we convert it to ControlJS:

<script cjssrc="foo.js" onload="alert(123)" type="text/cjs"></script>

I'm pretty sure alert(123) is never called. ControlJS ignore inline onload 
handlers for scripts. We should pass these through so they get called.

Original issue reported on code.google.com by stevesou...@gmail.com on 17 Dec 2010 at 12:14