Hello,
I always get angry when I see codes like this:
<a onclick="openImage('aaa.jpg');">see image</a>
I mean, it's confusing, because such markup makes you think it's real link, and I often try to click it with middle mouse button, and get empty page (I know there's Firefox addon for it, recently found it, but it's better to solve problem).
There might be few methods to get rid of this ambiguity. For example, a new new element, let's say it <trigger /> which destination would be use for launching scripts; and to say to user that it would be no href, but a script launched, it will have by default other cursor (e.g. pointer in different color or something).
I know <span /> might be used, but no one does it. Maybe new element will encourage writers not to present scripts like hrefs...
<trigger onclick="doSomething();">text</trigger>
It'll be to discuss how to replace a combination
<a href="..." onclick=""></a>
I think <a><trigger></trigger></a> or <trigger onclick=".."><a href="..."></a></trigger> with well-defined how to handle such situations won't be bad.
It's only my general thought - it can evolve in different way, but I have no better idea right now. What do you think about it?