all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Cc: Vibhav Pant <vibhavp@gmail.com>
Subject: Re: [PATCH][BUG]: eww doesnt trim whitespace from address
Date: Mon, 3 Nov 2014 21:49:23 +0700	[thread overview]
Message-ID: <CAP_d_8XYPbK806Td4qxfszsrSoYq9fPc=GNHeiYYLi55x-yE9g@mail.gmail.com> (raw)
In-Reply-To: <87egtkbdmi.fsf@lifelogs.com>

On Mon, Nov 3, 2014 at 7:46 PM, Ted Zlatanov <tzz@lifelogs.com> 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"?

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

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

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



  reply	other threads:[~2014-11-03 14:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-21  9:27 [PATCH][BUG]: eww doesnt trim whitespace from address Vibhav Pant
2014-11-03 13:46 ` Ted Zlatanov
2014-11-03 14:49   ` Yuri Khan [this message]
2014-11-04 16:33     ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP_d_8XYPbK806Td4qxfszsrSoYq9fPc=GNHeiYYLi55x-yE9g@mail.gmail.com' \
    --to=yuri.v.khan@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=vibhavp@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.