Re: [whatwg/url] Define hosts' public suffix and registrable domain. (#391)

> From an API perspective, I remain opposed to adding it (least of all because each browser carries their own notion of a PSL and, as it turns out, browser’s implements slightly different algorithms)

Isn't detecting that kind of difference in platform restrictions a reason to add the API? Different browsers consider a different set of hosts to have different registrable domains over time: it seems reasonable to expose that to developers so they can make decisions about the environment in which their code is executing.

> I die a little inside that we’re speccing more of this, but I suppose that’s inevitable.

Not writing it down seems worse. :) As long as cookies, `document.domain`, etc. depend on the notion, we need to explain it in a way that specs can rely on.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/391#issuecomment-392049475

Received on Friday, 25 May 2018 12:57:00 UTC