Gervase,
On Aug 25, 2008, at 2:27 PM, Gervase Markham wrote:
> David Conrad wrote:
>> What is this code trying to do?
> The code you quoted returns the number of domain labels, counting from
> the right hand end, which are used to make up the "domain" property
> (e.g. 2). The code works this way b
David Conrad wrote:
> What is this code trying to do?
The code you quoted returns the number of domain labels, counting from
the right hand end, which are used to make up the "domain" property
(e.g. 2). The code works this way because those are the terms in which
the algorithm was described to me.
Hi,
I admit I'm a bit confused.
> # 4> Check L1 == "tv". If so, getDomain returns L2.L1; exit.
> # "tv" is a special-case "completely flat" ccTLD for historical
> reasons.
...
> # 6> Check if L2 in gTLD list "com,edu,net,org,gov,mil,int". If so,
> # getDomain returns L3.L2.L1; exit.
> #
IE 8 has a mechanism for highlighting the "owning domain" of the current
website in the address bar.[0] As they are not using the Public Suffix
List, I asked if they would explain their algorithm for deciding what to
highlight.
A Microsoft engineer was kind enough to explain the algorithm to me, a