Re: Setting document.domain

On Wed, 28 Jan 2009, James Graham wrote:
> 
> I think the remaining issue is that it is not clear what it means to 
> "match a suffix in the public suffix list". The public suffix list 
> itself does not define this but only has vauge notes about the expected 
> format; there seem to be implied rules like given an entry a.b Setting 
> document.domain to b should fail, even if b is not listed explicitly.

The spec covers that case: "or, if new value, prefixed by a U+002E FULL 
STOP ("."), matches the end of a suffix in the Public Suffix List".


> I think the algorithm for determining if a domain is in the public 
> suffix list should be specified in detail somewhere, although I guess 
> HTML 5 is likely not quite the right place since this may be used in 
> non-HTML contexts.

I agree that it would be nice if there was some text on publicsuffix.org 
that gave some normative-like text I could hook into here.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 28 January 2009 19:48:04 UTC