W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2002

Re: Tidy bug (malformed URI reference)

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 05 Dec 2002 03:04:33 +0100
To: "Hofmann Juergen (SaW/QSG1) *" <Juergen.Hofmann2@de.bosch.com>
Cc: "'html-tidy@w3.org'" <html-tidy@w3.org>
Message-ID: <3e02a90c.26135881@smtp.bjoern.hoehrmann.de>

* 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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:52 UTC