On 8/13/07, Gregory Maxwell <gmaxwell(a)gmail.com> wrote:
Bringing this back on topic, Does anyone see a reason
why it would be
unreasonable to add a feature to mediawiki which would enable
something like:
[[javascript:foo|something||arg1]]
which gets converted to
<a href="#"
onclick="javascript:MW_UI_event_foo('arg1');;return
false;">something</a>.
(and ditto for clickable image maps).
Right now tools like the popup media player and wikiminiatlas scan all
anchor tags on load in order to add startup hooks, this causes a fair
bit of wasted effort.
JavaScript URLs are usually viewed as a Bad Thing. Is there a
demonstrable performance problem with adding the hooks dynamically?