Re: Partial solution to debugging eval() code
"timeless" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.jsdebugger |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
John J. Barton wrote:
> All jsd "scripts" are one of four types: (or so I think)
> top-level
> eval-level
> functions defined in top-level << no problem
> functions defined in eval-level << problem
...
> Actually a fifth one has appeared: event scripts like onclick
> for lines like
> <a onclick="doHi();">I'll say if you do.</a>
> These come in as scripts on line 1 of the HTML file, apparently
> generated by the browser. Don't cause problem with the
> eval() detector, so its more a question of supporting them in
> the debugger.
I'm asleep, but I believe the following is correct:
the sixth is:
<a
id=foo><script>document.getElementById("foo").setAttribute("onclick","foo()")</
a>
note that onclick and friends are compiled each time they're triggered
(for more fun, check out xbl!).