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. [1] https://github.com/whatwg/url/commit/2bd0f59b98024921ab90e628b7a526cca5abcb5f _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform