W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

Re: [whatwg] proposal for a location.domain property

From: Anne van Kesteren <annevk@annevk.nl>
Date: Thu, 29 Nov 2012 13:31:04 +0100
Message-ID: <CADnb78hi=iHM-g4qszV_KwuUPt5dOzCff1O0zqPz9CfBkFizeA@mail.gmail.com>
To: Maciej Stachowiak <mjs@apple.com>
Cc: whatwg@lists.whatwg.org, "Hallvord R. M. Steen" <hallvord@opera.com>, João Eiras <joaoe@opera.com>
On Sat, May 26, 2012 at 3:58 AM, Maciej Stachowiak <mjs@apple.com> wrote:
> I don't think location.domain would be the same as location.tld, to the extent I understand the intent of them.
> For the URL "http://www.apple.com/", "apple.com" would be the domain, and "com" would be the TLD.

Yes, but for the URL "http://www.google.co.uk/" you would need to have
publicsuffix.org information in order to determine that the effective
domain is "google.co.uk" and not "co.uk".

I'm not going to add this because cookies and document.domain are not
good use cases for this. Cookies should eventually move to an
origin-based security model (probably via some kind of opt-in) and
document.domain should simply be avoided.

(Ian asked me to reply to this thread
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20011 as the URL
Standard now deals with these attributes.)

Received on Thursday, 29 November 2012 12:47:17 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:48 UTC