<div class="gmail_quote">On Wed, Jul 29, 2009 at 6:49 PM, Kartikaya Gupta <span dir="ltr"><<a href="mailto:lists.whatwg@stakface.com">lists.whatwg@stakface.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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 <a href="http://www.w3.org/html/wg/href/draft.html" target="_blank">http://www.w3.org/html/wg/href/draft.html</a> 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.</blockquote>
<div><br>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 this.<br>
<br>-Alex <br></div></div><br>