Re: [whatwg/url] Clarify A-label vs U-label for public suffix / registrable domain (#396)

@annevk I think it's in the right direction. The PSL doesn't make restrictions on its inputs, but implementations are presumed to enforce that their input aligns with their internal storage format (i.e. if you store as A-Label, you receive as input A-Labels, and you output A-Labels, ditto U-Labels). Some implementations I understand handle translation between A- and U- internally, and then align output to input format (so you can go A->A or U->U in the same implementation).

So this is good, and the only ambiguity is with the proposed wording, that is "using A-Labels" can be perceived as the transformation/assurance of the output, or the transformation/assurance of the input.

The overly verbose obnoxious way (i.e. @mikewest can word it better)
* Let x be the result of executing the algorithm defined by the Public Suffix List on Host
* Return x encoded using A-Labels

Just to avoid that ambiguity

-- 
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/issues/396#issuecomment-395357119

Received on Thursday, 7 June 2018 09:35:21 UTC