Re: Tidy bug (malformed URI reference)

* Hofmann Juergen (SaW/QSG1) * wrote:
>In line 76 of the HTML-Source Tidy interpret the javascript code as an URI
>reference. Further Tidy's-HTML-Output-File is false (%20 instead of spaces).

The "href" attribute of the "a" element must contain nothing but URI
references, thus Tidy is right to interpret the value as beeing a URI
references. URI references must not contain spaces, thus Tidy escapes
the spaces in your javascript:... URI reference. This is not a bug. If
you dislike what Tidy does to your URI, you can use the --fix-uri
configuration option to avoid any escaping of the URI, but then your
(X)HTML document will be invalid.

Received on Wednesday, 4 December 2002 21:03:54 UTC