W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2013

Re: [whatwg] Question about document.referrer (and document.URL, document.location.href) when IDN domains are in use

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 10 Sep 2013 20:14:06 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@MIT.EDU>, Adam Barth <w3c@adambarth.com>, Anne van Kesteren <annevk@annevk.nl>
Message-ID: <alpine.DEB.2.00.1309102013220.12210@ps20323.dreamhostps.com>
Cc: whatwg <whatwg@lists.whatwg.org>
On Tue, 10 Sep 2013, Ian Hickson wrote:
> > > > 
> > > > In cases when the hostname is non-ASCII, the Referer header will 
> > > > have it encoded in punycode.
> > > 
> > > Is that defined anywhere?
> > 
> > http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.36 which 
> > defines it syntactically as a URI, which means that if you have an IRI 
> > you have to convert it to an IRI before putting it in there.
> 
> That's normatively imported by the HTML spec's "fetch" algorithm, so 
> it's the case per HTML too. Specifically, HTML just says to generate the 
> Referer header's value "as required by HTTP" using a particular URL as 
> the input.

Incidentally, Anne, fetch.spec.whatwg.org seems to have omitted the 
dependency on HTTP so this is broken there, if I'm not mistaken.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 10 September 2013 20:14:34 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:09 UTC