Re: web frontend encodes JavaScript
* Thijs Kinkhorst:
> The security tracker frontend encodes JavaScript, resulting in an invalid
> if-construct like below (the > in the third line):
>
> function onSearch(query) {
> if (old_query_value == "") {
> if (query.length > 5) {
It's a bit difficult to fix this. I was rather surprised that
browsers do not HTML-decode Javascript program text in XHTML
documents. It seems that you need to write non-well-formed XML
instead.
The web framework was specifically designed not to be able to write
unencoded HTML, that's why this is hard to fix nicely. 8-/
(Changing ">" to ">" in the source will result in "> in the
output.)
Reply to: