Rename publicSuffix option encoding = unicode#1013
Conversation
f832be2 to
82b9dca
Compare
|
FWIW I think this is a big improvement, and I'm not against going this way necessarily. I also think having a way to safely display a Unicode domain to the user is definitely a useful thing for the APIs to provide. That said, I still wonder if it makes sense to include the display encoding option as a part of the In any case, it's not a hill I want to die on or anything like that, and I'm not too keen to slow things down if combining the display encoding option in the |
The use case of "get the public suffix, for display purposes" sounds well within the scope of the On the question of whether it should be a separate API - "Decode punycode except when there are confusables" sounds very niche, and I'm not sure if it's worth having a separate dedicated API for that specific use case. |
Rob--W
left a comment
There was a problem hiding this comment.
Looks good to me, thanks for putting this fix up. This matches with what I was thinking of in #231 (comment)
I wonder whether we should try to emphasize more that the returned domain is intended to match what the browser displays in the URL bar. But even without that, the updated text looks good.
I have added @oliverdunk as a reviewer to this proposal update, to make sure that we have sufficient cross-browser coverage (and from more PSL maintainers; I already checked in with @simon-friedberger on Mozilla's side, but the more, the merrier!).
This is an update to the publicSuffix proposal to:
getDomain()option{ encoding: "unicode" }to{ encoding: "display" }.See #231 (comment) and PR #1012