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 --------
  <a href="http://www.x.com/ind
ex.html">Wrapped URL</a>

Received on Thursday, 22 July 1999 20:30:55 UTC

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