[opencms-dev] javascript puzzles the editor

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Wed Feb 8 18:12:01 CET 2006


My post - I'm gonna file a bugzilla entry on that - didn't make
it through due to the mailserver outage:

Insert a source line in a page test.html

<a onchange="some()" ></a>

and you will get

<a onchange="function onchange(event) {
    some();
}"></a>

next time you edit the source code. And so on and so on.
With every edit another function onchange(event) is inserted.

Writing a line

<a onclick="some()"></a>

will keep you locked in the editor. You cannot leave the editor anymore
other than clicking on the Windows close button (not the editor
close button).

You can imagine that with this your source code isn't
protected anymore against unforeseeable changes at will of the
editor. Seems the editor tries to execute the user source code.

Weird.

Ah, btw, this happens only with FireFox and Mozilla browsers,
not MSIE. (But beware of deducting from that, that MSIE is the
browser of choice :-)


--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de



More information about the opencms-dev mailing list