W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] Stripping newlines from URI attributes

From: Alex Henrie <alexhenrie24@gmail.com>
Date: Thu, 30 Jul 2009 19:34:34 -0600
Message-ID: <e89c552e0907301834o288d2b02n5790bf4401eb7cb8@mail.gmail.com>
On Wed, Jul 29, 2009 at 6:49 PM, Kartikaya Gupta
<lists.whatwg at stakface.com>wrote:

> This behavior doesn't seem to be specced anywhere as far as I can tell.
> Assuming the WEBADDRESSES spec referred to in HTML5 is the one at
> http://www.w3.org/html/wg/href/draft.html that only says to trim
> leading/trailing whitespace and url-encode the rest. This doesn't seem to
> match existing behavior, so it should probably be updated.

RFC 3986, which is referenced in the Web addresses specification, states "In
some cases, extra whitespace (spaces, line-breaks, tabs, etc.) may have to
be added to break a long URI across lines. The whitespace should be ignored
when the URI is extracted." Firefox's behavior appears to be consistent with

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090730/30d13166/attachment.htm>
Received on Thursday, 30 July 2009 18:34:34 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC