unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>,
	Lars Ingebrigtsen <larsi@gnus.org>,
	damjan.franz@gmail.com
Subject: Re: EWW, Duckduck go and Oops error
Date: Thu, 27 Apr 2017 11:57:07 +0700	[thread overview]
Message-ID: <CAP_d_8WuNqAS8AHQ8UX405QX9ntUaD09jOi5wAWFJkf9TwqqcQ@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY18rLL9C6-yL0TNZc57U=OFb4QN9DYOd1b3_LyRZOFeEg@mail.gmail.com>

On Thu, Apr 27, 2017 at 2:10 AM, Kaushal Modi <kaushal.modi@gmail.com> wrote:

> (when (or (string-match "^\\([0-9]+\\) *;.*url=\"\\([^\"]+\\)\"" refresh)
>  (string-match "^\\([0-9]+\\) *;.*url='\\([^']+\\)'" refresh)
>  (string-match "^\\([0-9]+\\) *;.*url=\\([^ ]+\\)" refresh))

This does not look exactly right according to [HTML 5.1 § 4.2.5.3
subheading “Refresh state”][1].

[1]: https://www.w3.org/TR/html51/document-metadata.html#statedef-http-equiv-refresh

* There may be leading whitespace in the content attribute.
* The refresh delay, which is a non-empty sequence of ASCII digits,
may be immediately followed by a period and more digits or periods,
which are to be ignored.
* The time and URL may be separated with a semicolon or comma, with
optional whitespace at either or both sides.
* The “url” parameter is the only one allowed, it must immediately
follow the separator, its name is case-insensitive and may be omitted
along with the equal sign.
* There may be whitespace at either or both sides of the equal sign.
* The way I read it, spaces in an unquoted (or quoted) url are
permitted, although trailing whitespace is invalid and will be removed
by the basic URL parser algorithm.



      reply	other threads:[~2017-04-27  4:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-25 16:26 EWW, Duckduck go and Oops error damjan.franz
2017-04-25 17:48 ` Kaushal Modi
     [not found]   ` <CANuo_riEwrmJ_uKAdQ_Ge=OSTtFChoeqS7NGDjJpUok4ctj1wQ@mail.gmail.com>
     [not found]     ` <CAFyQvY3_DNsF63_inQ4oVNv1hJvi4oWyhZrSzFZAjVy1-1T_=g@mail.gmail.com>
     [not found]       ` <1493229849.3690.1.camel@localhost>
     [not found]         ` <CAFyQvY29CeQswFtvu5nX+-wLASjzWaL2z09ypCWYNOekNqKQKw@mail.gmail.com>
     [not found]           ` <1493232799.2443.1.camel@localhost>
2017-04-26 19:03             ` Kaushal Modi
2017-04-26 19:10               ` Kaushal Modi
2017-04-27  4:57                 ` Yuri Khan [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CAP_d_8WuNqAS8AHQ8UX405QX9ntUaD09jOi5wAWFJkf9TwqqcQ@mail.gmail.com \
    --to=yuri.v.khan@gmail.com \
    --cc=damjan.franz@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kaushal.modi@gmail.com \
    --cc=larsi@gnus.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).