[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH][BUG]: eww doesnt trim whitespace from address

From: Ted Zlatanov
Subject: Re: [PATCH][BUG]: eww doesnt trim whitespace from address
Date: Tue, 04 Nov 2014 11:33:23 -0500
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

On Mon, 3 Nov 2014 21:49:23 +0700 Yuri Khan <address@hidden> wrote: 

YK> On Mon, Nov 3, 2014 at 7:46 PM, Ted Zlatanov <address@hidden> wrote:
>> I also don't know if there are any exceptions to this--are there cases
>> where you want to preserve the trailing space on a URL and/or encode
>> them to "%20"?

YK> For what it’s worth, the HTML5 specification now defines all
YK> URL-valued attributes as “valid non-empty URL potentially surrounded
YK> by spaces” and prescribes stripping out the surrounding spaces.

YK> <a href=" &#x09;http://google.com/   &#x0a;">This is valid and leads
YK> to Google</a>

YK> eww could treat the user-specified URL similarly. Spaces at the end of
YK> URL are rare (and at the beginning pretty much inexistent), and if the
YK> user wants an explicit space at the end of URL, s?he can type an
YK> explicit %20, + or other context-specific escape.

All right, I added a simple `string-trim' call to `eww'.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]