W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 1999

7-Jul-99 bug: Line break in href attribute

From: Randy Waki <rwaki144@whizbanglabs.com>
Date: Thu, 22 Jul 1999 18:30:19 -0600
To: "HTML Tidy Mailing List" <html-tidy@w3.org>
Message-ID: <000501bed4a2$8b2830d0$ce9946a6@rwaki>
The HTML document below has an <a> element whose href attribute has been
split across two lines (the URL in the original document was unusually long
and had evidently wrapped to the next line).  7-Jul-99 Tidy converts the
line break into an unencoded space, resulting in a broken link.  Both IE 5
and Netscape 4.5 (tested on Windows NT) ignore the line break but not the
space.  A secondary problem is that spaces should be encoded as %20 in URLs.
I can see how fixing this problem may be difficult since Tidy might have to
distinguish between attributes that are URLs and those that are not.

-------- Example HTML document --------
<html>
  <head>
    <title>x</title>
  </head>
  <body>
  <a href="http://www.x.com/ind
ex.html">Wrapped URL</a>
  </body>
</html>
---------------------------------------

Randy
Received on Thursday, 22 July 1999 20:30:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:42 GMT