On 9 August 2017 at 19:43, Daniel Veditz <dved...@mozilla.com> wrote:

> On Wed, Aug 9, 2017 at 9:57 AM, Valentin Gosu <valentin.g...@gmail.com>
> wrote:
>> This is a definite improvement in terms of web-compat. document.origin,
>> location.href, etc will from now on return punycode.
> ​What do web pages do if they want to reflect a pretty URL into their
> page? Will everyone have to include script like https://stackoverflow.com/
> questions/183485/converting-punycode-with-dash-character-
> to-unicode#answer-301287 ?​
> ​Should decodeURI() do it automatically? Or with a new parameter? Some new
> function?

I don't know if changing decodeURI is the best course of action.
The URL spec used to have methods for domainToUnicode and domainToASCII,
but these were removed [1]. Perhaps it's time to revisit that decision.

dev-platform mailing list

Reply via email to