W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2016

Re: [whatwg] Should navigator.language and and/or HTTP Accept-Language include locale?

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 24 May 2016 08:08:01 +0200
Message-ID: <CADnb78iEuiu6_tgwe5rUDvwBv8zLyryFRew4N2D=asMe7qsh9A@mail.gmail.com>
To: Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Cc: WHAT Working Group <whatwg@whatwg.org>, Geoffrey Garen <ggaren@apple.com>, Phil Pizlo <fpizlo@apple.com>, Alexey Proskuryakov <ap@apple.com>
On Tue, May 24, 2016 at 1:55 AM, Nils Dagsson Moskopp
<nils@dieweltistgarnichtso.net> wrote:
> • navigator.language is the language of the interface
> • HTTP Accept-Language is the language of content
> • ECMA-402 DefaultLocale() is the user's locale

The HTML Standard has a should-level requirement for the first two to
align, to avoid fingerprinting vectors. Also, Accept-Language is the
desired language, it's a request header, which navigator.language is
just the API for (and navigator.languages is the more complete API
for). Perhaps you're thinking of Content-Language.


-- 
https://annevankesteren.nl/
Received on Tuesday, 24 May 2016 06:08:30 UTC

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